/* DostavljacWASM - 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;
}

/* ===== 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 (Dostave/Narudžbe) ===== */
.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 / LISTA DOSTAVA ===== */
.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);
}

/* ===== STATUS VOZACA (Online/Offline Toggle) ===== */
.online-offline-toggle {
    margin: 0 0.625rem;
}

.toggle-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: var(--mds-shadow-sm);
    font-family: var(--mds-font-sans);
}
.toggle-button.online {
    background-color: var(--mds-success);
    color: #fff;
}
.toggle-button.offline {
    background-color: var(--mds-text-muted);
    color: #fff;
}
.toggle-button.updating {
    opacity: 0.7;
    cursor: not-allowed;
}
.toggle-button:not(.updating):hover {
    transform: translateY(-2px);
    box-shadow: var(--mds-shadow);
}
.toggle-button:not(.updating):active {
    transform: translateY(0);
    box-shadow: var(--mds-shadow-sm);
}
.toggle-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.status-indicator.online {
    background-color: #ffffff;
    box-shadow: 0 0 5px #ffffff;
    animation: pulse-status 2s infinite;
}
.status-indicator.offline {
    background-color: #ffffff;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #ffffff; }
    50% { opacity: 0.7; box-shadow: 0 0 10px #ffffff; }
}

.status-text {
    font-size: 0.875rem;
}

.location-info {
    font-family: var(--mds-font-mono);
    font-size: 0.6875rem;
    text-align: center;
    opacity: 0.9;
}

.location-warning {
    text-align: center;
    font-size: 0.6875rem;
}

/* ===== DEBUG PANEL ===== */
.debug-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--mds-surface-muted);
    border-radius: var(--mds-radius-sm);
    border: 1px solid var(--mds-border);
    box-shadow: var(--mds-shadow-sm);
    font-family: var(--mds-font-sans);
}

.debug-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--mds-text-primary);
    border-bottom: 1px solid var(--mds-border);
    padding-bottom: 0.5rem;
}

.debug-section {
    margin-bottom: 1rem;
}

.debug-row {
    display: flex;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
}

.debug-label {
    flex: 0 0 120px;
    font-weight: 500;
    color: var(--mds-text-secondary);
}

.debug-value {
    flex: 1;
    color: var(--mds-text-primary);
    word-break: break-all;
}

.debug-value.status-online {
    color: var(--mds-success);
    font-weight: 500;
}
.debug-value.status-offline {
    color: var(--mds-text-muted);
    font-weight: 500;
}
.debug-value.status-unknown {
    color: var(--mds-warning);
    font-weight: 500;
}

.debug-value.permission-granted {
    color: var(--mds-success);
    font-weight: 500;
}
.debug-value.permission-denied {
    color: var(--mds-danger);
    font-weight: 500;
}
.debug-value.permission-default {
    color: var(--mds-warning);
    font-weight: 500;
}

.debug-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.debug-button {
    padding: 0.375rem 0.75rem;
    background-color: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    font-family: var(--mds-font-sans);
    color: var(--mds-text-primary);
    transition: all 0.2s ease;
}
.debug-button:hover {
    background-color: var(--mds-surface-hover);
    border-color: var(--mds-border-strong);
}
.debug-button:active {
    background-color: var(--mds-surface-muted);
    transform: translateY(1px);
}

.debug-button .button-icon {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

.debug-button.danger-button {
    background-color: var(--mds-danger-light);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--mds-danger);
}
.debug-button.danger-button:hover {
    background-color: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
}

.debug-button.special-button {
    background-color: var(--mds-info-light);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--mds-info);
}
.debug-button.special-button:hover {
    background-color: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
}

.debug-button.sync-button {
    background-color: var(--mds-surface-muted);
    border-color: var(--mds-border-strong);
    color: var(--mds-text-secondary);
}
.debug-button.sync-button:hover {
    background-color: var(--mds-surface-hover);
    border-color: var(--mds-border-strong);
}

.debug-info .error-message {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--mds-danger-light);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    color: var(--mds-danger);
    font-size: 0.8125rem;
}

