/* Projektarijum - Glavni stilovi */

:root {
    --plava: #004A80;
    --zlatna: #D4AF37;
    --svetlo-siva: #f4f7f9;
    --tamna: #333;
    --bela: #ffffff;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--tamna);
    background-color: var(--bela);
}

/* Navigacija */
header {
    background: var(--bela);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* IZMENA: Povećan logo */
.logo img { 
    height: 70px; /* Povećano sa 50px */
    display: block;
    width: auto; /* Zadržava proporcije */
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center; /* Vertikalno centriranje stavki menija */
}

nav ul li { margin-left: 25px; }

nav ul li a {
    text-decoration: none;
    color: var(--plava);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover { color: var(--zlatna); }

.btn-login {
    background: var(--zlatna);
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.btn-login:hover { opacity: 0.9; }

/* Hero Sekcija */
.hero {
    background: linear-gradient(rgba(0, 74, 128, 0.9), rgba(0, 74, 128, 0.7));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 5%;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 30px; }

.cta-button {
    background: var(--zlatna);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    display: inline-block;
    transition: transform 0.3s;
}

.cta-button:hover { transform: scale(1.05); }

/* Sekcija sa fazama */
.faze {
    padding: 80px 5%;
    text-align: center;
    background: var(--svetlo-siva);
}

.faze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.faza-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-bottom: 4px solid var(--zlatna);
    transition: transform 0.3s;
}

.faza-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.faza-card h3 { color: var(--plava); margin-top: 0; }

/* Footer */
footer {
    padding: 40px 5%;
    background: #222;
    color: #eee;
    text-align: center;
    font-size: 0.9rem;
}

/* DODATO: Responzivnost za mobilne uređaje 
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }

    .logo img {
        height: 50px; 
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        width: 100%;
    }
}*/
/* Stil za obaveštenje o kolačićima */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--plava);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.85rem;
    border-top: 3px solid var(--zlatna);
}

#cookie-banner p { margin: 0; padding-right: 20px; }

.cookie-btn {
    background: var(--zlatna);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.cookie-btn:hover { opacity: 0.9; }

/* Stilovi za kontakt stranicu (Dodaj na kraj dizajn.css) */
.kontakt-sekcija {
    padding: 80px 10%;
    background-color: #f9f9f9; /* Svetlo siva pozadina za kontrast */
}

.kontakt-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Forma je šira, podaci užI) */
    gap: 50px; /* Razmak između dva dela */
}

/* Stilovi za kartice (Forma i Info) */
.kontakt-form, .kontakt-info {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Blaga senka */
}

.kontakt-form h2, .kontakt-info h2 {
    margin-bottom: 30px;
    color: #333;
}

/* Stilovi za input polja */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #555;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--zlatna); /* Zlatna boja ivice na focus */
    outline: none;
}

/* Stilovi za info stavke */
.info-item {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee; /* Blaga linija između stavki */
    padding-bottom: 15px;
}

.info-item:last-child {
    border-bottom: none; /* Bez linije na poslednjoj stavki */
}

.info-item strong {
    color: var(--zlatna); /* Zlatna boja za naslove stavki */
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-item p {
    margin: 0;
    color: #555;
}

/* Prilagođavanje za mobilne uređaje */
@media (max-width: 992px) {
    .kontakt-container {
        grid-template-columns: 1fr; /* Prelazi u jednu kolonu na manjim ekranima */
        gap: 30px;
    }
}
/* Stilovi za Autentifikaciju (Login/Register) */
.auth-page {
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 10px;
    color: #333;
}

.auth-card p {
    color: #777;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.forgot-link {
    color: var(--zlatna);
    text-decoration: none;
}

.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--zlatna);
    font-weight: 600;
    text-decoration: none;
}
.register-card {
    max-width: 500px; /* Malo šire nego login da bi stala polja u nizu ako zatreba */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Stil za select polje u formama da prati izgled inputa */
.auth-card select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    background-color: white;
}/* Дропдаун контејнер */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-user {
    font-weight: 600;
    color: var(--zlatna); /* Или боја коју користите за навигацију */
    cursor: pointer;
}

/* Скривени подмени */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
    margin-top: 10px;
}

/* Приказ подменија на ховер */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Стил за линкове унутар подменија */
.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #f4f4f4;
    color: var(--zlatna);
}

.dropdown-menu hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 5px 0;
}
/* Glavni kontejner za ime korisnika */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Stil za samo ime */
.btn-user {
    padding: 10px 15px;
    color: var(--primarna-plava); /* ili boja koju koristite */
    font-weight: 600;
    text-decoration: none;
}

/* SAKRIVANJE PODMENIJA - Ovo je najbitnije */
.dropdown-menu {
    display: none; /* Inicijalno sakriveno */
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 9999;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

/* PRIKAZ NA PRELAZ MIŠEM */
.dropdown:hover .dropdown-menu {
    display: block; /* Prikazuje se kada miš pređe preko imena */
}

/* Izgled stavki u podmeniju */
.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: #f8f8f8;
    color: var(--zlatna);
}
.admin-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
.admin-table th, .admin-table td { padding: 12px; border: 1px solid #eee; text-align: left; }
.admin-table th { background: #f8f9fa; }
.status-tag { background: #e1f5fe; color: #0288d1; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; }
/* Osiguravamo da body zauzima celu visinu ekrana */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Main tag će zauzeti sav preostali prostor i gurnuti footer dole */
main {
    flex: 1;
}
/* Osnovni stilovi za burger - sakriven na kompjuteru */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #2c3e50; /* Boja vaših linkova */
    border-radius: 2px;
    transition: 0.3s;
}

/* JEDINSTVENI RESPONZIVNI DIZAJN */
@media screen and (max-width: 768px) {
    header {
        flex-direction: row !important; /* Ovo drži logo i burger u liniji */
        justify-content: space-between !important;
        padding: 10px 5%;
        display: flex !important;
    }

    .logo img {
        height: 50px; 
    }

    /* OVO SADA MORA DA RADI: Sakrivamo listu linkova */
    #nav-links {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 9999;
        margin: 0;
        list-style: none;
    }

    /* Prikazujemo listu samo kada je aktivna */
    #nav-links.active {
        display: flex !important;
    }

    .burger-menu {
        display: flex !important; /* Prikazuje burger kockicu */
    }
}
.zlatna-linija {
    border-bottom: 4px solid #d4af37;
}