:root {
    --bg: #08111f;
    --card: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(34, 197, 94, 0.03));
    --card-gradient: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.08));
    --border: rgba(255, 255, 255, 0.08);
    --text: #e5eefc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent2: #22c55e;
    --badge-success: rgba(34, 197, 94, 0.18); /* zelena */
    --badge-danger: rgba(239, 68, 68, 0.2) !important; /* crvena   --badge-danger: rgba(239, 68, 68, 0.2) !important; */
    --badge-warning: #f59e0b; /* narandžasta/žuta */
    --badge-info: #3b82f6; /* plava */
    --glass: background: linear-gradient(135deg, #08111f 0%, #132033 100%), backdrop-filter: blur(15px);
    --text-danger-emphasis: #dc3545; /* Ili boja po tvom izboru */
    --text-success-emphasis: #198754; /* Za 'GO' badge */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0; /* Obavezno ukloni marginu koju browser dodaje po defaultu */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    /* Dodaj background-attachment: fixed ako želiš da gradijent stoji dok skroluješ */
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.08)), linear-gradient(135deg, #08111f 0%, #132033 100%);
    background-attachment: fixed;
    min-height: 100vh; /* "vh" je sigurnija varijanta za punu visinu ekrana */
    padding: 5px;
    box-sizing: border-box; /* Da padding ne bi povećao visinu preko 100% */
    scroll-behavior: smooth;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

@media (min-width: 600px) {
    body {
        padding: 5px; /* manji padding na mobilnom */
    }

    .app-header {
        margin: 5px; /* smanjen razmak ispod hedera */
        padding: 12px; /* malo manji padding unutar hedera */
    }

    .container {
        padding: 5px;
    }
}
@media (min-width: 900px) {
    .container {
        padding: 5px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        margin: auto;
    }
}

.badge {
    /*padding: 5px 10px;*/
    border:  0.5px solid; /* Samo definiši debljinu i stil ovde */
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.badge-success {
    border: 0.5px solid rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(25, 135, 84, 0.3); /* Ovde definišeš boju za success */
}
.badge-danger {
   background: rgba(243, 52, 52, 0.2) !important;
    color: var(--bs-danger-text-emphasis) !important;
    border: 0.5px solid rgba(220, 53, 69, 0.3) !important;
    font-size: 12px;
}
.badge-warning {
    background: rgba(245, 158, 11, 0.18);
    color: var(--badge-warning);
}
.badge-info {
    background: rgba(59, 130, 246, 0.18);
    color: var(--badge-info);
}
.card.border-danger {
    border: 0.5px solid rgba(220, 53, 69, 0.6) !important;
}
.card.border-success {
    border: 0.5px solid rgba(25, 135, 84, 0.6) !important;
}
    
.hidden-element {
        display: none;
        background-color: blue;
    }    
.logo {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1cap;
    display: block;
    color: rgb(255, 255, 255);
}    
.logo span {
    color: #f43f5e;
}

.subtitle { 
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.6rem;
    font-weight: 400;
}

.section {
    margin: 10px;
}

.section h2 {
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section h2:before {
    content: "";
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(var(--accent), #f43f5e);
}


.main-header {
    background: var(--card-gradient);
    position: sticky;
    top: 0;
    z-index: 200;
}

    .main-header .badge {
        border: 0.5px solid; /* Samo definiši debljinu i stil ovde */
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        display: inline-block;
    }
    .main-header .badge-danger {
        background: rgba(243, 52, 52, 0.2) !important;
        color: var(--bs-danger-text-emphasis) !important;
        border: 0.5px solid rgba(220, 53, 69, 0.3) !important;
        font-size: 12px;
    }
    .main-header .badge-success {
        border: 0.5px solid rgba(16, 185, 129, 0.1);
        color: #10b981;
        border-color: rgba(25, 135, 84, 0.3); /* Ovde definišeš boju za success */
    }
    .main-header .badge-warning {
        background: rgba(245, 158, 11, 0.18);
        color: var(--badge-warning);
    }
    .main-header .badge-info {
        background: rgba(59, 130, 246, 0.18);
        color: var(--badge-info);
    }
    .main-header .logo-header {
        height: 40px; /* prilagodi za mobilni */
        width: auto;
        flex-shrink: 0;
    }
    .main-header a:not(.badge),
    .main-header button:not(.badge) {
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
        padding: 6px 12px;
        color: #fff !important;
        transition: background 0.2s;
    }

        .main-header a:not(.badge):hover,
        .main-header button:not(.badge):hover {
            background: rgba(255,255,255,0.25);
        }

.logo-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px; /* razmak između logo i subtitle */
    padding: 0; /* ukloni suvišan padding */
}
    .logo-header .logo {
        font-size: 1.25rem; /* smanji font da ne dominira */
        font-weight: 700;
        line-height: 1.2; /* kompaktniji tekst */
    }
    .logo-header .subtitle {
        font-size: 0.8rem;
        color: #bbb;
    }
@media (max-width: 576px) {
    .logo-header .logo {
        font-size: 1rem;
    }

    .logo-header .subtitle {
        font-size: 0.75rem;
        margin-top: 2px;
    }
}


.grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 2fr;
}
@media (min-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1177px) and (max-width: 1199px) {
    .grid {
        grid-template-columns: 1fr 1fr; /* ostaje 2 kolone */
    }
}        
@media (min-width: 1400px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr; /* od 1400px: tri kolone */
    }
}

.kpi {
    display: grid;
    gap: 10px;
    grid-template-columns: 0.8fr 3fr 0.8fr;
    grid-template-areas:
        "kpi1 weather kpi3"
        "kpi2 weather kpi4";
    align-items: flex-start;
    justify-items: flex-start;
}
    .kpi-title {
        font-size: 0.9rem;
        color: var(--muted);
        margin-bottom: 2px;
    }
    .kpi-value {
        font-size: 1rem;
        font-weight: 800;
        text-align: right;
        color: var(--accent);
    }

#bansGrid {
    display: grid;
    gap: 0.5rem;
    height: auto;
    min-height: 40px;
    align-content: start;
}
/* Mobilni: 1–2 kartice */
@media (max-width: 576px) {
    #bansGrid {
        grid-template-columns: repeat(1, 1fr);
    }
}
/* Tablet: 3 kartice */
@media (min-width: 577px) and (max-width: 991px) {
    #bansGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Desktop: max 4 kartice */
@media (min-width: 992px) {
    #bansGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--card);
    backdrop-filter: blur(16px);
    border: 0.5px solid transparent;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
    .card:hover {
        cursor:pointer;
    }

    .card-gradient {
        background: var(--card-gradient);
    }
.weather {
    background: var(--card-gradient); /* Veoma providna bela */
    -webkit-backdrop-filter: blur(16px); /* Zamućenje za Safari */
    backdrop-filter: blur(16px); /* Zamućenje pozadine */
    border-radius: 12px;
    padding: 24px; /* Malo više disajnog prostora unutra */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Suptilna ivica */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* Meka senka za dubinu */
    box-sizing: border-box;
    transition: transform 1s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 1.2s ease-in;
    width: 100%; /* zauzima celu širinu raspoloživog grid-area */
    max-width: 700px;
}
    /* Gornji deo: Lokacija i dugme */
    .weather .header {
        font-size: .5rem;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
        .weather .header .badge {
            background: transparent;
            padding: 6px;
            border: 1px solid rgba(16, 185, 129, 0.1);
            color: #10b981;         
            border-color: rgba(25, 135, 84, 0.3); /* Ovde definišeš boju za success */
        }

    .weather-icon-anim {
        font-size: 2.9rem;
        display: inline-block;
        text-align: right;
        animation: pulse 3s infinite ease-in-out;
    }
    .weather:hover {
        transform: scale(1.01); /* lagani hover efekat */
        cursor: pointer;
    }
    .weather .footer-update {
        text-align: center;
        padding-top: 20px;
        font-size: 0.7rem;
        opacity: 0.5;
        color: white;
    }
    /* Smanjivanje fontova za mobilne uređaje */
    @media (max-width: 480px) {
        .temp-value {
            font-size: 3rem;
        }

        .weather-icon-anim {
            font-size: 2rem;
        }

        .header,
        .bottom-info {
            font-size: 0.9rem;
            font-weight: bold;
        }
    }
    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
    /* Centralna temperatura */
    .temp-section {
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-top: 15px;
        margin-bottom: 0;
        padding: 0 10px;
    }
    .temp-value {
        text-align: center;
        margin-top: 5px;
        font-size: 1.9rem;
        font-weight: bold;
        line-height: 1;
    }       
    .condition {
        font-size: 1.1rem;
        color: #0be97a;
        margin-top: 10px;
        opacity: 0.4;
        font-weight: bold;
        letter-spacing: 0.2cap;
    }
    /* Donji deo weather-a sa 3 kolone */
    .bottom-info {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 28px;
    }
    .info-item {
        flex: 1; /* svaka kolona zauzima isti prostor */
        display: flex;
        flex-direction: column; /* label gore, value dole */
        align-items: center; /* centriraj sadržaj po horizontali */
    }
    .info-label {
        font-size: 1.2rem;
        font-weight: 600;
        text-align: start;
        opacity: 0.8;
        margin-bottom: 8px;
        color: #ffffff;
        opacity: 0.5;
    }
    .info-value {
        display: flex;
        font-size: 1.1rem;
        align-items: center;
        justify-content: center;
        color: #ffce54;
        gap: 8px; /* Razmak između ikonice i teksta */
    }
    /* Postavljanje veličine za sve ikone */
    .wind-spinner svg {
        width: 28px;
        height: 28px;
        fill: #54d7ff; /* Boja vetrenjače */
        display: block; /* Uklanja eventualne viškove prostora */
    }
    .wind-spinner,
    .humidity-wave,
    .feel-pulse,
    .sun,
    .rain,
    .snow,
    .night,
    .cloud,
    .hot,
    .cold {
        display: inline-block;
        transform-origin: center;
    }
    /* 1. Vetrenjača - Rotacija */
    .wind-spinner {
        animation: spin 3s linear infinite;
    }
    /* 2. Vlažnost - Pulsiranje (kap) */
    .humidity-wave {
        animation: pulse-wave 2s infinite ease-in-out;
    }
    /* 3. Osećaj - Pulsiranje (termometar) */
    .feel-pulse {
        animation: pulse-glow 2s infinite ease-in-out;
    }
    /* Specifične animacije za weather */
    .sun {
        animation: rotate 10s linear infinite;
        color: #ffce54;
    }
    .rain {
        animation: rain 1s infinite linear;
        color: #4fc3f7;
    }
    .snow {
        animation: snow 2s infinite linear;
        color: #ffffff;
    }
    .night {
        animation: float 3s infinite ease-in-out;
        color: #e90ff1;
    }
    .cloud {
        animation: drift 4s infinite ease-in-out;
        color: #bdc3c7;
    }
    .hot {
        animation: pulse 1s infinite;
        color: #f7250e;
    }    
    .cold {
        animation: shake 2s infinite;
        color: #95a5a6;
    }
    /* Keyframes */
    @keyframes spin {
        100% {
            transform: rotate(360deg);
        }
    }
    @keyframes pulse-wave {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }
    }
    @keyframes pulse-glow {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }
    }
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }
    @keyframes rain {
        0% {
            transform: translateY(0);
        }

        100% {
            transform: translateY(15px);
            opacity: 0;
        }
    }
    @keyframes snow {
        0% {
            transform: translateY(0) rotate(0deg);
        }

        100% {
            transform: translateY(15px) rotate(360deg);
        }
    }
    @keyframes float {
        0%, 100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }
    @keyframes drift {
        0%, 100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(10px);
        }
    }
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.3);
        }
    }
    @keyframes shake {
        0%, 100% {
            transform: rotate(-5deg);
        }

        50% {
            transform: rotate(5deg);
        }
    }


