/* Mobile-first responsive design - North Star Auto Care - Supra Theme */
:root {
    /* Supra-inspired color palette - Light Mode */
    --primary-color: #DC2626; /* Supra Red */
    --secondary-color: #FF6B35; /* Supra Orange */
    --accent-color: #1E293B; /* Deep Charcoal */
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --dark-color: #0F172A; /* Midnight Blue */
    --light-color: #F8FAFC;
    --border-color: #E2E8F0;
    --text-color: #334155;
    --success-color: #10B981;
    --silver: #94A3B8; /* Metallic Silver accent */
    --gold: #FCD34D; /* Gold accent for premium feel */
    
    /* Background colors */
    --bg-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --bg-card: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    --bg-stat-card: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --bg-input: white;
    --shadow-card: 0 8px 16px rgba(0,0,0,0.2), 0 0 40px rgba(220, 38, 38, 0.1);
    --shadow-stat: 0 4px 12px rgba(0,0,0,0.3);
}

/* Dark mode - Auto-detects system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1E293B;
        --border-color: #334155;
        --text-color: #E2E8F0;
        --dark-color: #F8FAFC;
        
        /* Dark mode backgrounds */
        --bg-primary: linear-gradient(135deg, #000000 0%, #0F172A 100%);
        --bg-card: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
        --bg-stat-card: linear-gradient(135deg, #1E293B 0%, #334155 100%);
        --bg-input: #1E293B;
        --shadow-card: 0 8px 16px rgba(0,0,0,0.6), 0 0 40px rgba(220, 38, 38, 0.2);
        --shadow-stat: 0 4px 12px rgba(0,0,0,0.6);
        --silver: #CBD5E1;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header with Supra-inspired design */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), 0 0 20px rgba(220, 38, 38, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gold);
}

header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

header h1::before {
    content: "⭐";
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.business-tagline {
    font-size: 0.875rem;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* Navigation with racing stripes effect */
nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    position: relative;
}

nav::before {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Cards with premium styling */
.card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(220, 38, 38, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--gold));
}

.card-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid with Supra performance theme */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-stat-card);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-stat);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-input);
    color: var(--text-color);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Buttons with racing-inspired design */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color), var(--dark-color));
    color: white;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 41, 59, 0.5);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* File Upload */
.file-upload {
    border: 3px dashed var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(220, 38, 38, 0.02);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background: rgba(220, 38, 38, 0.05);
}

.file-upload input[type="file"] {
    display: none;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tables with premium styling */
.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-input);
    color: var(--text-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.05), transparent);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

/* Loading Spinner with racing theme */
.spinner {
    border: 4px solid var(--light-color);
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-left: 4px solid;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(255, 107, 53, 0.05));
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-top: 4px solid var(--primary-color);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    text-transform: uppercase;
}

.modal-close {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* Racing stripes decoration */
.racing-stripes {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 25%, 
        var(--gold) 50%, 
        var(--secondary-color) 75%, 
        var(--primary-color) 100%);
    z-index: 1001;
    animation: slide 3s linear infinite;
}

@keyframes slide {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.25rem;
    }
    
    .business-tagline {
        font-size: 0.75rem;
    }
    
    nav {
        gap: 0.25rem;
    }
    
    nav a {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 1.1rem;
    }
}

/* Performance-inspired footer accent */
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--gold));
    z-index: 1001;
}

/* Made with Bob - North Star Auto Care */

/* Made with Bob */

/* ========================================
   JOB TIMER WIDGET
   ======================================== */
.timer-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 40px rgba(220, 38, 38, 0.2);
    border: 2px solid var(--primary-color);
    z-index: 999;
    min-width: 280px;
    transition: all 0.3s ease;
}

