:root {
    /* Colors */
    --primary: #D62828;
    --primary-hover: #b02121;
    --secondary: #111111;
    --secondary-hover: #000000;
    --success: #10B981;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --border: #E2E8F0;
    
    /* Spacing (8px Grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navbar */
.navbar {
    padding: var(--space-sm) 0;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-link {
    font-weight: 500;
    color: var(--text-body) !important;
    padding: var(--space-xs) var(--space-sm) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Hero Section */
.hero-section {
    padding: var(--space-2xl) 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(244, 63, 94, 0.05), transparent);
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    background: linear-gradient(to bottom right, var(--text-heading), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

/* Order Card */
.order-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    background-color: #fcfdfe;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    background-color: var(--surface);
}

/* Service Cards */
.service-card {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card i {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

/* Dashboard */
.dashboard-container {
    padding: var(--space-xl) 0;
    background-color: var(--background);
}

.stat-card {
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-top: var(--space-xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Testimonials */
.testimonial-card {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title { 
        font-size: 2.75rem; 
        margin-bottom: var(--space-sm);
    }
    .hero-section { 
        padding: var(--space-xl) 0; 
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .order-card { 
        margin-top: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .hero-section { padding: var(--space-lg) 0; }
    .order-card { padding: var(--space-lg); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stat-value { font-size: 1.25rem; }
}

/* Utility */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-heading { color: var(--text-heading) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }

/* Status Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
}
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1) !important; color: #059669 !important; }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1) !important; color: #d97706 !important; }
.bg-info-soft { background-color: rgba(59, 130, 246, 0.1) !important; color: #2563eb !important; }
.bg-danger-soft { background-color: rgba(244, 63, 94, 0.1) !important; color: #e11d48 !important; }
.bg-primary-soft { background-color: rgba(79, 70, 229, 0.1) !important; color: #4f46e5 !important; }

/* Dashboard Tables */
.table thead th {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.05em;
}

.order-row {
    transition: var(--transition);
}

.order-row:hover {
    background-color: #f8fafc !important;
}

.cursor-pointer { cursor: pointer; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 4px 8px;
    transition: var(--transition);
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--primary);
}

.bottom-nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* Mobile body padding for bottom nav */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}

/* Mobile Order Cards */
.order-card-mobile {
    transition: var(--transition);
    cursor: pointer;
}

.order-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.order-card-mobile .badge {
    font-size: 10px;
    padding: 4px 8px;
}

/* Table responsive improvements */
@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: 0;
    }
    
    .order-card-mobile {
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* Notification Styles */
#notificationDropdown {
    position: relative;
}

#notificationDropdown .btn {
    transition: var(--transition);
}

#notificationDropdown .btn:hover {
    background-color: var(--border);
}

#notification-badge {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: 600;
}

#notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.bg-white {
    border-left: 3px solid var(--primary);
}

.notification-item.bg-light {
    border-left: 3px solid transparent;
}

.notification-item .mark-read-btn {
    opacity: 0;
    transition: var(--transition);
}

.notification-item:hover .mark-read-btn {
    opacity: 1;
}

.notification-item .badge {
    flex-shrink: 0;
}

.notification-item .text-truncate {
    max-width: 200px;
}

@media (max-width: 575.98px) {
    #notificationDropdown .dropdown-menu {
        min-width: 280px !important;
        max-width: 90vw;
    }
    
    .notification-item .text-truncate {
        max-width: 160px;
    }
}