.debug-info .notification-help {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--mds-warning-light);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-radius: 6px;
    color: #92400e;
    font-size: 0.8125rem;
}
.debug-info .notification-help p {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.debug-info .notification-help ol {
    margin: 0;
    padding-left: 1.25rem;
}
.debug-info .notification-help li {
    margin-bottom: 0.25rem;
}

/* ===== SNEAT TIMELINE COMPAT (za TimeLinePrikaz.razor komponentu) ===== */
.timeline {
    position: relative;
    height: auto;
    width: 100%;
    padding: 0;
    list-style: none;
    margin: 0;
}
.timeline .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.timeline .timeline-item {
    position: relative;
    padding-left: 3rem;
}
.timeline .timeline-item .timeline-event {
    position: relative;
    top: -1rem;
    width: 100%;
    min-height: 3rem;
    background: none;
    border-radius: var(--mds-radius-sm);
    padding: 0.75rem 0 0.5rem;
}
.timeline .timeline-item .timeline-event:before {
    display: none;
}
.timeline .timeline-item .timeline-indicator,
.timeline .timeline-item .timeline-indicator-advanced {
    position: absolute;
    left: -0.75rem;
    top: -0.2rem;
    z-index: 2;
    height: 1.5rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
}
.timeline .timeline-item .timeline-indicator i,
.timeline .timeline-item .timeline-indicator-advanced i {
    background-color: var(--mds-surface);
    color: var(--mds-accent);
}
.timeline .timeline-item .timeline-indicator-advanced {
    background-color: var(--mds-surface);
    top: -0.1rem;
}

/* Timeline indicator varijante */
.timeline .timeline-indicator-success i {
    color: var(--mds-success) !important;
}
.timeline .timeline-indicator-warning i {
    color: var(--mds-warning) !important;
}
.timeline .timeline-indicator-danger i {
    color: var(--mds-danger) !important;
}

/* Border-left-dashed za timeline stavke */
.border-left-dashed {
    border-left: 1px dashed var(--mds-border) !important;
}

/* Contact grid (iz TimeLinePrikaz) */
.contact-cube {
    width: 100%;
}
.contact-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.contact-flex-item {
    flex: 0 0 calc(50% - 4px);
}
.contact-flex-item .btn {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.contact-flex-item .btn:hover {
    transform: scale(1.05);
}
.btn-outline-viber {
    color: #665CAC;
    border-color: #665CAC;
}
.btn-outline-viber:hover {
    background-color: #665CAC;
    color: white;
}

/* ===== RESPONSIVE FIXES ===== */

/* Topbar: StatusVozaca kompaktnije na malom ekranu */
@media (max-width: 420px) {
    .online-offline-toggle {
        margin: 0 0.25rem;
    }
    .toggle-button {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    .status-indicator {
        width: 8px;
        height: 8px;
        margin-right: 0.25rem;
    }
    .status-text {
        font-size: 0.6875rem;
    }
}

/* Timeline contact dugmad: 2x2 grid na malim ekranima */
@media (max-width: 576px) {
    .timeline .timeline-item .timeline-event {
        padding: 0.5rem 0 0.25rem;
    }
    .contact-flex-item .btn {
        height: 36px;
        padding: 0;
        font-size: 0.8rem;
    }
}

/* ===== PONUDE TABS (Segmented) ===== */
.ponude-tabs {
    display: flex;
    background: var(--mds-surface-muted);
    border-radius: var(--mds-radius);
    padding: 0.25rem;
    margin-bottom: 0.75rem;
    gap: 0.25rem;
    list-style: none;
    padding-left: 0.25rem;
}
.ponude-tabs .nav-item {
    flex: 1;
}
.ponude-tab {
    width: 100%;
    flex: 1;
    border: none;
    background: none;
    padding: 0.625rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mds-text-muted);
    border-radius: calc(var(--mds-radius) - 2px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s;
    position: relative;
}
.ponude-tab.active {
    background: var(--mds-surface);
    color: #1b2559;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ponude-tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all 0.2s;
}
.ponude-tab.active .ponude-tab-icon {
    background: #1b2559;
    color: #fff;
}
.ponude-tab:not(.active) .ponude-tab-icon {
    background: var(--mds-surface-muted);
    color: var(--mds-text-muted);
}
.ponude-tab-badge {
    position: absolute;
    top: 0.25rem;
    right: calc(50% - 28px);
    font-size: 0.5625rem;
    background: var(--mds-danger);
    color: #fff;
    padding: 0.0625rem 0.3125rem;
    border-radius: 99px;
    font-weight: 800;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}
.ponude-tab.active .ponude-tab-badge {
    background: #1b2559;
}

/* ===== CITY GROUP ===== */
.city-group {
    margin-bottom: 0.5rem;
}
.city-group-card {
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: var(--mds-radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.city-group-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}
.city-group-header:hover {
    background: var(--mds-surface-hover);
}
.city-group-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--mds-text-primary);
}
.city-group-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.city-group-count {
    font-family: var(--mds-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(27,37,89,0.08);
    color: #1b2559;
    padding: 0.1875rem 0.5rem;
    border-radius: 6px;
}
.city-group-chevron {
    font-size: 0.75rem;
    color: var(--mds-text-muted);
    transition: transform 0.2s;
}
.city-group-header[aria-expanded="true"] .city-group-chevron {
    transform: rotate(180deg);
}
.city-group-body {
    border-top: 1px solid var(--mds-border);
}

/* ===== DELIVERY CARD ===== */
.delivery-card {
    padding: 1rem;
    margin: 0.5rem 0.75rem;
    background: var(--mds-surface);
    border: 1px solid var(--mds-border);
    border-radius: var(--mds-radius-sm);
    transition: background 0.15s;
    cursor: pointer;
}
.delivery-card:first-child {
    margin-top: 0.75rem;
}
.delivery-card:last-child {
    margin-bottom: 0.75rem;
}
.delivery-card:active {
    background: var(--mds-surface-hover);
}

/* Header: ikona tipa + datum + status */
.delivery-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}
.delivery-card-top-left {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.delivery-card-type {
    font-size: 0.875rem;
    color: var(--mds-text-muted);
}
.delivery-card-date {
    font-size: 0.6875rem;
    color: var(--mds-text-muted);
    font-family: var(--mds-font-mono);
}
.delivery-card-items {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mds-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--mds-surface-muted);
    padding: 0.125rem 0.4375rem;
    border-radius: 6px;
}
.delivery-card-items i {
    font-size: 0.5625rem;
}

/* Ruta: odakle -> kuda */
.delivery-route {
    margin-bottom: 0.5rem;
    padding-left: 0.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.delivery-route-stop {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}
.delivery-route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.1875rem;
    position: relative;
}
.delivery-route-dot.origin {
    background: var(--mds-accent);
}
.delivery-route-dot.origin::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 3.5px;
    width: 0;
    border-left: 2px dashed var(--mds-border);
    height: calc(100% + 44px);
    min-height: 50px;
}
.delivery-route-dot.dest {
    background: var(--mds-success);
}
.delivery-route-connector {
    display: none;
}
.delivery-route-text {
    flex: 1;
    min-width: 0;
}
.delivery-route-label {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mds-text-muted);
    line-height: 1.2;
}
.delivery-route-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mds-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.delivery-route-address {
    font-size: 0.75rem;
    color: var(--mds-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Napomena na kartici */
.delivery-card-note {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    background: var(--mds-warning-light);
    border-radius: 6px;
    padding: 0.375rem 0.5rem;
    margin-top: 0.375rem;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    color: #92400e;
    font-weight: 500;
    line-height: 1.35;
}
.delivery-card-note i {
    color: var(--mds-warning);
    flex-shrink: 0;
    margin-top: 0.0625rem;
    font-size: 0.625rem;
}

/* Footer: iznos + akcije */
.delivery-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mds-border);
}
.delivery-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
}
.delivery-card-amount {
    font-family: var(--mds-font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mds-danger);
}
.delivery-card-time {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--mds-warning);
}
.delivery-card-time i {
    margin-right: 0.1875rem;
}
.delivery-card-actions {
    display: flex;
    gap: 0.375rem;
}
.delivery-card-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--mds-border);
    background: var(--mds-surface);
    color: var(--mds-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.delivery-card-action.accept {
    background: var(--mds-success);
    border-color: var(--mds-success);
    color: #fff;
}
.delivery-card-action.reject {
    border-color: var(--mds-danger);
    color: var(--mds-danger);
}
.delivery-card-action.info {
    border-color: var(--mds-accent);
    color: var(--mds-accent);
}

/* ===== PONUDE EMPTY STATE ===== */
.ponude-empty {
    text-align: center;
    padding: 3rem 1.5rem;
}
.ponude-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--mds-surface-muted);
    color: var(--mds-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ===== 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;
}

