/* MyGarage App Styles */

:root {
    --sidebar-width: 240px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar */
.sidebar {
    min-height: 100vh;
    background-color: #212529 !important;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(13, 110, 253, 0.25);
}

.sidebar .nav-link i {
    width: 1.2rem;
    text-align: center;
}

/* Main content */
main {
    min-height: 100vh;
}

/* Cards */
.card {
    border-radius: 0.75rem;
}

.card-header {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

/* Vehicle thumbnail */
.vehicle-thumb {
    height: 180px;
    object-fit: cover;
}

/* Tables */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

/* Badge */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 0.75rem;
    border: none;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
}

/* Responsive sidebar toggle */
@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
    }
}

/* Stat card icon container */
.rounded-3 {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PWA install banner */
#pwa-install-banner {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
    border-radius: 0.75rem;
}

/* Loading spinner overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Offline indicator */
#offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.25rem;
    font-size: 0.85rem;
    z-index: 9998;
    display: none;
}