.flag-icon {
    background: none;
    height: 30px;
    object-fit: cover;
    vertical-align: middle;   
}


.skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #2d3748 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
    height: 80px; /* Podesi visinu da odgovara tvojoj pravoj kartici */
    margin-bottom: 15px;
    width: 100%;
}
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

      
.temp-frozen {
    color: #3498db;
}
.temp-cold {
    color: #4fc3f7;
}
.temp-cool {
    color: #ffce54;
}
.temp-good {
    color: #2ecc71;
}
.temp-warm {
    color: #ff7675;
}
.temp-hot {
    color: #d63031;
}


.section-block {
    background: #243b57;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
}
    .section-block h4 {
        margin-bottom: 0.6rem;
        font-size: 1.1rem;
        color: #00b4d8;
        font-weight: 600;
    }
    .section-block ul {
        list-style: disc;
        padding-left: 20px;
        color: var(--text);
        font-size: 13px;
        margin-bottom: 8px;
    }
    .ban-time {
        font-weight: 700;
        color: var(--accent2);
        display: inline-block;
    }
    .holiday {
        color: #facc15; /* žuta za praznike */
        font-style: italic;
    }
    .hidden-items {
        margin-top: 6px;
    }
        .hidden-items ul {
            list-style: circle;
            padding-left: 24px;
            color: var(--muted);
            font-size: 12px;
        }
    .section-block.nacionalne {
        background: #0077b6; /* plava */
        color: #fff;
    }
    .section-block.lokalne {
        background: #ffd166; /* žuta */
        color: #222;
    }
    .section-block.dozvole {
        background: #06d6a0; /* zelena */
        color: #fff;
    }
    .generalModal {       
        display: none;
        position: fixed;
        z-index: 999;
        left: 0;       
        width: 100%;
        height: 100%;
        background: var(--card);    
    }