/* Dark mode: Status Vozaca */
[data-bs-theme="dark"] .toggle-button.online {
    background-color: #059669;
}
[data-bs-theme="dark"] .toggle-button.offline {
    background-color: #475569;
}

/* Dark mode: Debug Panel */
[data-bs-theme="dark"] .debug-info {
    background-color: var(--mds-surface);
    border-color: var(--mds-border);
}
[data-bs-theme="dark"] .debug-header {
    color: var(--mds-text-primary);
    border-bottom-color: var(--mds-border);
}
[data-bs-theme="dark"] .debug-button {
    background-color: var(--mds-surface-muted);
    border-color: var(--mds-border);
    color: var(--mds-text-primary);
}
[data-bs-theme="dark"] .debug-button:hover {
    background-color: var(--mds-surface-hover);
}
[data-bs-theme="dark"] .debug-button.danger-button {
    background-color: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: #f87171;
}
[data-bs-theme="dark"] .debug-button.special-button {
    background-color: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.25);
    color: #60a5fa;
}
[data-bs-theme="dark"] .debug-button.sync-button {
    background-color: var(--mds-surface);
    border-color: var(--mds-border);
    color: var(--mds-text-secondary);
}
[data-bs-theme="dark"] .debug-info .error-message {
    background-color: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.25);
    color: #f87171;
}
[data-bs-theme="dark"] .debug-info .notification-help {
    background-color: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.25);
    color: #fbbf24;
}
[data-bs-theme="dark"] .debug-value.status-online {
    color: #34d399;
}
[data-bs-theme="dark"] .debug-value.status-offline {
    color: var(--mds-text-muted);
}
[data-bs-theme="dark"] .debug-value.permission-granted {
    color: #34d399;
}
[data-bs-theme="dark"] .debug-value.permission-denied {
    color: #f87171;
}

