:root {
    --sidebar-width: 270px;
    --topbar-height: 72px;

    --background: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --sidebar: #111827;
    --sidebar-soft: #1f2937;

    --primary: #4f46e5;
    --primary-dark: #3730a3;

    --text: #172033;
    --text-soft: #64748b;

    --border: #e2e8f0;

    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --unknown: #64748b;

    --shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.admin-app {
    min-height: 100vh;
}

/* Topbar */

.admin-topbar {
    position: fixed;
    z-index: 900;
    top: 0;
    right: 0;
    left: var(--sidebar-width);

    height: var(--topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.sidebar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface);
    color: var(--text);

    cursor: pointer;
}

.topbar-title {
    display: flex;
    flex-direction: column;
}

.topbar-title strong {
    font-size: 16px;
}

.topbar-title span {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    color: #ffffff;
    font-weight: 800;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    font-size: 13px;
}

.user-details span {
    color: var(--text-soft);
    font-size: 11px;
}

/* Sidebar */

.admin-sidebar {
    position: fixed;
    z-index: 1000;
    inset: 0 auto 0 0;

    width: var(--sidebar-width);

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    background:
        linear-gradient(
            180deg,
            #111827,
            #0f172a
        );

    color: #ffffff;
}

.sidebar-brand {
    min-height: var(--topbar-height);

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 24px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background: rgba(99, 102, 241, 0.18);

    font-size: 22px;
}

.sidebar-brand div:last-child {
    display: flex;
    flex-direction: column;
}

.sidebar-brand strong {
    font-size: 15px;
}

.sidebar-brand span {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 18px 14px;
}

.sidebar-section-title {
    margin: 18px 12px 9px;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.sidebar-link {
    min-height: 47px;

    display: flex;
    align-items: center;
    gap: 12px;

    margin-bottom: 5px;
    padding: 10px 12px;

    border-radius: 12px;

    color: #cbd5e1;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-link.is-active {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6d28d9
        );

    color: #ffffff;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.3);
}

.sidebar-link-icon {
    width: 25px;
    text-align: center;
    font-size: 17px;
}

.sidebar-link small {
    margin-left: auto;
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
}

.sidebar-link.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;

    padding: 18px 24px 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #64748b;
    font-size: 11px;
}

.sidebar-footer strong {
    margin-top: 4px;
    color: #94a3b8;
}

.sidebar-overlay {
    display: none;
}

/* Glavni sadržaj */

.admin-main {
    min-height: 100vh;

    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
}

.admin-content {
    width: 100%;
    max-width: 1700px;

    margin: 0 auto;
    padding: 30px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;

    margin-bottom: 25px;
}

.page-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.page-header h1 {
    margin: 0;

    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--text-soft);
}

/* Dugmad */

.button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    border: 0;
    border-radius: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            #7c3aed
        );

    color: #ffffff;
    box-shadow: 0 9px 20px rgba(79, 70, 229, 0.24);
}

.button-secondary {
    background: var(--text);
    color: #ffffff;
}

.button-light {
    background: #eef2f7;
    color: var(--text);
}

/* Statistika */

.stats-grid {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 24px;
}

.stat-card {
    min-height: 125px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 48px;
    height: 48px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border-radius: 14px;

    background: var(--surface-soft);

    font-size: 21px;
}

.stat-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.stat-content span {
    color: var(--text-soft);
    font-size: 12px;
}

.stat-content strong {
    margin-top: 5px;
    font-size: 26px;
}

.mini-stats-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 20px;
}

.mini-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 19px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
}

.mini-stat span {
    color: var(--text-soft);
    font-size: 13px;
}

.mini-stat strong {
    font-size: 22px;
}

/* Kartice */

.dashboard-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 0.8fr);
    gap: 22px;
}

.panel-card {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 19px;
}

.panel-card-header h2 {
    margin: 0;
    font-size: 18px;
}

.panel-card-header p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.text-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

/* Sistem status */

.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.system-status-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 6px;

    border-bottom: 1px solid var(--border);
}

.system-status-item:last-child {
    border-bottom: 0;
}

.system-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.system-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(22, 163, 74, 0.12);
}