/* Glavni kontejner modala */
.modal-content {
    background: var(--card-gradient);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.137);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
    margin: 5% auto;
    width: 95%;
    max-width: 900px;
    color: #fff;
    max-height: 85vh; /* Ograniči visinu da se uklopi u ekran */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden; /* BITNO: Ovo sprečava scroll celog modala */
    overflow-y: auto; /* Omogućava scroll samo za telo modala */
}


.modal-header {
    background: #16263d;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px; /* više prostora gore/dole */
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    margin: 15px;
    border-radius: 12px;
    min-height: 64px; /* osiguraj da zastava stane */
}

    .modal-header.is-scrolled {
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
    }

.modal-title {
    display: flex;
    align-items: center;
    margin: 0;
    flex-grow: 1; /* zauzima širinu, ali unutra raspodela zavisi od child elemenata */
}

#modalFlagContainer {
    flex: 0 0 auto; /* fiksna širina, ne rasteže se */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem; /* malo razmaka od naslova */
}

    #modalFlagContainer .flag-icon {
        max-height: 64px; /* zastava se prilagođava visini headera */
        height: auto;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

#modalTitleText {
    flex: 1; /* naslov zauzima ostatak prostora */
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: #00c896;
}

/* Osiguraj da se dugme ne skuplja */
.btn-close {
    flex-shrink: 0;
    filter: invert(1); /* Ako ti je pozadina tamna, ovo će videti dugme */
}
.close:hover {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .general-bans-card {
        padding-top: 16px;
        padding-bottom: 16px;
        min-height: 64px; /* prilagodi visini zastave */
    }
    #modalFlagContainer .flag-icon {      
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* Responsive font-size */
@media (max-width: 576px) {
    #modalTitleText {
        font-size: 1.3rem;
    }
}
@media (min-width: 577px) and (max-width: 992px) {
    #modalTitleText {
        font-size: 1.4rem;
    }
}

