/* EmpWasm - Stilovi stranica iz dizajn mockupa */

/* ===== HOME HEADER ===== */
.home-header {
    padding: 0.75rem 1.25rem;
}
.home-greeting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.home-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mds-text-primary);
    line-height: 1.3;
}

/* ===== HOME STATS BAR ===== */
.home-stats {
    display: flex;
    align-items: center;
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: var(--mds-radius);
    box-shadow: var(--mds-shadow-sm);
    overflow: hidden;
}
.home-stat {
    flex: 1;
    text-align: center;
    padding: 0.625rem 0.25rem;
    text-decoration: none;
    color: inherit;
}
.home-stat.has-alert .home-stat-value {
    color: var(--mds-danger);
}
.home-stat-value {
    display: block;
    font-family: var(--mds-font-mono);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mds-text-primary);
}
.home-stat-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--mds-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}
.home-stat-divider {
    width: 1px;
    height: 28px;
    background: var(--mds-border);
    flex-shrink: 0;
}

/* ===== SADRZAJ ===== */
.content-area {
    padding: 1.25rem 1.25rem 0;
    display: block;
}

/* ===== SEKCIJA HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}
.section-header:first-child {
    margin-top: 1rem;
}
.section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mds-text-muted);
}
.section-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1b2559;
    text-decoration: none;
}

/* ===== FILTER PILLS ===== */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
    white-space: nowrap;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--mds-border);
    background: var(--mds-surface);
    color: var(--mds-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-pill.active {
    background: #1b2559;
    color: #fff;
    border-color: #1b2559;
}

/* ===== TASK CARDS ===== */
.task-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    padding: 1rem 1.125rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--mds-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.task-card.priority-high { border-left-color: var(--mds-danger); }
.task-card.priority-medium { border-left-color: var(--mds-warning); }
.task-card.priority-low { border-left-color: var(--mds-success); }

.task-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mds-text-primary);
}
.task-id {
    font-family: var(--mds-font-mono);
    font-size: 0.75rem;
    color: var(--mds-text-muted);
}
.task-meta {
    font-size: 0.8125rem;
    color: var(--mds-text-secondary);
    margin: 0.5rem 0;
}
.task-meta i {
    width: 1rem;
    text-align: center;
}

.task-progress-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--mds-surface-muted);
    overflow: hidden;
    margin-top: 0.75rem;
}
.task-progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #1b2559;
    transition: width 0.3s ease;
}

.btn-task {
    min-height: 32px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.875rem;
    border-radius: 8px;
    border: 1.5px solid #1b2559;
    background: transparent;
    color: #1b2559;
    cursor: pointer;
    font-family: var(--mds-font-sans);
    transition: all 0.2s;
}
.btn-task:hover {
    background: #1b2559;
    color: #fff;
}

/* ===== STATUS BADGES ===== */
.badge-status {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-u-toku {
    background: rgba(37, 99, 235, 0.08);
    color: #1e40af;
}
.badge-ceka {
    background: rgba(217, 119, 6, 0.08);
    color: #92400e;
}
.badge-zakazano {
    background: rgba(5, 150, 105, 0.08);
    color: #065f46;
}

/* ===== PRIORITY BADGES ===== */
.priority-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.priority-badge.high { color: var(--mds-danger); }
.priority-badge.medium { color: var(--mds-warning); }
.priority-badge.low { color: var(--mds-success); }

/* ===== SCAN HISTORY ===== */
.scan-list-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.scan-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--mds-border);
}
.scan-item:last-child { border-bottom: none; }

.scan-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mds-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--mds-text-secondary);
    flex-shrink: 0;
}
.scan-item-info {
    flex: 1;
    min-width: 0;
}
.scan-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scan-item-sku {
    font-family: var(--mds-font-mono);
    font-size: 0.6875rem;
    color: var(--mds-text-muted);
    margin-top: 0.125rem;
}
.scan-item-time {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    flex-shrink: 0;
}

/* ===== PROFIL HERO ===== */
.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.125rem;
}
.profile-role {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.625rem;
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.profile-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}

