﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

:root {
    --navy: #16265c;
    --navy-dark: #0f1c47;
    --navy-light: #243780;
    --gold: #c9a14a;
    --gold-light: #e0bf7a;
    --bg: #f3f4f8;
    --card: #ffffff;
    --border: #e3e6ef;
    --text: #1c2340;
    --text-muted: #6b7290;
    --success: #1f9d55;
    --danger: #d64545;
}

.app {
    display: flex;
    height: 100vh;
    background: #f0f2f5;
    overflow: hidden;
}

.sidebar {
    width: 240px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
}

.sidebar-header {
    padding: 10px 10px 10px;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center; /* centrira .user-info horizontalno */
    align-items: center; /* centrira vertikalno (ako ima fiksnu visinu) */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.user-role {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-section {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    padding: 8px 8px 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 2px;
    transition: background 0.15s;
}

    .nav-item:hover {
        background: rgba(255,255,255,0.08);
    }

    .nav-item.active {
        background: rgba(255,255,255,0.15);
    }

.nav-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.nav-item.active .nav-icon {
    opacity: 1;
}

.nav-label {
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
}

.nav-item.active .nav-label {
    color: #fff;
    font-weight: 500;
}

.badge {
    font-size: 10px;
    background: #e53935;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 0.5px solid rgba(255,255,255,0.1);
}

.logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
}

    .logout:hover {
        background: rgba(255,255,255,0.08);
    }

    .logout span {
        font-size: 12.5px;
        color: rgba(255,255,255,0.5);
    }

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    background: #fff;
    padding: 0 24px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #e0e0e0;
}

.page-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #0d2247;
}

.logo-sub {
    font-size: 11px;
    color: #C9A84C;
    font-weight: 600;
}

.content {
    padding: 5px 20px;
    overflow-y: auto;
    background: #f0f2f5;
}
.brand {
     
}

.brand-word {
    font-size: 28px;
    font-weight: 700;
    position: relative;   
    display: inline-block;
}

    .brand-word .e {
        color: var(--blue-500);
    }

    .brand-word .rest {
        color: #fff;
    }

    .brand-word::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1.5px;
        background: var(--blue-500);
    }
/*---------PODEŠAVANJA ZA MOBILNI----------------------------------------------------------------------*/
/* ===== HAMBURGER (default: sakriven na desktopu) ===== */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 8px;
}

    .hamburger span {
        display: block;
        height: 2px;
        width: 100%;
        background: #16265c;
        border-radius: 2px;
    }

/* ===== BACKDROP ===== */
.app-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999; /* ispod sidebar-a */
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .app-backdrop.show {
        display: block;
        opacity: 1;
    }

/* ===== MOBILNI ===== */
@media (max-width: 900px) {

    /* Sidebar postaje off-canvas drawer */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        max-width: 82vw;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        z-index: 1000; /* iznad backdrop-a, iznad svega */
        box-shadow: 4px 0 20px rgba(0,0,0,0.25);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    /* Hamburger vidljiv */
    .hamburger {
        display: flex;
    }

    /* Topbar malo kompaktniji */
    .topbar {
        padding: 0 12px;
        height: 52px;
    }

    .topbar-right {
        gap: 8px;
    }

    /* Content padding manji */
    .content {
        padding: 10px;
    }

    /* Spreči horizontalni scroll */
    body, html {
        overflow-x: hidden;
    }

    /* Ako negde imaš fiksne širine, ovde ih "ubijamo" */
    img, table, .content > * {
        max-width: 100%;
    }
}

/* Kad je drawer otvoren - lock skrolovanja pozadine */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 900px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}



/*----------KOLAČIĆI----------------------*/
/* Cookie Banner Stilovi */
.cookie-banner {
    display: none; /* Sakriveno po defaultu */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Tamno plava, uklapa se sa sidebar-om */
    color: #ffffff;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 9999; /* Iznad svega */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

    .cookie-banner a {
        color: #3498db;
        text-decoration: underline;
    }

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

    .cookie-btn.accept {
        background-color: #3498db;
        color: white;
    }

        .cookie-btn.accept:hover {
            background-color: #2980b9;
        }

    .cookie-btn.reject {
        background-color: #7f8c8d;
        color: white;
    }

        .cookie-btn.reject:hover {
            background-color: #95a5a6;
        }

/* Mobilni prikaz */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   COOKIE BANNER - OSNOVNI STILOVI (Desktop)
   ========================================= */
.cookie-banner {
    display: none; /* Sakriveno po defaultu */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50; /* Tamno plava, uklapa se sa sidebar-om */
    color: #ffffff;
    padding: 15px 25px;
    justify-content: space-between;
    align-items: center;
    z-index: 9999; /* Iznad svega */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    font-family: sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

    .cookie-banner a {
        color: #3498db;
        text-decoration: underline;
        font-weight: bold;
    }

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s, transform 0.1s;
}

    .cookie-btn:active {
        transform: scale(0.98); /* Efekat klika */
    }

    .cookie-btn.accept {
        background-color: #3498db;
        color: white;
    }

        .cookie-btn.accept:hover {
            background-color: #2980b9;
        }

    .cookie-btn.reject {
        background-color: #7f8c8d;
        color: white;
    }

        .cookie-btn.reject:hover {
            background-color: #95a5a6;
        }

/* =========================================
   MOBILNI PRIKAZ (Telefoni i tableti)
   ========================================= */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column; /* Elementi idu jedan ispod drugog */
        text-align: center;
        gap: 15px;
        padding: 20px 15px;
        font-size: 13px; /* Malo manji tekst na telefonu */
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column; /* Dugmići idu jedan ispod drugog */
        gap: 10px;
    }

    .cookie-btn {
        width: 100%; /* Dugmići zauzimaju celu širinu */
        padding: 14px; /* Veći padding za lakši klik prstom */
        font-size: 15px;
        border-radius: 8px;
    }
}
