/* ==========================================================================
   GearDesk Mobile CSS - Officer Portal
   Touch-optimized, mobile-first design
   ========================================================================== */

:root {
    /* Primary Colors */
    --color-primary: #fbbf24;
    --color-primary-hover: #f59e0b;
    --color-primary-light: rgba(251, 191, 36, 0.1);

    /* Brand Colors */
    --color-brand-dark: #1a3a52;
    --color-brand-darker: #0f172a;

    /* Background Colors */
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #f1f5f9;

    /* Text Colors */
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-heading: #0f172a;

    /* Border Colors */
    --color-border: #e2e8f0;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #3b82f6;

    /* Mobile Specific */
    --nav-height: 64px;
    --bottom-nav-height: 70px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;

    /* Font */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode - System preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg-primary: #0f172a;
        --color-bg-secondary: #1e293b;
        --color-bg-tertiary: #334155;
        --color-text-primary: #e2e8f0;
        --color-text-secondary: #94a3b8;
        --color-text-heading: #ffffff;
        --color-border: #334155;
        --color-brand-dark: #0f172a;
    }
}

/* Dark Mode - Manual override */
:root[data-theme="dark"] {
    --color-bg-primary: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-bg-tertiary: #334155;
    --color-text-primary: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --color-text-heading: #ffffff;
    --color-border: #334155;
    --color-brand-dark: #0f172a;
}

/* Theme toggle icons - Default: show moon (for light mode) */
.theme-icon-light {
    display: none;
}
.theme-icon-dark {
    display: block;
}

/* Show sun icon in dark mode (system preference) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-light {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-icon-dark {
        display: none;
    }
}

/* Manual dark mode - show sun */
:root[data-theme="dark"] .theme-icon-light {
    display: block;
}
:root[data-theme="dark"] .theme-icon-dark {
    display: none;
}