/* ===== SMJENA KARTICA ===== */
.shift-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    padding: 1.125rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.shift-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mds-text-muted);
    margin-bottom: 0.75rem;
}
.shift-time {
    font-family: var(--mds-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.shift-checkin {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--mds-text-secondary);
    margin-bottom: 0.875rem;
}
.shift-checkin i {
    color: var(--mds-success);
    font-size: 0.875rem;
}
.shift-checkin strong {
    font-family: var(--mds-font-mono);
    font-weight: 600;
    color: var(--mds-text-primary);
}
.shift-progress-wrap {
    margin-bottom: 0.5rem;
}
.shift-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--mds-surface-muted);
    overflow: hidden;
}
.shift-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: #1b2559;
    transition: width 0.3s ease;
}
.shift-remaining {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    margin-top: 0.375rem;
}
.btn-checkout {
    margin-top: 0.875rem;
    width: 100%;
    height: 40px;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1.5px solid #1b2559;
    background: transparent;
    color: #1b2559;
    cursor: pointer;
    font-family: var(--mds-font-sans);
    transition: all 0.2s;
}
.btn-checkout:hover {
    background: #1b2559;
    color: #fff;
}

/* ===== PERFORMANCE STATS (horizontalni scroll) ===== */
.perf-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.perf-scroll::-webkit-scrollbar { display: none; }

.perf-card {
    min-width: 130px;
    flex-shrink: 0;
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 14px;
    padding: 1rem 0.875rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.perf-card-value {
    font-family: var(--mds-font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: #1b2559;
    line-height: 1;
    margin-bottom: 0.375rem;
}
.perf-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mds-text-muted);
    line-height: 1.3;
}

/* ===== MENU LIST ===== */
.menu-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 1rem;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    border-bottom: 1px solid var(--mds-border);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.menu-item:last-child {
    border-bottom: none;
}
.menu-item:active {
    background: var(--mds-surface-hover);
}
.menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(27, 37, 89, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
}
.menu-item-label {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    min-width: 0;
}
.menu-item-chevron {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    flex-shrink: 0;
}
.menu-item-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    background: #1b2559;
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}
.menu-item.danger .menu-item-label {
    color: var(--mds-danger);
}
.menu-item.danger .menu-item-icon {
    background: var(--mds-danger-light);
    color: var(--mds-danger);
}
.menu-item.danger:active {
    background: rgba(220, 38, 38, 0.04);
}

/* ===== TOGGLE SWITCH ===== */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mds-border-strong);
    border-radius: 12px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
    background: #1b2559;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ===== APP VERSION ===== */
.app-version {
    text-align: center;
    font-size: 0.6875rem;
    color: var(--mds-text-muted);
    padding: 0.75rem 0 1.5rem;
}

/* ===== BOTTOM NAV SA CENTRALNIM DUGMETOM ===== */
.app-bottomnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 68px;
    background: var(--mds-surface);
    border-top: 1px solid var(--mds-border);
    display: flex;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.app-bottomnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1875rem;
    text-decoration: none;
    color: var(--mds-text-muted);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.app-bottomnav-item i {
    font-size: 1.125rem;
    line-height: 1;
}
.app-bottomnav-item.active {
    color: #1b2559;
    font-weight: 700;
}
.app-bottomnav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-bottomnav-fab {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #1b2559;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(27, 37, 89, 0.3);
    margin-top: -20px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.app-bottomnav-fab:active {
    transform: scale(0.95);
}

/* ===== PAGE CONTENT PADDING ===== */
.page-scroll {
    padding-top: 48px;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0) + 1rem);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ===== APP TOP BAR ===== */
.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem 0 0.5rem;
    background: var(--mds-surface);
    border-bottom: 1px solid var(--mds-border);
}
.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.app-topbar-brand {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1b2559;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.app-topbar-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #1b2559;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.app-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}
.app-topbar-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--mds-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.app-topbar-btn:active {
    background: rgba(0,0,0,0.06);
}
.app-topbar-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid var(--mds-surface);
}