.timer-widget.minimized {
    padding: 1rem;
    min-width: auto;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timer-title {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.timer-minimize {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.25rem;
    transition: transform 0.3s ease;
}

.timer-minimize:hover {
    transform: scale(1.2);
}

.timer-display {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.timer-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timer-btn-start {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.timer-btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.timer-btn-stop {
    background: linear-gradient(135deg, var(--danger-color), #DC2626);
    color: white;
}

.timer-btn-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.timer-btn-reset {
    background: linear-gradient(135deg, var(--accent-color), var(--dark-color));
    color: white;
}

.timer-btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4);
}

.timer-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-color);
}

.timer-info div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.timer-info strong {
    color: var(--primary-color);
}

/* Timer floating button when minimized */
.timer-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.timer-fab.running {
    animation: pulse-timer 2s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(220, 38, 38, 0.8), 0 0 30px rgba(220, 38, 38, 0.4); }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Touch-friendly tap targets */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 1rem 1.5rem;
    }
    
    nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Improved header for mobile */
    header {
        padding: 1rem 0;
    }
    
    header h1 {
        font-size: 1.25rem;
    }
    
    header h1::before {
        font-size: 1.5rem;
    }
    
    .business-tagline {
        font-size: 0.75rem;
    }
    
    /* Better navigation on mobile */
    nav {
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    nav a {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    /* Optimized cards for mobile */
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
    }
    
    .card-header {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Better stats grid on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Mobile-friendly tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.875rem;
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Better forms on mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    label {
        font-size: 0.8125rem;
    }
    
    /* Mobile-friendly buttons */
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Photo grid optimization */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    /* Timer widget on mobile */
    .timer-widget {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: calc(100vw - 2rem);
    }
    
    .timer-fab {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    /* Modal improvements for mobile */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    /* Reduce padding on mobile */
    main {
        padding: 1rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    nav a {
        font-size: 0.7rem;
        padding: 0.625rem 0.75rem;
        min-width: 70px;
    }
    
    header h1 {
        font-size: 1.1rem;
    }
    
    .timer-display {
        font-size: 2rem;
    }
    
    .card-header {
        font-size: 1.1rem;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    header {
        position: relative;
    }
    
    .timer-widget {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 1rem;
    }
    
    .timer-display {
        font-size: 2rem;
        margin: 0.5rem 0;
    }
}

/* ========================================
   DARK MODE TABLE FIXES
   ======================================== */
@media (prefers-color-scheme: dark) {
    table {
        background: var(--bg-input);
    }
    
    th {
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    }
    
    tr:hover {
        background: rgba(220, 38, 38, 0.1);
    }
    
    .modal-content {
        background: var(--bg-card);
    }
    
    .card-header {
        color: var(--text-color);
    }
    
    label {
        color: var(--text-color);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--primary-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Made with Bob - North Star Auto Care Enhanced */

/* ========================================
   NOTIFICATION CENTER
   ======================================== */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-bell svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-bell:hover svg {
    fill: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--danger-color), #DC2626);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 380px;
    max-width: 90vw;
    max-height: 500px;
    background: var(--bg-card);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 2px solid var(--primary-color);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.notification-panel.active {
    display: flex;
}

.notification-header {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.3s ease;
}

.notification-action-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.notification-item {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-item:hover {
    background: rgba(220, 38, 38, 0.05);
    transform: translateX(4px);
}

.notification-item.unread {
    background: rgba(220, 38, 38, 0.08);
    border-left-color: var(--primary-color);
}

.notification-item.alert {
    border-left-color: var(--danger-color);
}

.notification-item.reminder {
    border-left-color: var(--warning-color);
}

.notification-item.info {
    border-left-color: var(--primary-color);
}

.notification-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.notification-item-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 0.9rem;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--silver);
    white-space: nowrap;
}

.notification-item-message {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.4;
}

.notification-item-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.notification-item-category.alert {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.notification-item-category.reminder {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.notification-item-category.info {
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary-color);
}

.notification-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--silver);
}

.notification-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile notification panel */
@media (max-width: 768px) {
    .notification-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 70vh;
        margin: 0;
        border-radius: 1rem 1rem 0 0;
    }
}

/* Made with Bob - Notification Styles */
