/* Apex Motors & Precision Auto Care ERP - Deep Navy Metallic & Amber Racing Design System */

:root {
    --auto-bg: #0b1120;
    --auto-surface: #0f172a;
    --auto-card: #1e293b;
    --auto-card-hover: #273549;
    --auto-blue: #2563eb;
    --auto-blue-glow: #3b82f6;
    --auto-amber: #f59e0b;
    --auto-amber-glow: #fbbf24;
    --auto-emerald: #10b981;
    --auto-crimson: #e11d48;
    --auto-purple: #8b5cf6;
    --auto-sky: #0ea5e9;
    --border-dark: #334155;
    --border-subtle: #1e293b;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-blue-glow: 0 0 20px rgba(37, 99, 235, 0.35);
    --shadow-amber-glow: 0 0 20px rgba(245, 158, 11, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--auto-bg);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ======================================================== */
/* 1. AUTO WORKSHOP NAVBAR                                  */
/* ======================================================== */
.auto-navbar {
    background: #090e1a;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--auto-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    padding-right: 18px;
    border-right: 1px solid var(--border-dark);
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}
.brand-text span {
    font-size: 10px;
    color: var(--auto-amber-glow);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Nav Toolbar & Segmented Buttons */
.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid var(--border-dark);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
    transform: translateY(-1px);
}

.nav-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    font-weight: 900;
}

.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ======================================================== */
/* 2. MAIN CONTAINER & CARDS                                */
/* ======================================================== */
.main-wrapper {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
}

.auto-card {
    background: var(--auto-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.card-header-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================== */
/* 3. DATA TABLES & FORMS                                   */
/* ======================================================== */
.data-table-wrap {
    overflow-x: auto;
}

.auto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}
.auto-table th {
    background: #0f172a;
    color: #94a3b8;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
}
.auto-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-dark);
    color: #e2e8f0;
}
.auto-table tr:hover {
    background: var(--auto-card-hover);
}

.auto-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    transition: all 0.2s;
}
.auto-input:focus {
    border-color: var(--auto-blue-glow);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.badge-green { background: #064e3b; color: #6ee7b7; border: 1px solid #059669; }
.badge-amber { background: #78350f; color: #fde68a; border: 1px solid #d97706; }
.badge-orange { background: #7c2d12; color: #ffedd5; border: 1px solid #ea580c; }
.badge-red { background: #881337; color: #fecdd3; border: 1px solid #e11d48; }
.badge-blue { background: #1e3a8a; color: #bfdbfe; border: 1px solid #2563eb; }
.badge-purple { background: #4c1d95; color: #d8b4fe; border: 1px solid #8b5cf6; }
.badge-sky { background: #0c4a6e; color: #bae6fd; border: 1px solid #0284c7; }
.badge-dark { background: #1e293b; color: #cbd5e1; border: 1px solid #475569; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; box-shadow: var(--shadow-blue-glow); }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-weight: 900; }
.btn-amber:hover { background: #d97706; }
.btn-emerald { background: #059669; color: #ffffff; }
.btn-emerald:hover { background: #047857; }
.btn-danger { background: #e11d48; color: #ffffff; }
.btn-danger:hover { background: #be123c; }
.btn-navy { background: #1e293b; color: #ffffff; border-color: #334155; }
.btn-navy:hover { background: #334155; }
.btn-outline { background: transparent; border-color: var(--border-dark); color: #cbd5e1; }
.btn-outline:hover { background: #1e293b; color: #ffffff; border-color: #64748b; }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* Pulsing Online Dot */
.live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ======================================================== */
/* 4. WORKSHOP BAY TILES & INSPECTION CHECKBOXES            */
/* ======================================================== */
.bay-card {
    background: #0f172a;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 14px;
    transition: all 0.2s;
}
.bay-card.occupied {
    border-color: #2563eb;
    background: #1e3a8a15;
}
.bay-card.ready {
    border-color: #059669;
    background: #064e3b15;
}

.status-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.step-pill {
    padding: 6px 12px;
    border-radius: 20px;
    background: #0f172a;
    border: 1px solid var(--border-dark);
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
}
.step-pill.active {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}
.step-pill.done {
    background: #064e3b;
    border-color: #059669;
    color: #6ee7b7;
}