.modal-footer {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    text-align: center !important;
}


    .general-bans-card {
        border: 1px solid rgba(56, 189, 248, 0.24);
        background: var(--card);
        backdrop-filter: blur(18px);
        border-radius: 0.9rem;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    }

    .general-bans-empty {
        border-color: rgba(25, 135, 84, 0.45) !important;
        height: inherit !important;
    }

    .general-bans-title {
        color: var(--accent);
        font-weight: 700;
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .general-bans-item {
        color: var(--text);
        padding: 0.45rem 0;
        font-size: 0.9rem;
    }

    .general-bans-muted {
        color: var(--muted);
        font-size: 0.8rem;
        text-align: center;
    }




    .row {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        color: var(--muted);
        font-size: 14px;
    }

    .tv-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 20px;
    }

    .video-card {
        background: var(--card);
        backdrop-filter: blur(16px);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

        .video-card b {
            color: var(--accent);
            font-size: 14px;
            margin-bottom: 6px;
        }

        .video-card video {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 12px;
            object-fit: cover;
            background: #000;
            display: block;
        }

    .channel-select {
        flex: 1 1 40%;
        max-width: 40%;
        padding: 10px 14px;
        font-size: 16px;
        border: 1px solid #555;
        border-radius: 6px;
        background: linear-gradient(135deg, #222, #333);
        color: #eee;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .channel-select:hover {
            background: linear-gradient(135deg, #333, #444);
        }

    .tv-player-shell {
        position: relative;
        width: 100%;
    }

    .tv-player {
        flex: 1 1 50%;
        max-width: 100%;
        width: 100%;
        border: 2px solid #444;
        border-radius: 8px;
        background: #000;
        display: block;
    }

    .tv-player-placeholder {
        position: absolute;
        inset: 0;
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(8, 12, 20, 0.45), rgba(8, 12, 20, 0.85));
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
        pointer-events: none;
    }

    .tv-player-placeholder-content {
        max-width: 360px;
    }

    .tv-player-placeholder-icon {
        font-size: 2rem;
        line-height: 1;
        margin-bottom: 0.5rem;
        color: var(--accent);
    }

    .tv-player-placeholder-title {
        font-weight: 700;
        margin-bottom: 0.35rem;
        color: #fff;
    }

    .tv-player-placeholder-text {
        color: var(--muted);
        font-size: 0.9rem;
    }

    select {
        padding: 8px;
        margin: 10px 0;
    }


    video {
        width: 100%;
        max-width: 720px;
        border: 2px solid #444;
        border-radius: 8px;
    }

    .tv-page-header {
        border: 1px solid rgba(56, 189, 248, 0.25);
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.08));
    }

        .tv-page-header h4 {
            font-weight: 800;
            letter-spacing: 0.02em;
            margin: 0;
        }

    .tv-page-kpis .badge {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .tv-channel-panel {
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .tv-channel-list-wrap {
        max-height: 72vh;
        overflow-y: auto;
        padding-right: 0.2rem;
    }

        .tv-channel-list-wrap::-webkit-scrollbar {
            width: 8px;
        }

        .tv-channel-list-wrap::-webkit-scrollbar-thumb {
            background: rgba(56, 189, 248, 0.35);
            border-radius: 999px;
        }

    @media (max-width: 991.98px) {
        .tv-channel-list-wrap {
            max-height: none;
        }
    }

    footer {
        text-align: center;
        padding: 30px 10px;
        color: var(--muted);
        font-size: 12px;
    }
    /* PWA */
    /* Pozadina koja prekriva ceo ekran */
    .pwa-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6); /* Tamna, providna pozadina */
        backdrop-filter: blur(8px); /* Zamućenje ekrana iza popupa */
        -webkit-backdrop-filter: blur(8px);
        display: none; /* Sakriveno po defaultu */
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }
    /* Providna staklena kartica na sredini ekrana */
    .pwa-card {
        background: rgba(30, 41, 59, 0.75); /* Tamno plava sa 75% vidljivosti */
        border: 1px solid rgba(255, 255, 255, 0.1); /* Tanka svetla ivica */
        border-radius: 16px;
        padding: 24px;
        width: 90%;
        max-width: 400px;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        color: #ffffff;
    }

    .pwa-logo-container {
        margin-bottom: 16px;
    }

    .pwa-app-logo {
        width: 72px;
        height: 72px;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .pwa-card h2 {
        margin: 0 0 10px 0;
        font-size: 1.4rem;
        font-weight: 600;
    }

    .pwa-card p {
        font-size: 0.95rem;
        color: #cbd5e1; /* Blago siva boja teksta */
        line-height: 1.5;
        margin: 0 0 24px 0;
    }

    .pwa-buttons {
        display: flex;
        gap: 12px;
    }

    .pwa-btn {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
    }

    .pwa-btn-primary {
        background: #38bdf8; /* Svetlo plava */
        color: #0f172a;
    }

        .pwa-btn-primary:hover {
            background: #0ea5e9;
        }

    .pwa-btn-secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

        .pwa-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.15);
        }

    .media-status-alert {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(10px);
    }

    .media-status-alert-icon {
        line-height: 1;
        font-size: 1.1rem;
        margin-top: 0.1rem;
    }

    .media-form-shell {
        border: 1px solid rgba(56, 189, 248, 0.2);
        border-left: 4px solid rgba(56, 189, 248, 0.85);
        border-radius: 0.9rem;
        padding: 0.85rem;
        background: linear-gradient(180deg, rgba(20, 30, 48, 0.35), rgba(20, 30, 48, 0.2));
    }

    .media-form-title {
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        color: var(--accent);
        margin-bottom: 0.6rem;
    }

    .media-modern-input {
        border-color: rgba(148, 163, 184, 0.35);
        background: rgba(8, 17, 31, 0.55);
        color: var(--text);
    }



        .media-modern-input:focus {
            border-color: rgba(56, 189, 248, 0.8);
            box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
            background: rgba(8, 17, 31, 0.7);
            color: var(--text);
        }

    .home-hero {
        border: 1px solid rgba(56, 189, 248, 0.25);
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(34, 197, 94, 0.08));
    }

        .home-hero h5 {
            font-weight: 800;
            margin: 0;
        }

    .home-bans-shell {
        border: 1px solid rgba(56, 189, 248, 0.2);
    }

        .home-bans-shell .section {
            margin: 0;
        }