/* Dark mode: Timeline */
[data-bs-theme="dark"] .timeline .timeline-item .timeline-indicator i,
[data-bs-theme="dark"] .timeline .timeline-item .timeline-indicator-advanced i {
    background-color: var(--mds-surface);
}
[data-bs-theme="dark"] .timeline .timeline-item .timeline-indicator-advanced {
    background-color: var(--mds-surface);
}
[data-bs-theme="dark"] .border-left-dashed {
    border-left-color: var(--mds-border) !important;
}

/* Dark mode: Ponude Tabs */
[data-bs-theme="dark"] .ponude-tab.active {
    color: #818cf8;
}
[data-bs-theme="dark"] .ponude-tab.active .ponude-tab-icon {
    background: #4f46e5;
}
[data-bs-theme="dark"] .ponude-tab.active .ponude-tab-badge {
    background: #4f46e5;
}

/* Dark mode: City Group */
[data-bs-theme="dark"] .city-group-count {
    background: rgba(129,140,248,0.12);
    color: #818cf8;
}
[data-bs-theme="dark"] .city-group-card {
    box-shadow: none;
}

/* Dark mode: Delivery Card */
[data-bs-theme="dark"] .delivery-card {
    background: var(--mds-surface);
    border-color: var(--mds-border);
}
[data-bs-theme="dark"] .delivery-card-action.accept {
    background: var(--mds-success);
    border-color: var(--mds-success);
}
[data-bs-theme="dark"] .delivery-card-action.info {
    border-color: #818cf8;
    color: #818cf8;
}
[data-bs-theme="dark"] .delivery-card-note {
    background: rgba(217,119,6,0.12);
    color: #fbbf24;
}

/* Dark mode: Ponude Empty State */
[data-bs-theme="dark"] .ponude-empty-icon {
    background: rgba(255,255,255,0.06);
}
