:root {
    --os-primary: #C62828;
    --os-secondary: #9E9E9E;
    --os-success: #198754;
    --os-info: #0dcaf0;
    --os-warning: #ffc107;
    --os-danger: #C62828; /* Aligned with primary for strong warnings/actions */
    --os-light: #F5F5F5;
    --os-dark: #1C1C1C;
    --bs-body-bg: #F5F5F5;
    --bs-body-color: #1C1C1C;
    --bs-secondary: #9E9E9E;
    --bs-link-color: #C62828;
    --bs-link-hover-color: #B71C1C;
}

html {
    scroll-behavior: smooth;
}

/* Global & Utilities */
body {
    background-color: var(--os-light);
    color: var(--os-dark);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

a {
    color: var(--os-primary);
    text-decoration: none;
}

a:hover {
    color: #B71C1C;
}

.text-osgaragem {
    color: var(--os-primary) !important;
}

.link-osgaragem {
    color: var(--os-primary) !important;
}

.link-osgaragem:hover {
    color: #B71C1C !important;
}

.bg-osgaragem {
    background-color: var(--os-primary) !important;
}

.border-osgaragem {
    border-color: var(--os-primary) !important;
}

.btn-osgaragem {
    background-color: var(--os-primary);
    border-color: var(--os-primary);
    color: #fff;
    transition: all 0.2s ease;
}

.btn-osgaragem:hover {
    background-color: #B71C1C;
    border-color: #B71C1C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(198, 40, 40, 0.2);
}

.btn-osgaragem {
    background-color: var(--os-primary);
    border-color: var(--os-primary);
    color: #fff;
    transition: all 0.2s ease;
}

.btn-osgaragem:hover {
    background-color: #B71C1C;
    border-color: #B71C1C;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(198, 40, 40, 0.2);
}

.btn-outline-osgaragem {
    color: var(--os-primary);
    border-color: var(--os-primary);
}

.btn-outline-osgaragem:hover {
    background-color: var(--os-primary);
    border-color: var(--os-primary);
    color: #fff;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Layout Refined */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #F5F5F5;
}

/* Sidebar Light & Modern */
.sidebar {
    width: 260px;
    background: #FFFFFF;
    color: #1C1C1C;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 10px rgba(0,0,0,0.05);
    border-right: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1C1C1C;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.sidebar-brand:hover {
    color: var(--os-primary);
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    list-style: none;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    color: #666; /* Secondary text color */
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(198, 40, 40, 0.05);
    color: var(--os-primary);
    transform: translateX(4px);
}

.sidebar-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #FAFAFA;
}

/* Topbar */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.topbar {
    height: 70px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-profile:hover {
    background-color: #F5F5F5;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--os-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Content Area */
.content-wrapper {
    padding: 2rem;
}

/* Stats Cards Enhanced */
.stat-card {
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
}

.stat-card.primary::after { background: var(--os-primary); }
.stat-card.success::after { background: var(--os-success); }
.stat-card.warning::after { background: var(--os-warning); }
.stat-card.danger::after { background: var(--os-danger); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1C1C1C;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #9E9E9E;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Auth Pages (Login, Register, Reset) */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #F5F5F5;
    padding: 2rem;
    background-image: radial-gradient(#e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(0,0,0,0.05);
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C1C1C;
    text-decoration: none;
    margin-bottom: 1rem;
}

.auth-logo:hover {
    color: var(--os-primary);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1C1C1C;
}

.auth-subtitle {
    color: #9E9E9E;
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #9E9E9E;
}

.auth-footer a {
    color: var(--os-primary);
    text-decoration: none;
    font-weight: 500;
}

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

.btn-auth {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Landing Page (Index) */
.hero-section {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #F5F5F5 0%, #E0E0E0 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1C1C1C;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666; /* Slightly darker than 9E9E9E for readability */
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.6;
}

.pricing-section {
    padding: 6rem 0;
    background-color: #FFFFFF;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1C1C1C;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #9E9E9E;
}

.pricing-table-container {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1C1C1C;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }

    .topbar {
        padding: 0 1rem;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--os-light);
}

.feature-card {
    border: none;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFFFFF;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(198, 40, 40, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background-color: rgba(198, 40, 40, 0.1);
    color: var(--os-primary);
}

/* Pricing Section */
.pricing-card {
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #FFFFFF;
}

.pricing-card.popular {
    border: 2px solid var(--os-primary);
    transform: scale(1.05);
    box-shadow: 0 1rem 3rem rgba(198, 40, 40, 0.15);
    z-index: 2;
    position: relative;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--os-primary);
}

.pricing-features {
    padding: 2rem;
    list-style: none;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: var(--os-success);
    margin-right: 0.75rem;
}

/* Footer */
.footer {
    background-color: #1C1C1C; /* Dark footer is standard for light themes */
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--os-primary);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--os-primary);
    color: #fff;
    transform: translateY(-3px);
}