/* Manual light mode - show moon */
:root[data-theme="light"] .theme-icon-light {
    display: none;
}
:root[data-theme="light"] .theme-icon-dark {
    display: block;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Disable pull-to-refresh */
    overscroll-behavior-y: contain;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    /* Disable pull-to-refresh and bounce effects */
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

/* Standalone PWA Mode Styles - handled by top-nav safe area padding */

body.no-scroll {
    overflow: hidden;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + var(--safe-area-top));
    background: var(--color-brand-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--safe-area-top) var(--spacing-lg) 0 var(--spacing-lg);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.top-nav-logo img {
    height: 32px;
    width: auto;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    position: relative;
}

.nav-icon-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.nav-icon-btn svg {
    width: 22px;
    height: 22px;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--color-error);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Bell icon with notifications - make it glow and animate */
.nav-icon-btn.has-notifications {
    background: rgba(251, 191, 36, 0.3);
    animation: bell-ring 3s ease-in-out infinite;
}

.nav-icon-btn.has-notifications svg {
    color: var(--color-primary);
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes bell-ring {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    92% {
        transform: rotate(10deg);
    }
    94% {
        transform: rotate(-10deg);
    }
    96% {
        transform: rotate(8deg);
    }
    98% {
        transform: rotate(-8deg);
    }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.main-content {
    padding-top: calc(var(--nav-height) + var(--safe-area-top));
    min-height: 100vh;
}

.page-container {
    padding: var(--spacing-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Headers */
.page-header {
    margin-bottom: var(--spacing-xl);
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-xs);
}

.page-subtitle {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.card-action {
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.kpi-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    display: block;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-heading);
    line-height: 1.2;
}

.kpi-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

.kpi-card.highlight {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
}

.kpi-card.highlight .kpi-value,
.kpi-card.highlight .kpi-label {
    color: white;
}

.kpi-card.warning {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
    color: white;
}

.kpi-card.warning .kpi-value,
.kpi-card.warning .kpi-label {
    color: white;
}

/* ==========================================================================
   Action Tiles (Quick Actions)
   ========================================================================== */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.action-tile {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    text-decoration: none;
    color: var(--color-text-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.action-tile:active {
    transform: scale(0.97);
}

.action-tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-tile-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.action-tile-icon.blue { background: var(--color-info); }
.action-tile-icon.green { background: var(--color-success); }
.action-tile-icon.amber { background: var(--color-warning); }
.action-tile-icon.red { background: var(--color-error); }
.action-tile-icon.purple { background: #8b5cf6; }

.action-tile-label {
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================================
   Lists
   ========================================================================== */

.list {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.list-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-heading);
}

.list-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:active {
    background: var(--color-bg-tertiary);
}

.list-item.clickable {
    cursor: pointer;
}

.list-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.list-item-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-text-secondary);
}

/* Item Image in List */
.list-item-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    background: var(--color-bg-tertiary);
}

.list-item-image.lg {
    width: 56px;
    height: 56px;
}

/* Item Detail Image */
.item-detail-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: var(--color-bg-tertiary);
    display: block;
    margin: 0 auto var(--spacing-lg);
}

/* Item Image Placeholder (when no image) */
.item-image-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.item-image-placeholder svg {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
}

.item-image-placeholder.lg {
    width: 56px;
    height: 56px;
}

.item-image-placeholder.lg svg {
    width: 28px;
    height: 28px;
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
}

.list-item-meta {
    text-align: right;
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.list-item-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.list-item-arrow {
    color: var(--color-text-muted);
    margin-left: var(--spacing-sm);
}

.list-item-arrow svg {
    width: 20px;
    height: 20px;
}

/* Unread List Items */
.list-item-unread {
    background: rgba(59, 130, 246, 0.05);
    position: relative;
}

.list-item-unread:active {
    background: rgba(59, 130, 246, 0.1);
}

.unread-dot {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-info);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Dark mode adjustments for unread items */
@media (prefers-color-scheme: dark) {
    .list-item-unread {
        background: rgba(59, 130, 246, 0.1);
    }

    .list-item-unread:active {
        background: rgba(59, 130, 246, 0.15);
    }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-staged {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    touch-action: manipulation;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-brand-dark);
}

.btn-primary:active {
    background: var(--color-primary-hover);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-secondary:active {
    background: var(--color-border);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 17px;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}

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

.form-hint {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-xs);
}

.form-error {
    font-size: 13px;
    color: var(--color-error);
    margin-top: var(--spacing-xs);
}

/* Search Input */
.search-input-wrapper {
    position: relative;
}

.search-input {
    padding-left: 44px;
}

.search-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-input-icon svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Bottom Navigation
   ========================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
    padding-bottom: var(--safe-area-bottom);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: stretch;
    z-index: 100;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    padding: var(--spacing-sm) 0;
}

.bottom-nav-item.active {
    color: var(--color-primary);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* ==========================================================================
   Alerts / Notifications
   ========================================================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.alert-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.alert-text {
    font-size: 14px;
}

/* Pickup Alert Banner */
.pickup-banner {
    background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
    color: white;
    padding: var(--spacing-lg);
    margin: 0 calc(-1 * var(--spacing-lg)) var(--spacing-xl);
    text-align: center;
}

.pickup-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.pickup-banner-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.pickup-banner .btn {
    background: white;
    color: #059669;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-text-muted);
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: var(--spacing-sm);
}

.empty-state-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   Modal / Bottom Sheet
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + var(--safe-area-bottom));
    z-index: 201;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    overflow-y: auto;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 0 auto var(--spacing-lg);
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
}

.bottom-sheet-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bottom-sheet-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   Quantity Selector
   ========================================================================== */

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-btn:active {
    background: var(--color-bg-tertiary);
}

.quantity-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-primary);
}

.quantity-value {
    font-size: 18px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* ==========================================================================
   Order Status Steps
   ========================================================================== */

.status-steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-xl);
}

.status-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.status-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--color-border);
}

.status-step:last-child::after {
    display: none;
}

.status-step.completed::after {
    background: var(--color-success);
}

.status-step-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border);
    margin: 0 auto var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.status-step.completed .status-step-icon {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.status-step.active .status-step-icon {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.status-step-icon svg {
    width: 16px;
    height: 16px;
}

.status-step-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.status-step.completed .status-step-label,
.status-step.active .status-step-label {
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-xl) + var(--safe-area-top));
    padding-bottom: calc(var(--spacing-xl) + var(--safe-area-bottom));
    background: var(--color-brand-dark);
}

.login-logo {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-logo img {
    height: 80px;
    width: auto;
}

.login-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.login-form {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.login-form .form-input {
    background: var(--color-bg-tertiary);
}

/* ==========================================================================
   Pull to Refresh indicator
   ========================================================================== */

.pull-refresh-indicator {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.font-bold { font-weight: 600; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.hidden { display: none !important; }
