/* Osnovni stil 
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}


header {
    background: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}


div {
    margin: 20px auto;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}


input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background: #004c99;
}


@media (max-width: 480px) {
    header h1 {
        font-size: 1.4em;
    }

    div {
        margin: 10px;
        padding: 15px;
    }
}
*/

/* GLOBAL SETTINGS */


/* HEADER */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #222;
}


header {
    background: #003366;
    color: white;
    padding: 20px;
    text-align: center;
}

footer {
    background: #0066cc;
    color: white;
    padding: 20px;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 28px;
}

hr {
    max-width: 400px;
    width: 50%;
    border-top: 3px solid #003366;
}

/* CONTAINER */
.container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

div {
    margin: 20px auto;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* FORMS */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    width: 90%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}


input[type="submit"], .admin_url, .raport_btn {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 10px;
}

input[type="submit"], .raport_btn:hover {
    background: #004c99;
}

.admin_url{
    width: 90%;
    text-align: center;
}



/* ADMIN BUTTON */
.admin-button, ht {
    background: rgba(255,255,255,0.15);
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    width: 90%;
    max-width: 350px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid rgba(255,255,255,0.3);
}

.admin-button:hover {
    background: rgba(255,255,255,0.25);
}

/* HIDDEN FORM */
.hidden {
    display: none;
}

table {
    width: 90%;
    margin: 30px auto;
    border-collapse: collapse;
    background: #004c99;
    border-radius: 10px;
    overflow: hidden;
    color: #c9d1d9;
    
    display: block;
    width: max-content;   /* tabela naj bo toliko široka, kot potrebuje */
    max-width: 90%;      /* a ne več kot širina strani */
    overflow-x: auto;     /* scroll samo na tabeli */
    white-space: nowrap;  /* ne lomi celic */
}

table::-webkit-scrollbar {
    height: 8px;
}

table::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #30363d;
}

table th {
    background: #003366;
    color: #c9d1d9;
    font-weight: bold;
    font-size: 14px;
}

table tr:nth-child(even) {
    background: #0066cc;
}

table tr:hover {
    background: #004c99;
}

table a {
    color: #2ea8ff;
    text-decoration: none;
    font-weight: bold;
}

table a:hover {
    text-decoration: underline;
}


/* RESPONSIVE */
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
}