.identity-page
{
    display: flex;
    justify-content: center;   /* centar po horizontali */
    align-items: center;       /* centar po vertikali */
    min-height: 100vh;         /* zauzmi celu visinu ekrana */
}
.identity-page main {
    max-width: 980px;
    margin: 0 auto;
}


.identity-shell .col-md-5 {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

    .identity-page .identity-shell {
        margin: 0.75rem 0;
    }

.identity-shell section {
    /*background: rgba(255,255,255,0.05);*/
    background: var(--card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

    .identity-page .identity-card,
    .identity-page .identity-shell > header,
    .identity-page .row > [class*="col-"] > section {
        border: 1px solid rgba(56, 189, 248, 0.24);
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(34, 197, 94, 0.08));
        backdrop-filter: blur(14px);
        border-radius: 0.9rem;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    }

    .identity-page .identity-shell > header,
    .identity-page .row > [class*="col-"] > section {
        padding: 1.1rem;
        height: 100%;
    }
.identity-shell section {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

    .identity-shell section:hover {
        border-color: rgba(100, 180, 255, 0.2); /* Blago zasvetli rub kartice kad pređeš mišem */
    }
    .identity-page h1,
    .identity-page h2,
    .identity-page h3,
    .identity-page h4,
    .identity-page label,
    .identity-page p,
    .identity-page li,
    .identity-page dt,
    .identity-page dd,
    .identity-page .text-dark,
    .identity-page .text-body,
    .identity-page .text-muted {
        color: var(--text) !important;
    }

    .identity-page .text-danger,
    .identity-page .field-validation-error,
    .identity-page .validation-summary-errors {
        color: #f87171 !important;
    }

    .identity-page a,
    .identity-page .btn-link {
        color: var(--accent);
    }

        .identity-page .btn-link:hover {
            color: #7dd3fc;
        }

    .identity-page .form-control,
    .identity-page .form-select {
        border-color: rgba(148, 163, 184, 0.35);
        background: rgba(8, 17, 31, 0.6);
        color: var(--text);
    }

        .identity-page .form-control:focus,
        .identity-page .form-select:focus {
            border-color: rgba(56, 189, 248, 0.75);
            box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.18);
            background: rgba(8, 17, 31, 0.75);
            color: var(--text);
        }

    .identity-page .form-check-input {
        background-color: rgba(8, 17, 31, 0.8);
        border-color: rgba(148, 163, 184, 0.45);
    }

        .identity-page .form-check-input:checked {
            background-color: #0ea5e9;
            border-color: #0ea5e9;
        }

    .identity-page .form-floating > label {
        color: rgba(229, 238, 252, 0.72) !important;
    }

    .identity-page .btn-primary,
    .identity-page .btn-danger,
    .identity-page .btn-warning {
        border: none;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    }

    .identity-page .btn-primary {
        background: linear-gradient(90deg, #0ea5e9, #38bdf8);
        color: #041223;
        font-weight: 700;
    }

        .identity-page .btn-primary:hover {
            filter: brightness(1.06);
        }

    .identity-page .btn-outline-secondary,
    .identity-page .btn-outline-primary,
    .identity-page .btn-outline-danger {
        border-color: rgba(56, 189, 248, 0.4);
        color: var(--text);
    }

        .identity-page .btn-outline-secondary:hover,
        .identity-page .btn-outline-primary:hover,
        .identity-page .btn-outline-danger:hover {
            background: rgba(56, 189, 248, 0.15);
            border-color: rgba(56, 189, 248, 0.7);
            color: var(--text);
        }

    .identity-page .nav-pills .nav-link {
        border: 1px solid rgba(148, 163, 184, 0.22);
        color: var(--text);
        margin-bottom: 0.45rem;
        border-radius: 0.65rem;
    }

        .identity-page .nav-pills .nav-link.active,
        .identity-page .nav-pills .show > .nav-link {
            background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.9));
            color: #041223;
            border-color: transparent;
        }

    .identity-page .alert {
        border: 1px solid rgba(56, 189, 248, 0.26);
        backdrop-filter: blur(8px);
    }

    .identity-page hr {
        border-color: rgba(148, 163, 184, 0.28);
    }

    /* Na desktopu neka kartica bude šira, ali i dalje centrirana */
    @media (min-width: 992px) {
        .identity-shell .col-md-5 {
            max-width: 420px;
        }
    }

    @media (max-width: 991.98px) {
        .identity-page main {
            max-width: 100%;
        }
    }

    @media (max-width: 767.98px) {
        .identity-page .row > [class*="col-"] > section {
            margin-bottom: 0.75rem;
        }
    }

    @media (max-width: 576px) {
        .identity-shell h2 {
            font-size: 1.25rem;
        }

        .identity-shell form {
            padding: 1rem;
        }
    }

    @media (max-width: 576px) {
        .identity-shell h2 {
            font-size: 1.25rem;
        }

        .identity-shell section {
            padding: 1rem;
        }
    }

@media (min-width: 768px) {
    .identity-page .row > [class*="col-"] {
        display: flex;
    }

        .identity-page .row > [class*="col-"] > section {
            flex: 1;
        }
}

@media (max-width: 576px) {
    .identity-page .row {
        flex-direction: column;
        align-items: center;
    }

    .identity-shell section {
        width: 100%;
        max-width: 340px; /* uža forma na mobilnom */
        margin-bottom: 1rem;
    }

    .identity-page .btn-primary {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .identity-page .form-control {
        font-size: 0.9rem;
    }
}




/* 1. Input grupa i Ikone */
.input-group-text {
    background-color: #14222e !important;
    border: 1px solid #385a7a !important;
    border-right: none !important;
    padding: 0 16px !important; /* Malo više "disanja" za ikonu */
}

    .input-group-text img {
        filter: brightness(0) saturate(100%) invert(65%) sepia(15%) saturate(600%) hue-rotate(170deg);
        transition: all 0.3s ease;
    }

/* 2. Input polje */
.form-control {
    background-color: #14222e !important;
    border: 1px solid #385a7a !important;
    border-left: none !important;
    color: #e0e0e0 !important;
}
    .form-control:focus {
        /* Blagi sjaj oko okvira inputa pri kliku */
        box-shadow: 0 0 8px rgba(100, 180, 255, 0.2) !important;
        border-color: rgba(100, 180, 255, 0.4) !important;
        outline: none !important;
    }

/* Fokus efekat za ikonu i input zajedno */
.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: rgba(100, 180, 255, 0.5) !important;
    box-shadow: 0 0 10px rgba(100, 180, 255, 0.2) !important;
}

.input-group:focus-within img {
    filter: brightness(0) saturate(100%) invert(95%) sepia(5%) saturate(100%) hue-rotate(180deg);
}

/* 3. Dugme - "Burgundy" luksuzni stil */
.btn-danger {
    /* Gradijent za "Dark Luxury" dubinu */
    background: linear-gradient(180deg, #9b365b 0%, #66203a 100%) !important;
    border: none !important;
    padding: 12px !important;
    font-weight: 500;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s ease !important;
    /* Dublja senka za taktilni efekat */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
}

    .btn-danger:hover {
        /* Svetliji gradijent na hover */
        background: linear-gradient(180deg, #b8406a 0%, #802b4a 100%) !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    }

    .btn-danger:active {
        /* Pritisnut efekat */
        transform: translateY(1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    }


/* --- 1. Glavni Glass Container --- */
.input-group {
    background: rgba(20, 34, 46, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}

/* --- 2. Input i Ikona (Transparentni) --- */
.form-control, .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #e0e0e0 !important;
    padding: 12px 16px !important;
}

/* --- 3. Animacije --- */
@keyframes shake-lux {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-4px);
    }

    40%, 80% {
        transform: translateX(4px);
    }
}

@keyframes pulse-lux {
    0% {
        box-shadow: 0 0 0px rgba(46, 204, 113, 0);
    }

    50% {
        box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
    }

    100% {
        box-shadow: 0 0 0px rgba(46, 204, 113, 0);
    }
}

/* --- 4. Invalid Stanje (Koristimo INSET za zaobljene ivice) --- */
.is-invalid {
    /* Uklonjen standardni border, koristi se inset senka da ne probija */
    box-shadow: inset 0 0 0 1.5px rgba(220, 53, 69, 0.8) !important;
    animation: shake-lux 0.4s ease-in-out !important;
}

    .is-invalid:focus {
        box-shadow: inset 0 0 0 1.5px rgba(220, 53, 69, 0.8), 0 0 10px rgba(220, 53, 69, 0.3) !important;
        outline: none !important;
    }

/* --- 5. Valid Stanje --- */
.is-valid {
    box-shadow: inset 0 0 0 1.5px rgba(22, 163, 74, 0.8) !important;
    animation: pulse-lux 2s infinite !important;
}

/* --- 6. Ikone i Feedback --- */
.input-group:has(.is-invalid) img {
    filter: brightness(0) saturate(100%) invert(25%) sepia(80%) saturate(2000%) hue-rotate(350deg) !important;
}

.invalid-feedback {
    display: block !important;
    font-style: italic;
    font-size: 0.70rem !important;
    color: #ff6b6b !important;
    opacity: 0.9;
    padding-left: 5px;
    margin-top: 4px;
}

/* --- 7. Fokus (Normalno stanje) --- */
.input-group:focus-within {
    border-color: rgba(100, 180, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(100, 180, 255, 0.1) !important;
}



/* Stilizovanje kontejnera za linkove */
.mt-3.text-center {
    margin-top: 2rem !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Suptilna linija razdvajanja */
}

    /* Stilizovanje samih linkova */
    .mt-3.text-center a {
        color: #8da9c4 !important; /* Meka, hladna plava */
        text-decoration: none !important;
        font-size: 0.85rem !important;
        transition: all 0.3s ease !important;
        display: inline-block;
        padding: 4px 8px;
    }

        /* Hover efekat za eleganciju */
        .mt-3.text-center a:hover {
            color: #ffffff !important;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
        }


/* Wrapper za checkbox */
.remember-me-wrapper {
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Stil samog prekidača (Switch) */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    width: 2.5em !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

    /* Kada je uključen - luksuzna plava sa sjajem */
    .form-check-input:checked {
        background-color: #3498db !important;
        box-shadow: 0 0 10px rgba(52, 152, 219, 0.6) !important;
    }

/* Tekst pored prekidača */
.form-check-label {
    color: #b0c4de !important; /* Meka plavičasta boja */
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-left: 10px;
    cursor: pointer;
}

    /* Hover efekat na labelu */
    .form-check-label:hover {
        color: #ffffff !important;
    }


    /** Login dugme */
.btn-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; /* Luksuzni plavi gradijent */
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 10px !important; /* Usklađeno sa inputima */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    position: relative;
    overflow: hidden;
}

    /* Hover efekat: "Zlatni" sjaj i blago podizanje */
    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5) !important;
        background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    }

    /* Klik efekat: "Pulsiranje" */
    .btn-login:active {
        transform: translateY(1px);
        box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4) !important;
    }

    /* Dodatak: "Glass" odsjaj na dugmetu (kao da je staklo) */
    .btn-login::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: 0.5s;
    }

    .btn-login:hover::before {
        left: 100%;
    }