:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: #334155;
    --glass: rgba(30, 41, 59, 0.7);
    --radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}



/* MOBILE FULLSCREEN MODE */
@media (max-width: 640px) {
    .auth-wrapper {
        align-items: flex-start;
        padding: 0;
        background: #ffffff;
    }

    .auth-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 2rem 1.5rem;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .auth-header {
        margin-bottom: 3rem;
        text-align: left;
        /* Often feels better on mobile forms */
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    width: 100%;
}

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

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

/* Dashboard Layout */
.app-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: var(--text-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-icon {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

.main-content {
    padding: 2rem;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-secondary);
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

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

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

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

/* Utilities */
.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.gap-4 {
    gap: 1rem;
}

.text-right {
    text-align: right;
}

/* Mobile First Overrides for App Feel */

/* Layout Utils */
.app-container {
    padding-bottom: 80px;
    /* Space for fixed button */
}

/* Tabs */
.mobile-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    /* Negate padding of standard container if needed, or adjust */
    position: sticky;
    top: 60px;
    /* Adjust based on header height */
    z-index: 90;
}

.mobile-tab {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.mobile-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* Search Bar */
.mobile-search-area {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.mobile-search-input {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    outline: none;
}

.mobile-filter-btn {
    background: white;
    border: 1px solid #e2e8f0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #4f46e5;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Card List */
.os-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    position: relative;
    transition: transform 0.1s;
}

.os-card:active {
    transform: scale(0.99);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.os-client-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.os-details {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.os-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f8fafc;
    padding-top: 0.75rem;
    font-size: 0.9rem;
}

.os-value-label {
    color: #64748b;
    font-size: 0.85rem;
}

.os-value {
    color: #4f46e5;
    font-weight: 700;
}

/* Fixed Bottom Button */
.fixed-fab-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, white 80%, transparent);
    z-index: 100;
    display: flex;
    justify-content: center;
}

.btn-fab-wide {
    width: 100%;
    max-width: 600px;
    background: #3730a3;
    /* Deep Indigo similar to image */
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(55, 48, 163, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}

/* Helpers */
.text-red {
    color: #ef4444;
}

.bg-red {
    background: #ef4444;
}

.text-yellow {
    color: #f59e0b;
}

.bg-yellow {
    background: #f59e0b;
}

.text-orange {
    color: #ea580c;
}

.bg-orange {
    background: #ea580c;
}

.text-green {
    color: #10b981;
}

.bg-green {
    background: #10b981;
}

.text-blue {
    color: #3b82f6;
}

.bg-blue {
    background: #3b82f6;
}

.text-blue-dark {
    color: #1e3a8a;
}

.bg-blue-dark {
    background: #1e3a8a;
}

.text-gray {
    color: #94a3b8;
}

.bg-gray {
    background: #94a3b8;
}

/* Responsive adjustments to make it look mobile on desktop too */
@media (min-width: 768px) {
    .app-container {
        max-width: 600px;
        margin: 0 auto;
    }
}


/* Global App Theme Overrides */
:root {
    --app-bg: #f8fafc;
    --app-card-bg: #ffffff;
    --primary: #4f46e5;
    /* Purple/Indigo */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

body {
    background-color: var(--app-bg) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
}

/* Reset layout for Mobile App feel */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hide Sidebar on Mobile by default (can be toggled) - for now adapt existing layout */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        /* Hide standard sidebar for mobile focus */
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

/* App Header (Top Bar) */
.app-header {
    background: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-header-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Dashboard Banner */
.promo-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
    color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.promo-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Main Grid Menu */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.menu-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.1s;
}

.menu-card:active {
    transform: scale(0.98);
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.menu-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Colors for icons */
.bg-purple-light {
    background: #e0e7ff;
    color: #4f46e5;
}

.bg-blue-light {
    background: #dbeafe;
    color: #2563eb;
}

.bg-green-light {
    background: #dcfce7;
    color: #16a34a;
}

.bg-orange-light {
    background: #ffedd5;
    color: #ea580c;
}

/* Shortcuts Section */
.section-header {
    padding: 0 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

.shortcut-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0 1rem 1rem 1rem;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.shortcut-scroll::-webkit-scrollbar {
    display: none;
}

/* Hide Chrome */

.shortcut-item {
    min-width: 140px;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Summary Row */
.summary-item {
    background: white;
    margin: 0 1rem 1rem 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Bottom Nav (If replacing sidebar completely on mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    z-index: 90;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    gap: 0.25rem;
}

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

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

/* FAB Override from previous step */
.fixed-fab-container.dashboard-fab {
    bottom: 80px;
    /* Above nav bar */
}

/* Desktop Fixes */
@media (min-width: 769px) {
    .sidebar {
        display: block;
    }

    /* Show sidebar on desktop */
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}


/* FINAL MOBILE FIXES - FORCE LIGHT THEME & FORM STYLES */

/* Force global light theme background and text */
body,
.main-content,
.app-wrapper {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* Reset Card Styles for Light Theme */
.card {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-radius: 1rem !important;
    /* Rounded corners for mobile feel */
}

/* Form Elements Reset for Mobile Light Theme */
.form-group label {
    color: #64748b !important;
    font-weight: 600;
    font-size: 0.85rem;
}

.form-input,
select.form-input,
textarea.form-input {
    background-color: #f1f5f9 !important;
    /* Light gray input bg */
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
    /* Touch friendly padding */
    font-size: 1rem !important;
    /* Readable on mobile */
}

.form-input:focus {
    background-color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    outline: none;
}

/* Fix Dark Headers/Texts from previous theme */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a !important;
}

/* Adjust Buttons */
.btn {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    /* Remove uppercase if present */
    padding: 0.75rem 1.5rem !important;
}

.btn-primary {
    background-color: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2) !important;
}

/* Layout Padding Fixes */
.app-wrapper {
    padding-bottom: 90px !important;
    /* Ensure space for bottom nav */
}

.main-content {
    padding: 1rem !important;
    /* Global padding for content */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide Sidebar completely on screens smaller than 768px */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    /* Remove any margins pushing content */
    .main-content {
        margin: 0 !important;
        width: 100% !important;
        min-height: 100vh;
    }

    /* Fix header sticking */
    .app-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}


/* Mobile Form & Accordion Styles */

/* Clean Inputs */
.input-clean {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: #1e293b;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}

.input-clean:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Page Header */
.page-header-mobile {
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.page-title-small {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.page-title-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Accordions */
.app-accordion {
    border: none;
    background: transparent;
    margin-bottom: 0.5rem;
}

.app-accordion summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    cursor: pointer;
}

.app-accordion summary::-webkit-details-marker {
    display: none;
}

/* Custom Chevron/Icon Logic */
.icon-chevron {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    transition: transform 0.2s;
}

.app-accordion[open] .icon-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    padding-bottom: 1.5rem;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Rows (Services/Parts) */
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.action-icon-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.action-btn-add {
    width: 32px;
    height: 32px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
}

/* Save Button Fixed Area */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    z-index: 100;
}

.btn-block-lg {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0.5rem;
}


/* DESKTOP SIMULATOR MODE - Force Mobile View on PC */

@media (min-width: 769px) {
    body:not(.auth-page) {
        background-color: #f0f2f5 !important;
        /* Neutral background outside phone */
        background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
        background-size: 20px 20px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        min-height: 100vh;
        overflow-y: scroll;
        /* Always show scrollbar to prevent jumps */
    }

    .app-wrapper {
        width: 100%;
        max-width: 480px;
        /* Typical Large Phone width */
        background: #f8fafc;
        min-height: 100vh;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
        position: relative;
        overflow-x: hidden;
    }

    /* Hide the old desktop sidebar completely */
    .sidebar.desktop-only {
        display: none !important;
    }

    /* Fix Fixed Elements to stay within the simulated phone */
    .app-header {
        position: sticky;
        top: 0;
        width: 100%;
        max-width: 480px;
        /* Match wrapper */
        margin: 0 auto;
        /* Ensure centering if needed, but wrapper handles it */
        /* If it was fixed, it needs to be constrained. sticky is better here. */
    }

    .bottom-nav {
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 480px;
        /* Match wrapper */
        left: 50%;
        transform: translateX(-50%);
        /* Center fixed element */
        border-right: 1px solid #e2e8f0;
        border-left: 1px solid #e2e8f0;
    }

    .fixed-footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-right: 1px solid #e2e8f0;
        border-left: 1px solid #e2e8f0;
    }

    .fixed-fab-container {
        position: fixed;
        width: 100%;
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Ensure Dashboard Bottom Nav is visible on Desktop since we emulate mobile */
    .mobile-only {
        display: flex !important;
    }

    /* Ensure FAB is visible */
    .fixed-fab-container.mobile-only {
        display: flex !important;
        justify-content: center;
    }
}


/* Fix mobile tabs and header conflict */

.app-header.mobile-only {
    background: white;
    height: 60px;
    display: flex;
    /* Override mobile-only if needed, but display:flex is good */
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 #e2e8f0;
}

/* Push navigation/tabs down so they don't hide behind header */
.mobile-tabs {
    top: 60px !important;
    /* Stick BELOW the 60px header */
    margin-top: 0 !important;
    border-top: none;
    background: #f8fafc;
    /* Match page bg for seamless look */
    z-index: 90;
}

/* Ensure content isn't hidden under fixed/sticky elements */
.app-container {
    padding-top: 1rem;
}

/* Fix mobile search area visibility */
.mobile-search-area {
    background: #f8fafc;
    padding-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.mobile-search-input {
    background: white !important;
    /* Ensure white input against gray bg */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Make sure mobile bottom nav is above everything else at bottom */
.bottom-nav {
    z-index: 9999 !important;
    background: white !important;
    border-top: 1px solid #e2e8f0;
}


/* Fix FAB Button Overlap with Bottom Navbar */
.fixed-fab-container {
    bottom: 70px !important;
    /* Lift fully above the bottom navbar */
    padding: 0 1rem 1rem 1rem !important;
    /* Adjust padding */
    background: linear-gradient(to top, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0) 100%) !important;
    /* Remove white bg to avoid blockiness */
    pointer-events: none;
    /* Allow clicking content behind the container area */
}

.btn-fab-wide {
    pointer-events: auto;
    /* Enable clicking the button itself */
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3) !important;
    margin-bottom: 0 !important;
}

/* Increase scroll padding so list items aren't hidden behind the button */
.app-container,
.os-list {
    padding-bottom: 150px !important;
}


/* Clients Mobile List */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.client-card {
    background: #f1f5f9;
    /* Light gray background like image */
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.client-card:hover {
    background: #e2e8f0;
}


/* AUTHENTICATION PAGES (WEB NATIVE) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    /* Matching Landing Page dark theme */
    background-image:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.1), transparent 40%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card {
    background: #ffffff;
    border: none;
    border-radius: 2rem;
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 480px;
    /* Standard premium web login width */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-title {
    color: #0f172a;
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

/* Auth Form Inputs */
.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-label {
    display: block;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.auth-card .form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    border-radius: 1rem;
    padding: 1.1rem;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-card .form-input:focus {
    background: #ffffff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.auth-card .btn-primary {
    width: 100%;
    background: #4f46e5;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.1rem;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.auth-card .btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4);
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

.auth-card a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.auth-card a:hover {
    text-decoration: underline;
}

/* MOBILE RESPONSIVITY (Full screen experience) */
@media (max-width: 640px) {
    .auth-wrapper {
        padding: 0;
        background: #ffffff;
        align-items: stretch;
    }

    .auth-card {
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4rem 2rem;
        max-width: 100%;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .auth-header {
        margin-bottom: 4rem;
        text-align: left;
    }
}




/* BRAND LOGO IDENTITY */
.brand-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none !important;
}

.brand-logo span {
    color: #4f46e5;
}

.brand-logo.light {
    color: white;
}

.brand-logo.dark {
    color: #1e293b;
}

/* Sidebar Header to use this logo cleanly */
.sidebar .brand-logo {
    margin-bottom: 0;
}

/* Status Filter & Chips */
.status-filter-container {
    display: none;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.status-filter-container.active {
    display: block;
}

.status-chips-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.status-chips-scroll::-webkit-scrollbar {
    display: none;
}

.status-chip {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.status-chip.active {
    border-color: transparent;
    color: white;
}

.status-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Colors Helpers */
.bg-indigo {
    background-color: #4f46e5 !important;
}

.bg-yellow {
    background-color: #f59e0b !important;
}

.bg-orange {
    background-color: #f97316 !important;
}

.bg-blue {
    background-color: #3b82f6 !important;
}

.bg-green {
    background-color: #10b981 !important;
}

.bg-gray {
    background-color: #64748b !important;
}

/* Text Colors Helpers */
.text-yellow {
    color: #f59e0b !important;
}

.text-orange {
    color: #f97316 !important;
}

.text-blue {
    color: #3b82f6 !important;
}

.text-green {
    color: #10b981 !important;
}

.text-gray {
    color: #64748b !important;
}