:root {
    --dispatch-bg: #12151a;
    --dispatch-card: #1e2329;
    --dispatch-border: #2d333b;
    --dispatch-accent: #e52d27;
}

body.dispatch-body {
    background: var(--dispatch-bg);
    min-height: 100vh;
    font-size: 0.95rem;
}

.queue-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.queue-table tbody tr:hover {
    background: rgba(229, 45, 39, 0.08);
}

.priority-1 { border-left: 4px solid #dc3545 !important; }
.priority-2 { border-left: 4px solid #fd7e14; }
.priority-3 { border-left: 4px solid #6c757d; }

.status-caka { color: #ffc107; }
.status-aktivirano { color: #0dcaf0; }
.status-na_poti { color: #fd7e14; }
.status-na_kraju { color: #20c997; }
.status-zakljuceno { color: #198754; }

.card-dispatch {
    background: var(--dispatch-card);
    border: 1px solid var(--dispatch-border);
    border-radius: 0.5rem;
}

.member-chip {
    font-size: 0.8rem;
}

.badge.poveljstvo-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35em;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    line-height: 1;
    border-radius: 999px;
    background: var(--dispatch-accent);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(229, 45, 39, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.member-chip.dosegljiv { border-color: #198754; }
.member-chip.nedosegljiv { border-color: #dc3545; opacity: 0.7; }
.member-chip.na_poti { border-color: #0dcaf0; }
.member-chip.v_domi { border-color: #6c757d; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0d0f12 0%, #1a1d21 50%, #2a1515 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #198754;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.vi-card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.vi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(229, 45, 39, 0.12);
}

.dashboard-group-list {
    min-height: 4.5rem;
}

.dashboard-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dashboard-group-link {
    color: inherit;
    text-decoration: none;
    display: block;
    line-height: 1.35;
}

.dashboard-group-link:hover {
    color: #fff;
}

.dashboard-group-item {
    padding: 0.35rem 0.5rem;
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
}

#vi-alert {
    transition: opacity 0.4s ease;
}

#vi-alert.is-hiding {
    opacity: 0;
}

.alert-auto-dismiss {
    transition: opacity 0.4s ease;
}

.alert-auto-dismiss.is-hiding {
    opacity: 0;
}

@media (max-width: 576px) {
    .form-control-lg {
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }
}
