/* MagacionerWASM - 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 ===== */
.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;
}


/* Premješteno u mobile-design-system.css:
 * bg-label-* klase, vendor utility, accordion stilovi, alert override */