.system-status-dot.warning {
    background: var(--warning);
    box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.12);
}

.system-status-item div {
    display: flex;
    flex-direction: column;
}

.system-status-item strong {
    font-size: 13px;
}

.system-status-item span:last-child {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 11px;
}

/* Toolbar */

.station-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 20px;
}

.station-search {
    display: flex;
    flex: 1;
    gap: 9px;
}

.station-search input {
    width: 100%;
    max-width: 500px;
    min-height: 42px;

    padding: 10px 14px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface-soft);
    color: var(--text);

    outline: none;
}

.station-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.station-result-count {
    color: var(--text-soft);
    font-size: 13px;
}

/* Tablica */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.admin-table th {
    padding: 13px 14px;

    border-bottom: 1px solid var(--border);

    background: var(--surface-soft);
    color: var(--text-soft);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table td {
    padding: 15px 14px;

    border-bottom: 1px solid var(--border);

    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: #fafbff;
}

.station-name-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.station-name-cell > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.station-name-cell strong {
    font-size: 13px;
}

.station-name-cell span {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 11px;
}

.station-logo-placeholder {
    width: 40px;
    height: 40px;

    display: grid;
    flex: 0 0 auto;
    place-items: center;

    border-radius: 12px;

    background: #eef2ff;
}

.table-subtext {
    display: block;

    margin-top: 4px;

    color: var(--text-soft);
    font-size: 11px;
}

.stream-code {
    display: block;

    max-width: 270px;

    overflow: hidden;

    color: #334155;

    font-family:
        Consolas,
        monospace;
    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Statusi */

.status-badge,
.active-badge {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-online,
.active-badge.active {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

.status-offline,
.active-badge.inactive {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.status-buffering {
    background: rgba(217, 119, 6, 0.12);
    color: var(--warning);
}

.status-unknown {
    background: rgba(100, 116, 139, 0.12);
    color: var(--unknown);
}

/* Akcije */

.table-actions {
    display: flex;
    gap: 7px;
}

.action-button {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--surface-soft);

    cursor: pointer;
}

.action-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.action-button.danger {
    background: #fff5f5;
}

/* Paginacija */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;

    margin-top: 22px;
}

.pagination a {
    min-width: 38px;
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.pagination a.is-current {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* Prazan prikaz */

.empty-state {
    padding: 50px 20px;

    color: var(--text-soft);
    text-align: center;
}

.empty-state-icon {
    margin-bottom: 13px;
    font-size: 38px;
}

.empty-state h3 {
    margin: 0;
    color: var(--text);
}

.empty-state p {
    margin: 8px 0 0;
}

/* Responsive */

@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .mini-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .admin-topbar {
        left: 0;
        padding: 0 17px;
    }

    .sidebar-toggle {
        display: grid;
        place-items: center;
    }

    .topbar-title {
        margin-right: auto;
        margin-left: 12px;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 950;
        inset: 0;

        background: rgba(15, 23, 42, 0.55);
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.is-visible {
        display: block;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-content {
        padding: 22px 16px;
    }
}

@media (max-width: 650px) {
    .user-details {
        display: none;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .page-header .button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .stat-card {
        min-height: 105px;
        padding: 15px;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
    }

    .stat-content strong {
        font-size: 22px;
    }

    .station-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .station-search {
        flex-direction: column;
    }

    .station-search input {
        max-width: none;
    }

    .station-search .button {
        width: 100%;
    }

    .panel-card {
        padding: 16px;
    }
}

@media (max-width: 430px) {
    .stats-grid,
    .mini-stats-grid {
        grid-template-columns: 1fr;
    }

    .topbar-title span {
        display: none;
    }
}
/* ==========================================================
   RADIO STATION FORM
   ========================================================== */

.alert {
    margin-bottom: 22px;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    color: #17683a;
    background: #eafaf1;
    border-color: #bce8ce;
}

.alert-danger {
    color: #9f2929;
    background: #fff0f0;
    border-color: #f2c4c4;
}

.station-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-section {
    padding: 26px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5eaf1;
}

.form-section-header h2 {
    margin: 0 0 4px;
    color: #14213d;
    font-size: 19px;
}

.form-section-header p {
    margin: 0;
    color: #7a879d;
    font-size: 13px;
}

.form-section-icon {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #f2efff;
    font-size: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
    min-width: 0;
}

.form-group-wide {
    grid-column: span 1;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label:not(.toggle-card) {
    display: block;
    margin-bottom: 8px;
    color: #25324b;
    font-size: 13px;
    font-weight: 700;
}

.required {
    color: #e23c3c;
}

.form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d8dfeb;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #1d2940;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-control:focus {
    border-color: #6d3df0;
    box-shadow: 0 0 0 3px rgba(109, 61, 240, 0.12);
}

.form-control.is-invalid {
    border-color: #e04b4b;
    background: #fffafa;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #c73535;
    font-size: 12px;
    font-weight: 600;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: #8994a8;
    font-size: 12px;
}

.input-suffix {
    position: relative;
}

.input-suffix .form-control {
    padding-right: 62px;
}

.input-suffix > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #8994a8;
    font-size: 12px;
    transform: translateY(-50%);
}

.form-toggle-group {
    display: flex;
    align-items: flex-end;
}

.toggle-card {
    display: flex;
    width: 100%;
    min-height: 76px;
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #dfe5ef;
    border-radius: 12px;
    background: #f9fbfd;
    cursor: pointer;
}

.toggle-card:hover {
    border-color: #bdb0f8;
    background: #f8f6ff;
}

.toggle-card input {
    width: 18px;
    height: 18px;
    accent-color: #6d3df0;
}

.toggle-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toggle-card-content strong {
    color: #26324a;
    font-size: 13px;
}

.toggle-card-content small {
    color: #8792a5;
    font-size: 11px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-bottom: 30px;
}

@media (max-width: 1050px) {
    .form-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .form-section {
        padding: 18px;
    }

    .form-grid,
    .form-grid-three {
        grid-template-columns: 1fr;
    }

    .form-group-full,
    .form-group-wide {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .button {
        box-sizing: border-box;
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* ==========================================================
   INLINE STATION ACTIONS
   ========================================================== */

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.active-toggle {
    min-width: 42px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.active-toggle:hover {
    transform: translateY(-1px);
}

.active-toggle.active {
    color: #17723d;
    background: #e8f8ef;
    box-shadow: inset 0 0 0 1px #bee8ce;
}

.active-toggle.inactive {
    color: #9d3434;
    background: #fff0f0;
    box-shadow: inset 0 0 0 1px #f0caca;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.action-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    place-items: center;
    border: 1px solid #dfe5ef;
    border-radius: 9px;
    background: #fff;
    color: #34415a;
    text-decoration: none;
    cursor: pointer;
}

.action-button:hover {
    border-color: #bcb0f6;
    background: #f5f2ff;
}

.action-button.danger:hover {
    border-color: #efbcbc;
    background: #fff1f1;
}
/* ==========================================================
   STREAM ANALYZER
   ========================================================== */

.analyzer-search-card {
    margin-bottom: 22px;
    padding: 24px;
}

.analyzer-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.analyzer-url-field {
    flex: 1;
}

.analyzer-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid;
    border-radius: 16px;
}

.analyzer-status-card.is-online {
    border-color: #bce8ce;
    background: #eafaf1;
}

.analyzer-status-card.is-offline {
    border-color: #efc4c4;
    background: #fff1f1;
}

.analyzer-status-icon {
    font-size: 32px;
}

.analyzer-status-card span {
    display: block;
    margin-bottom: 4px;
    color: #768299;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.analyzer-status-card strong {
    color: #1e2b43;
    font-size: 19px;
}

.analyzer-status-card p {
    margin: 6px 0 0;
    color: #9b3535;
    font-size: 13px;
}

.analyzer-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.analyzer-result-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e2e7ef;
    border-radius: 14px;
    background: #fff;
}

.analyzer-result-card span {
    display: block;
    margin-bottom: 8px;
    color: #8590a4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.analyzer-result-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: #26324a;
    font-size: 14px;
}

.analyzer-details {
    padding: 24px;
}

.analyzer-details h2 {
    margin-top: 0;
}

.analyzer-details dl {
    margin: 0;
}

.analyzer-details dl div {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}

.analyzer-details dl div:last-child {
    border-bottom: 0;
}

.analyzer-details dt {
    color: #7b879b;
    font-size: 13px;
    font-weight: 700;
}

.analyzer-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #26324a;
    font-size: 13px;
}

@media (max-width: 1250px) {
    .analyzer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .analyzer-form {
        align-items: stretch;
        flex-direction: column;
    }

    .analyzer-form .button {
        justify-content: center;
        width: 100%;
    }

    .analyzer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analyzer-details dl div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 520px) {
    .analyzer-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   STREAM ANALYZER HEADERS
   ========================================================== */

.analyzer-headers {
    margin-top: 22px;
    padding: 24px;
}

.analyzer-header-value {
    display: block;
    max-width: 760px;
    white-space: normal;
    overflow-wrap: anywhere;
}
/* ==========================================================================
   Stream Analyzer
   ========================================================================== */

/*
 * Glavna kartica forme
 */
.analyzer-search-card {
    margin-bottom: 24px;
}

.analyzer-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.analyzer-url-field {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.analyzer-url-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.analyzer-url-field .form-control {
    width: 100%;
    min-height: 48px;
}

.analyzer-url-field .form-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted, #7c8799);
    font-size: 12px;
    line-height: 1.5;
}

.analyzer-actions {
    flex-shrink: 0;
}

.analyzer-actions .button {
    min-height: 48px;
    white-space: nowrap;
}


/* ==========================================================================
   Glavni rezultat analize
   ========================================================================== */

.analyzer-result-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color, #dfe5ec);
}

.analyzer-result-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: #94a3b8;
}

.analyzer-result-card.is-online::before {
    background: #16a34a;
}

.analyzer-result-card.is-offline::before {
    background: #dc2626;
}

.analyzer-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.analyzer-result-header h2 {
    margin: 4px 0 6px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
}

.analyzer-section-label {
    display: inline-block;
    color: var(--primary-color, #2563eb);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.analyzer-effective-url {
    max-width: 820px;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-muted, #64748b);
    font-size: 13px;
}


/* ==========================================================================
   Online / offline status
   ========================================================================== */

.analyzer-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.analyzer-status-badge.is-online {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.analyzer-status-badge.is-offline {
    border-color: rgba(220, 38, 38, 0.24);
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.analyzer-status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.13);
}

.analyzer-status-badge.is-online .analyzer-status-dot {
    animation: analyzerPulse 1.8s infinite;
}

@keyframes analyzerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.42);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}


/* ==========================================================================
   Statističke kartice
   ========================================================================== */

.analyzer-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.analyzer-stat-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.7),
            rgba(248, 250, 252, 0.65)
        );
}

.analyzer-stat-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analyzer-stat-value {
    display: block;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
    color: var(--heading-color, #172033);
    font-size: 25px;
    line-height: 1.2;
}

.analyzer-stat-value.analyzer-stat-small {
    font-size: 17px;
}

.analyzer-stat-card small {
    display: block;
    color: var(--text-muted, #7c8799);
    font-size: 12px;
    line-height: 1.45;
}


/* ==========================================================================
   Tehnički detalji
   ========================================================================== */

.analyzer-details-card,
.analyzer-headers-card {
    margin-bottom: 24px;
}

.analyzer-table th {
    width: 235px;
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 700;
}

.analyzer-table td {
    color: var(--heading-color, #172033);
    font-weight: 600;
}

.analyzer-url-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.analyzer-url-value a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
}

.analyzer-url-value a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   HTTP / ICY zaglavlja
   ========================================================================== */

.analyzer-details {
    width: 100%;
}

.analyzer-details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 800;
    user-select: none;
}

.analyzer-details > summary::-webkit-details-marker {
    display: none;
}

.analyzer-details > summary::after {
    content: "＋";
    color: var(--primary-color, #2563eb);
    font-size: 22px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.analyzer-details[open] > summary::after {
    content: "−";
}

.analyzer-details > summary small {
    margin-left: auto;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.analyzer-headers-table-wrapper {
    margin-top: 20px;
}

.analyzer-headers-table th:first-child,
.analyzer-headers-table td:first-child {
    width: 240px;
}

.analyzer-header-value {
    display: inline-block;
    max-width: 100%;
    padding: 5px 8px;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-radius: 6px;
    background: var(--code-background, #f1f5f9);
    color: var(--code-color, #334155);
    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 12px;
    line-height: 1.55;
}


/* ==========================================================================
   Tamna tema
   ========================================================================== */

body.dark-theme .analyzer-stat-card,
[data-theme="dark"] .analyzer-stat-card {
    border-color: rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(
            145deg,
            rgba(30, 41, 59, 0.92),
            rgba(15, 23, 42, 0.9)
        );
}

body.dark-theme .analyzer-header-value,
[data-theme="dark"] .analyzer-header-value {
    background: rgba(15, 23, 42, 0.9);
    color: #dbeafe;
}

body.dark-theme .analyzer-status-badge.is-online,
[data-theme="dark"] .analyzer-status-badge.is-online {
    color: #4ade80;
}

body.dark-theme .analyzer-status-badge.is-offline,
[data-theme="dark"] .analyzer-status-badge.is-offline {
    color: #f87171;
}


/* ==========================================================================
   Tablet prikaz
   ========================================================================== */

@media (max-width: 1100px) {
    .analyzer-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   Mobilni prikaz
   ========================================================================== */

@media (max-width: 700px) {
    .analyzer-form {
        align-items: stretch;
        flex-direction: column;
    }

    .analyzer-actions,
    .analyzer-actions .button {
        width: 100%;
    }

    .analyzer-result-header {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .analyzer-status-badge {
        align-self: flex-start;
    }

    .analyzer-result-grid {
        grid-template-columns: 1fr;
    }

    .analyzer-stat-card {
        padding: 16px;
    }

    .analyzer-stat-value {
        font-size: 22px;
    }

    .analyzer-table,
    .analyzer-table tbody,
    .analyzer-table tr,
    .analyzer-table th,
    .analyzer-table td {
        display: block;
        width: 100%;
    }

    .analyzer-table tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color, #e2e8f0);
    }

    .analyzer-table tr:last-child {
        border-bottom: 0;
    }

    .analyzer-table th,
    .analyzer-table td {
        padding: 3px 0;
        border: 0;
    }

    .analyzer-table th {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .analyzer-headers-table th:first-child,
    .analyzer-headers-table td:first-child {
        width: auto;
    }
}
/* ==========================================================================
   Premium Dashboard
   ========================================================================== */

.dashboard-page-header {
    align-items: center;
    gap: 24px;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-stats-grid {
    margin-bottom: 24px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
}

.dashboard-stat-card::after {
    position: absolute;
    right: -28px;
    bottom: -34px;
    width: 110px;
    height: 110px;
    content: "";
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
}

.dashboard-stat-card .stat-icon,
.dashboard-stat-card .stat-content {
    position: relative;
    z-index: 1;
}

.dashboard-stat-card .stat-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-stat-card .stat-content span {
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-stat-card .stat-content strong {
    margin-top: 5px;
    color: var(--heading-color, #172033);
    font-size: 32px;
    line-height: 1.1;
}

.dashboard-stat-card .stat-content small {
    margin-top: 7px;
    color: var(--text-muted, #7c8799);
    font-size: 12px;
    line-height: 1.4;
}

.stat-icon-primary {
    background: rgba(37, 99, 235, 0.12);
}

.stat-icon-success,
.stat-icon-online {
    background: rgba(22, 163, 74, 0.12);
}

.stat-icon-danger {
    background: rgba(220, 38, 38, 0.12);
}

.stat-icon-featured {
    background: rgba(245, 158, 11, 0.14);
}

.stat-icon-warning {
    background: rgba(234, 179, 8, 0.14);
}


/* ==========================================================================
   Dashboard raspored
   ========================================================================== */

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    align-items: start;
    gap: 24px;
}

.dashboard-sidebar-column {
    display: grid;
    gap: 24px;
}


/* ==========================================================================
   Naslovi kartica
   ========================================================================== */

.dashboard-card-eyebrow {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--primary-color, #2563eb);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.dashboard-health-card,
.dashboard-actions-card,
.dashboard-latest-card,
.dashboard-modules-card {
    margin-bottom: 0;
}


/* ==========================================================================
   Zdravlje platforme
   ========================================================================== */

.dashboard-health-card .panel-card-header {
    align-items: flex-start;
}

.dashboard-health-score {
    display: flex;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 8px solid rgba(22, 163, 74, 0.12);
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.06);
}

.dashboard-health-score strong {
    color: #15803d;
    font-size: 24px;
    line-height: 1;
}

.dashboard-health-score span {
    margin-top: 5px;
    color: var(--text-muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-progress-group {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.dashboard-progress-item {
    min-width: 0;
}

.dashboard-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.dashboard-progress-header span {
    color: var(--text-muted, #64748b);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-progress-header strong {
    color: var(--heading-color, #172033);
    font-size: 13px;
}

.dashboard-progress {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--progress-background, #e9eef5);
}

.dashboard-progress-bar {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    transition: width 0.4s ease;
}

.dashboard-progress-bar.is-success {
    background: #16a34a;
}

.dashboard-progress-bar.is-primary {
    background: #2563eb;
}

.dashboard-progress-bar.is-warning {
    background: #f59e0b;
}

.dashboard-inline-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
}

.dashboard-inline-notice.is-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
}

.dashboard-inline-notice span {
    flex-shrink: 0;
}

.dashboard-inline-notice p {
    margin: 0;
    color: var(--text-color, #334155);
    font-size: 13px;
    line-height: 1.55;
}


/* ==========================================================================
   Brze akcije
   ========================================================================== */

.dashboard-quick-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: var(--card-background, #ffffff);
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.dashboard-action:hover {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-action.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.dashboard-action-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    font-size: 20px;
}

.dashboard-action > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-action strong {
    color: var(--heading-color, #172033);
    font-size: 14px;
}

.dashboard-action small {
    margin-top: 3px;
    color: var(--text-muted, #64748b);
    font-size: 12px;
    line-height: 1.4;
}


/* ==========================================================================
   Tabela stanica
   ========================================================================== */

.dashboard-stations-table th {
    white-space: nowrap;
}

.dashboard-stations-table td {
    vertical-align: middle;
}

.dashboard-stations-table .station-name-cell {
    min-width: 220px;
}

.dashboard-stations-table .station-logo-placeholder {
    width: 42px;
    height: 42px;
}


/* ==========================================================================
   Status modula
   ========================================================================== */

.dashboard-module-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.dashboard-module-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.dashboard-module-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-module-item > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-module-item strong {
    color: var(--heading-color, #172033);
    font-size: 13px;
}

.dashboard-module-item span:not(.dashboard-module-badge) {
    margin-top: 3px;
    color: var(--text-muted, #64748b);
    font-size: 11px;
    line-height: 1.4;
}

.dashboard-module-badge {
    display: inline-flex;
    flex-shrink: 0;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-module-badge.is-ready {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.dashboard-module-badge.is-planned {
    background: rgba(245, 158, 11, 0.13);
    color: #b45309;
}


/* ==========================================================================
   Status oznake
   ========================================================================== */

.status-badge.status-online,
.status-badge.status-active {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}

.status-badge.status-offline,
.status-badge.status-inactive {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.status-badge.status-unknown {
    border-color: rgba(100, 116, 139, 0.18);
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}


/* ==========================================================================
   Tamna tema
   ========================================================================== */

body.dark-theme .dashboard-action,
[data-theme="dark"] .dashboard-action {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

body.dark-theme .dashboard-progress,
[data-theme="dark"] .dashboard-progress {
    background: rgba(148, 163, 184, 0.16);
}

body.dark-theme .dashboard-inline-notice,
[data-theme="dark"] .dashboard-inline-notice {
    color: #dbeafe;
}

body.dark-theme .dashboard-health-score strong,
[data-theme="dark"] .dashboard-health-score strong {
    color: #4ade80;
}

body.dark-theme .dashboard-module-badge.is-ready,
[data-theme="dark"] .dashboard-module-badge.is-ready {
    color: #4ade80;
}

body.dark-theme .dashboard-module-badge.is-planned,
[data-theme="dark"] .dashboard-module-badge.is-planned {
    color: #fbbf24;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1180px) {
    .dashboard-overview-grid,
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header-actions {
        width: 100%;
    }

    .dashboard-header-actions .button {
        flex: 1;
        justify-content: center;
    }
}


/* ==========================================================================
   Mobilni prikaz
   ========================================================================== */

@media (max-width: 700px) {
    .dashboard-header-actions {
        flex-direction: column;
    }

    .dashboard-header-actions .button {
        width: 100%;
    }

    .dashboard-health-card .panel-card-header {
        flex-direction: column;
    }

    .dashboard-health-score {
        width: 80px;
        height: 80px;
    }

    .dashboard-health-score strong {
        font-size: 21px;
    }

    .dashboard-sidebar-column {
        grid-template-columns: 1fr;
    }

    .dashboard-module-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-module-badge {
        align-self: flex-start;
    }

    .dashboard-action {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .dashboard-stat-card {
        min-height: auto;
    }

    .dashboard-progress-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
/* ==========================================================================
   Dashboard Server Health
   ========================================================================== */

.dashboard-server-health-card {
    margin-bottom: 0;
}

.dashboard-server-health-card .panel-card-header {
    align-items: flex-start;
}

.dashboard-server-status {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-server-status::before {
    width: 7px;
    height: 7px;
    margin-right: 7px;
    content: "";
    border-radius: 50%;
    background: currentColor;
}

.dashboard-server-info {
    display: grid;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.65);
}

.dashboard-server-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-server-info-row span {
    color: var(--text-muted, #64748b);
    font-size: 12px;
}

.dashboard-server-info-row strong {
    max-width: 65%;
    overflow-wrap: anywhere;
    color: var(--heading-color, #172033);
    font-size: 12px;
    text-align: right;
}

.dashboard-resource-list {
    display: grid;
    gap: 22px;
    margin-top: 24px;
}

.dashboard-resource-item {
    min-width: 0;
}

.dashboard-resource-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 9px;
}

.dashboard-resource-header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-resource-header span {
    color: var(--heading-color, #172033);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-resource-header small {
    margin-top: 3px;
    color: var(--text-muted, #64748b);
    font-size: 11px;
}

.dashboard-resource-header strong {
    flex-shrink: 0;
    color: var(--heading-color, #172033);
    font-size: 13px;
}

.dashboard-progress-bar.is-danger {
    background: #dc2626;
}

.dashboard-load-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dashboard-load-values span {
    padding: 9px 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 9px;
    background: rgba(248, 250, 252, 0.75);
    color: var(--heading-color, #172033);
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

body.dark-theme .dashboard-server-info,
body.dark-theme .dashboard-load-values span,
[data-theme="dark"] .dashboard-server-info,
[data-theme="dark"] .dashboard-load-values span {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.5);
}

body.dark-theme .dashboard-server-status,
[data-theme="dark"] .dashboard-server-status {
    color: #4ade80;
}

@media (max-width: 700px) {
    .dashboard-server-health-card .panel-card-header {
        flex-direction: column;
    }

    .dashboard-server-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .dashboard-server-info-row strong {
        max-width: 100%;
        text-align: left;
    }
}
/* ==========================================================================
   Premium Topbar
   ========================================================================== */

.admin-topbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    padding: 0 28px;
    gap: 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 250, 252, 0.96)
        );
    backdrop-filter: blur(14px);
}

.topbar-left,
.topbar-center {
    display: flex;
    align-items: center;
}

.topbar-left {
    min-width: 220px;
    gap: 14px;
}

.topbar-center {
    justify-content: center;
    gap: 12px;
    margin-left: auto;
}

.topbar-title {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.topbar-title strong {
    color: var(--heading-color, #172033);
    font-size: 17px;
    line-height: 1.2;
}

.topbar-title > span:last-child {
    margin-top: 3px;
    color: var(--text-muted, #64748b);
    font-size: 11px;
}

.topbar-eyebrow {
    margin-bottom: 3px;
    color: var(--primary-color, #2563eb);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* ==========================================================================
   Live sat i Weather widget
   ========================================================================== */

.topbar-clock,
.topbar-weather {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    padding: 8px 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.topbar-widget-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.09);
    font-size: 18px;
}

.topbar-widget-icon.is-weather {
    background: rgba(245, 158, 11, 0.12);
}

.topbar-clock > div,
.topbar-weather > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.topbar-clock strong,
.topbar-weather strong {
    color: var(--heading-color, #172033);
    font-size: 14px;
    line-height: 1.2;
}

.topbar-clock span:last-child,
.topbar-weather span:last-child {
    max-width: 190px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-muted, #64748b);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-weather {
    min-width: 190px;
}

.topbar-user {
    flex-shrink: 0;
}


/* ==========================================================================
   Premium Sidebar
   ========================================================================== */

.sidebar-link {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.sidebar-link::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(109, 40, 217, 0),
            rgba(124, 58, 237, 0)
        );
    transition:
        background 0.2s ease,
        opacity 0.2s ease;
}

.sidebar-link:not(.is-disabled):hover::before {
    background:
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.16),
            rgba(124, 58, 237, 0.09)
        );
}

.sidebar-link.is-active {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #4f46e5,
            #7c3aed
        );
    box-shadow:
        0 12px 30px rgba(99, 102, 241, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sidebar-link.is-active::after {
    position: absolute;
    top: 14%;
    right: -18px;
    width: 62px;
    height: 62px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(2px);
}

.sidebar-link-icon {
    display: inline-flex;
    width: 25px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.sidebar-link-label {
    min-width: 0;
    flex: 1;
}

.sidebar-active-indicator {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.sidebar-footer-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: rgba(203, 213, 225, 0.7);
    font-size: 10px;
}

.sidebar-footer-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 9px rgba(34, 197, 94, 0.72);
}


/* ==========================================================================
   Dashboard animacije
   ========================================================================== */

.dashboard-reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    transition:
        opacity 0.46s ease,
        transform 0.46s ease;
}

.dashboard-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dashboard-stat-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.24);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}


/* ==========================================================================
   Tamna tema
   ========================================================================== */

body.dark-theme .admin-topbar,
[data-theme="dark"] .admin-topbar {
    border-color: rgba(148, 163, 184, 0.15);
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.98),
            rgba(17, 24, 39, 0.96)
        );
}

body.dark-theme .topbar-clock,
body.dark-theme .topbar-weather,
[data-theme="dark"] .topbar-clock,
[data-theme="dark"] .topbar-weather {
    border-color: rgba(148, 163, 184, 0.17);
    background: rgba(30, 41, 59, 0.66);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1250px) {
    .topbar-weather span:last-child {
        max-width: 120px;
    }

    .topbar-clock span:last-child {
        display: none;
    }
}

@media (max-width: 1050px) {
    .topbar-center {
        display: none;
    }

    .topbar-left {
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .admin-topbar {
        min-height: 66px;
        padding: 0 16px;
    }

    .topbar-title .topbar-eyebrow,
    .topbar-title > span:last-child,
    .topbar-user .user-details {
        display: none;
    }

    .topbar-title strong {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-reveal,
    .dashboard-stat-card,
    .sidebar-link {
        transition: none !important;
    }
}
.station-logo-preview{

    margin-top:20px;

}

.station-logo-preview img{

    width:120px;

    height:120px;

    object-fit:contain;

    border-radius:12px;

    background:#fff;

    padding:10px;

    border:1px solid #ddd;

}
.station-logo-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.35);
}

.station-logo-preview-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.station-logo-preview img {
    width: 130px;
    height: 130px;
    display: block;
    object-fit: contain;
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.station-logo-preview small {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #94a3b8;
}

.station-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    color: #94a3b8;
}

.station-logo-placeholder span {
    font-size: 28px;
}

@media (max-width: 700px) {
    .station-logo-preview img {
        width: 110px;
        height: 110px;
    }
}