/* ===== CONNECTION INDICATOR ===== */
.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.3s;
}
.connection-dot.connected {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
}
.connection-dot.reconnecting {
    background: #f59e0b;
    animation: pulse-dot 1.5s infinite;
}
.connection-dot.disconnected {
    background: #ef4444;
    animation: pulse-dot 1s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

/* ===== NOTIFICATION SHEET ===== */
.notif-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.notif-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.notif-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1061;
    max-height: 70vh;
    background: var(--mds-surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
}
.notif-sheet.open {
    transform: translateY(0);
}
.notif-sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--mds-border-strong, #cbd5e1);
    margin: 0.5rem auto;
    flex-shrink: 0;
}
.notif-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--mds-border);
    flex-shrink: 0;
}
.notif-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mds-text-primary);
}
.notif-sheet-action {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mds-accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.notif-sheet-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.notif-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--mds-border);
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:active { background: var(--mds-surface-hover, rgba(0,0,0,0.03)); }
.notif-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(79,70,229,0.08);
    color: var(--mds-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    margin-bottom: 0.125rem;
}
.notif-item-msg {
    font-size: 0.8125rem;
    color: var(--mds-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-item-time {
    font-size: 0.6875rem;
    color: var(--mds-text-muted);
    margin-top: 0.25rem;
}
.notif-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mds-text-muted);
}
.notif-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}
.notif-empty-text {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mds-text-secondary);
}
.notif-empty-sub {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* ===== SIDE DRAWER (hamburger meni) ===== */
.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.app-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}
.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1061;
    width: 280px;
    max-width: 85vw;
    background: var(--mds-surface);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.app-drawer.open {
    transform: translateX(0);
}
.app-drawer-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--mds-border);
}
.app-drawer-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1b2559;
    letter-spacing: -0.02em;
}
.app-drawer-nav {
    padding: 0.5rem 0;
    flex: 1;
}
.app-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--mds-text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.app-drawer-item:active {
    background: var(--mds-surface-hover, rgba(0,0,0,0.03));
}
.app-drawer-item.active {
    color: #1b2559;
    background: rgba(27, 37, 89, 0.06);
}
.app-drawer-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(27, 37, 89, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    flex-shrink: 0;
    color: var(--mds-text-secondary);
}
.app-drawer-item-icon.blue { background: rgba(37,99,235,0.08); color: #2563eb; }
.app-drawer-item-icon.indigo { background: rgba(79,70,229,0.08); color: #4f46e5; }
.app-drawer-item-icon.emerald { background: rgba(5,150,105,0.08); color: #059669; }
.app-drawer-item-icon.amber { background: rgba(217,119,6,0.08); color: #d97706; }
.app-drawer-divider {
    height: 1px;
    background: var(--mds-border);
    margin: 0.5rem 1.25rem;
}

/* Dark mode: Side Drawer */
[data-bs-theme="dark"] .app-drawer {
    background: var(--mds-surface);
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .app-drawer-title {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .app-drawer-item.active {
    color: #818cf8;
    background: rgba(129, 140, 248, 0.08);
}
[data-bs-theme="dark"] .app-drawer-item-icon {
    background: rgba(129, 140, 248, 0.1);
}
[data-bs-theme="dark"] .app-drawer-item-icon.blue { background: rgba(96,165,250,0.12); color: #60a5fa; }
[data-bs-theme="dark"] .app-drawer-item-icon.indigo { background: rgba(129,140,248,0.12); color: #818cf8; }
[data-bs-theme="dark"] .app-drawer-item-icon.emerald { background: rgba(52,211,153,0.12); color: #34d399; }
[data-bs-theme="dark"] .app-drawer-item-icon.amber { background: rgba(251,191,36,0.12); color: #fbbf24; }

/* ===== HOME QUICK ACTIONS ===== */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem 0;
}
.action-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    padding: 1.125rem 1rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.action-card:active { transform: scale(0.97); }
.action-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}
.action-card-icon.blue { background: rgba(37,99,235,0.08); color: #2563eb; }
.action-card-icon.indigo { background: rgba(79,70,229,0.08); color: #4f46e5; }
.action-card-icon.emerald { background: rgba(5,150,105,0.08); color: #059669; }
.action-card-icon.amber { background: rgba(217,119,6,0.08); color: #d97706; }
.action-card-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mds-text-primary);
}
.action-card-sub {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    margin-top: -0.375rem;
}

/* ===== HOME ATTENTION SECTION ===== */
.attention-section { padding: 0.75rem 1.25rem 0; }
.attention-header {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mds-text-muted);
    margin-bottom: 0.75rem;
}
.attention-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    -webkit-tap-highlight-color: transparent;
}
.attention-card:active { background: var(--mds-surface-hover, rgba(0,0,0,0.02)); }
.attention-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.attention-card-icon.warning { background: rgba(217,119,6,0.08); color: #d97706; }
.attention-card-icon.info { background: rgba(37,99,235,0.08); color: #2563eb; }
.attention-card-icon.danger { background: rgba(220,38,38,0.08); color: #dc2626; }
.attention-card-body { flex: 1; min-width: 0; }
.attention-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mds-text-primary);
}
.attention-card-desc {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
}
.attention-card-count {
    font-family: var(--mds-font-mono);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    flex-shrink: 0;
}

/* ===== IMPROVED EMPTY STATE ===== */
.app-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}
.app-empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--mds-surface-muted, rgba(0,0,0,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--mds-text-muted);
    margin: 0 auto 1rem;
    opacity: 0.6;
}
.app-empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    margin-bottom: 0.25rem;
}
.app-empty-state-desc {
    font-size: 0.875rem;
    color: var(--mds-text-muted);
}

/* ===== PROFILE PAGE ===== */
.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--mds-border);
}
.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--mds-accent);
    flex-shrink: 0;
}
.profile-avatar-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #1b2559);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
.profile-name-section { flex: 1; min-width: 0; }
.profile-name-lg {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    margin-bottom: 0.125rem;
}
.profile-role-text {
    font-size: 0.8125rem;
    color: var(--mds-text-secondary);
}

/* ===== DARK MODE ===== */
[data-bs-theme="dark"] .hero {
    background: #0c1233;
}
[data-bs-theme="dark"] .hero::after {
    background: #0c1233;
}
[data-bs-theme="dark"] .hero-notif-dot {
    border-color: #0c1233;
}
[data-bs-theme="dark"] .profile-avatar {
    background: rgba(255,255,255,0.1);
}
[data-bs-theme="dark"] .task-card,
[data-bs-theme="dark"] .scan-list-card {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    box-shadow: none;
}
[data-bs-theme="dark"] .shift-card,
[data-bs-theme="dark"] .perf-card,
[data-bs-theme="dark"] .menu-card {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    box-shadow: none;
}
[data-bs-theme="dark"] .filter-pill.active {
    background: #4f46e5;
    border-color: #4f46e5;
}
[data-bs-theme="dark"] .task-progress-bar-fill {
    background: #4f46e5;
}
[data-bs-theme="dark"] .btn-task {
    border-color: #818cf8;
    color: #818cf8;
}
[data-bs-theme="dark"] .btn-task:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
[data-bs-theme="dark"] .section-link {
    color: #818cf8;
}
[data-bs-theme="dark"] .badge-u-toku {
    background: rgba(129, 140, 248, 0.12);
    color: #818cf8;
}
[data-bs-theme="dark"] .shift-progress-fill {
    background: #4f46e5;
}
[data-bs-theme="dark"] .btn-checkout {
    border-color: #818cf8;
    color: #818cf8;
}
[data-bs-theme="dark"] .btn-checkout:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
[data-bs-theme="dark"] .perf-card-value {
    color: #818cf8;
}
[data-bs-theme="dark"] .menu-item-icon {
    background: rgba(129, 140, 248, 0.1);
}
[data-bs-theme="dark"] .menu-item-badge {
    background: #4f46e5;
}
[data-bs-theme="dark"] .toggle-switch input:checked + .toggle-slider {
    background: #4f46e5;
}
[data-bs-theme="dark"] .app-bottomnav {
    background: var(--mds-surface);
    border-top-color: var(--mds-border);
}
[data-bs-theme="dark"] .app-bottomnav-item.active {
    color: #818cf8;
}
[data-bs-theme="dark"] .app-bottomnav-fab {
    background: #4f46e5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

/* Dark mode: Top Bar */
[data-bs-theme="dark"] .app-topbar {
    background: var(--mds-surface);
    border-bottom-color: var(--mds-border);
}
[data-bs-theme="dark"] .app-topbar-brand {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .app-topbar-brand-icon {
    background: #4f46e5;
}
[data-bs-theme="dark"] .app-topbar-btn:active {
    background: rgba(255,255,255,0.08);
}
[data-bs-theme="dark"] .app-topbar-badge {
    border-color: var(--mds-surface);
}

/* Dark mode: Notification Sheet */
[data-bs-theme="dark"] .notif-sheet {
    background: var(--mds-surface);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .notif-item-icon {
    background: rgba(129,140,248,0.12);
    color: #818cf8;
}

/* Dark mode: Quick Actions */
[data-bs-theme="dark"] .action-card {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    box-shadow: none;
}
[data-bs-theme="dark"] .action-card-icon.blue { background: rgba(96,165,250,0.12); color: #60a5fa; }
[data-bs-theme="dark"] .action-card-icon.indigo { background: rgba(129,140,248,0.12); color: #818cf8; }
[data-bs-theme="dark"] .action-card-icon.emerald { background: rgba(52,211,153,0.12); color: #34d399; }
[data-bs-theme="dark"] .action-card-icon.amber { background: rgba(251,191,36,0.12); color: #fbbf24; }

/* Dark mode: Home Stats */
[data-bs-theme="dark"] .home-stats {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    box-shadow: none;
}
[data-bs-theme="dark"] .home-stat-divider {
    background: var(--mds-border);
}

/* Dark mode: Attention Cards */
[data-bs-theme="dark"] .attention-card {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    box-shadow: none;
}

/* Dark mode: Empty State */
[data-bs-theme="dark"] .app-empty-state-icon {
    background: rgba(255,255,255,0.06);
}

/* Dark mode: Profile */
[data-bs-theme="dark"] .profile-avatar-lg {
    border-color: #818cf8;
}

/* ===== STAR RATING DISPLAY ===== */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}
.star-rating i {
    font-size: 0.875rem;
}
.star-rating .fa-star { color: #f59e0b; }
.star-rating .fa-light.fa-star { color: var(--mds-border-strong, #cbd5e1); }

/* ===== RANK LIST ===== */
.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    /*border-bottom: 1px solid var(--mds-border);*/
}
.rank-item:last-child { border-bottom: none; }
.rank-position {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-position.own {
    background: rgba(5,150,105,0.08);
    color: #059669;
}
.rank-position.other {
    background: rgba(79,70,229,0.08);
    color: #4f46e5;
}
.rank-info { flex: 1; min-width: 0; }
.rank-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-sub {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
}
.rank-value {
    font-family: var(--mds-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}
.rank-separator {
    border-bottom: 2px solid var(--mds-danger);
    padding: 0.25rem 0;
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    list-style: none;
}

/* Dark mode: Rank List */
[data-bs-theme="dark"] .rank-position.other {
    background: rgba(129,140,248,0.12);
    color: #818cf8;
}
[data-bs-theme="dark"] .rank-position.own {
    background: rgba(52,211,153,0.12);
    color: #34d399;
}

/* Premješteno u mobile-design-system.css:
 * bg-label-* klase, vendor utility, accordion stilovi, alert override */

/* ===== ODSUSTVA / LEAVE MODULE ===== */

/* Summary Card */
.summary-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.5rem 1.25rem 1.25rem;
    margin: 1rem 1.25rem 0;
    text-align: center;
}
.summary-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.summary-remaining {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--mds-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.summary-total {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mds-text-muted);
    margin-top: 0.125rem;
}
.summary-breakdown {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mds-border);
}
.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
}
.breakdown-dot-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.breakdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.breakdown-dot.dot-godisnji { background: var(--mds-danger); }
.breakdown-dot.dot-bolovanje { background: var(--mds-warning); }
.breakdown-dot.dot-slobodan { background: var(--mds-info); }
.breakdown-dot.dot-izostanak { background: var(--mds-text-muted); }
.breakdown-value {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--mds-text-primary);
    line-height: 1;
}
.breakdown-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mds-text-muted);
}

/* Year Selector */
.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.year-selector-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid var(--mds-border);
    background: var(--mds-surface);
    color: var(--mds-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}
.year-selector-btn:hover {
    border-color: var(--mds-border-strong, var(--mds-border));
    color: var(--mds-text-primary);
}
.year-selector-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    min-width: 48px;
    text-align: center;
}

/* Leave Cards */
.leave-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 0.875rem 1rem 0.875rem 0;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    transition: opacity 0.25s, transform 0.1s;
    overflow: hidden;
}
.leave-card:active {
    transform: scale(0.98);
}
.leave-border {
    width: 4px;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
}
.leave-border.border-godisnji { background: var(--mds-danger); }
.leave-border.border-bolovanje { background: var(--mds-warning); }
.leave-border.border-slobodan { background: var(--mds-info); }
.leave-border.border-izostanak { background: var(--mds-text-muted); }
.leave-body {
    flex: 1;
    min-width: 0;
    padding-left: 0.875rem;
}
.leave-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.leave-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    min-width: 0;
}
.leave-type-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.leave-type-icon.icon-godisnji {
    background: rgba(220,38,38,0.08);
    color: var(--mds-danger);
}
.leave-type-icon.icon-bolovanje {
    background: rgba(217,119,6,0.08);
    color: var(--mds-warning);
}
.leave-type-icon.icon-slobodan {
    background: rgba(37,99,235,0.08);
    color: var(--mds-info);
}
.leave-type-icon.icon-izostanak {
    background: rgba(108,117,125,0.08);
    color: var(--mds-text-muted);
}
.leave-status {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
}
.leave-status.status-odobren {
    background: rgba(5,150,105,0.08);
    color: #065f46;
}
.leave-status.status-ceka {
    background: rgba(217,119,6,0.08);
    color: #92400e;
}
.leave-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}
.leave-dates {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--mds-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.leave-dates i {
    font-size: 0.625rem;
    color: var(--mds-text-muted);
}
.leave-duration {
    font-family: var(--mds-font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    white-space: nowrap;
}
.leave-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.leave-paid {
    font-size: 0.6875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.leave-paid.paid {
    color: var(--mds-success);
}
.leave-paid.unpaid {
    color: var(--mds-text-muted);
}

/* Bottom Sheet Form */
.sheet-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--mds-border-strong, var(--mds-border));
    margin: 0 auto 0.5rem;
}
.form-label-mds {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mds-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}
.form-control-mds {
    border: 1px solid var(--mds-border);
    border-radius: 12px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: var(--mds-font-sans);
    color: var(--mds-text-primary);
    background: var(--mds-surface);
    width: 100%;
    transition: border-color 0.2s;
}
.form-control-mds:focus {
    outline: none;
    border-color: #1b2559;
    box-shadow: 0 0 0 3px rgba(27,37,89,0.08);
}
.form-control-mds::placeholder {
    color: var(--mds-text-muted);
}
.type-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.type-pill {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--mds-border);
    background: var(--mds-surface);
    color: var(--mds-text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.type-pill.active {
    background: #1b2559;
    color: #fff;
    border-color: #1b2559;
}
.type-pill:hover:not(.active) {
    border-color: var(--mds-border-strong, var(--mds-border));
}
.btn-mds-primary {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: none;
    background: #1b2559;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: var(--mds-font-sans);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-mds-primary:hover {
    background: #141d47;
}
.btn-mds-primary:active {
    transform: scale(0.98);
}
.btn-mds-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.btn-mds-secondary {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--mds-border);
    background: var(--mds-surface);
    color: var(--mds-text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--mds-font-sans);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-mds-secondary:hover {
    border-color: var(--mds-border-strong, var(--mds-border));
    color: var(--mds-text-primary);
}

/* Donut animation */
.donut-progress {
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Offcanvas bottom sheet style */
.offcanvas-bottom.leave-sheet {
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    max-height: 90vh;
    height: auto !important;
}
.offcanvas-bottom.leave-sheet .offcanvas-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Section label */
.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mds-text-muted);
    margin-bottom: 0.75rem;
}

/* ===== CALENDAR GRID ===== */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-header {
    text-align: center;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mds-text-muted);
    padding: 0.375rem 0;
}
.cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative;
    gap: 2px;
}
.cal-cell.cal-empty {
    background: none;
}
.cal-day {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mds-text-primary);
    line-height: 1;
}
.cal-cell.cal-weekend .cal-day {
    color: var(--mds-text-muted);
}
.cal-cell.cal-today {
    background: rgba(27, 37, 89, 0.06);
}
.cal-cell.cal-today .cal-day {
    color: #1b2559;
    font-weight: 800;
}
.cal-cell.cal-has-leave {
    background: var(--mds-surface);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cal-dots {
    display: flex;
    gap: 2px;
    justify-content: center;
}
.cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.cal-cell.cal-selected {
    background: #1b2559 !important;
}
.cal-cell.cal-selected .cal-day {
    color: #fff !important;
    font-weight: 800;
}
.cal-dot.dot-godisnji { background: var(--mds-danger); }
.cal-dot.dot-bolovanje { background: var(--mds-warning); }
.cal-dot.dot-slobodan { background: var(--mds-info); }
.cal-dot.dot-izostanak { background: var(--mds-text-muted); }
.cal-dot.dot-pending {
    opacity: 0.5;
    box-shadow: 0 0 0 1px currentColor;
}

/* ===== DARK MODE OVERRIDES FOR LEAVE MODULE ===== */
[data-bs-theme="dark"] .summary-card {
    box-shadow: none;
}
[data-bs-theme="dark"] .donut-progress {
    stroke: #4f46e5;
}
[data-bs-theme="dark"] .leave-card {
    box-shadow: none;
}
[data-bs-theme="dark"] .leave-status.status-odobren {
    background: rgba(5,150,105,0.12);
    color: #34d399;
}
[data-bs-theme="dark"] .leave-status.status-ceka {
    background: rgba(217,119,6,0.12);
    color: #fbbf24;
}
[data-bs-theme="dark"] .leave-type-icon.icon-godisnji {
    background: rgba(220,38,38,0.12);
}
[data-bs-theme="dark"] .leave-type-icon.icon-bolovanje {
    background: rgba(217,119,6,0.12);
}
[data-bs-theme="dark"] .leave-type-icon.icon-slobodan {
    background: rgba(37,99,235,0.12);
}
[data-bs-theme="dark"] .leave-type-icon.icon-izostanak {
    background: rgba(108,117,125,0.12);
}
[data-bs-theme="dark"] .leave-paid.paid {
    color: #34d399;
}
[data-bs-theme="dark"] .type-pill.active {
    background: #4f46e5;
    border-color: #4f46e5;
}
[data-bs-theme="dark"] .btn-mds-primary {
    background: #4f46e5;
}
[data-bs-theme="dark"] .btn-mds-primary:hover {
    background: #4338ca;
}
[data-bs-theme="dark"] .form-control-mds {
    background: var(--mds-surface);
    border-color: var(--mds-border);
    color: var(--mds-text-primary);
}
[data-bs-theme="dark"] .form-control-mds:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
[data-bs-theme="dark"] .year-selector-btn {
    background: var(--mds-surface);
    border-color: var(--mds-border);
}
[data-bs-theme="dark"] .cal-cell.cal-today {
    background: rgba(79, 70, 229, 0.1);
}
[data-bs-theme="dark"] .cal-cell.cal-today .cal-day {
    color: #818cf8;
}
[data-bs-theme="dark"] .cal-cell.cal-selected {
    background: #4f46e5 !important;
}
[data-bs-theme="dark"] .cal-cell.cal-has-leave {
    box-shadow: none;
}
