/* ===================================
   Car Parts Platform - Custom Styles
   =================================== */

:root {
    --primary: #1a56db;
    --primary-dark: #1240a8;
    --secondary: #f59e0b;
    --success: #10b981;
    --dark: #1e293b;
    --light-bg: #f8fafc;
    --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Fonts */
.font-inter { font-family: 'Inter', sans-serif; }
.font-cairo { font-family: 'Cairo', sans-serif; }

body {
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

footer { margin-top: auto; }

/* Navbar */
.navbar { padding: 0.75rem 0; }
.navbar-brand { font-size: 1.3rem; letter-spacing: -0.5px; }
.bg-primary { background-color: var(--primary) !important; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-section h1 { font-size: 2.8rem; font-weight: 700; }
.hero-section p { font-size: 1.2rem; opacity: 0.9; }

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Feature Cards */
.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(26, 86, 219, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Brand Grid */
.brand-card {
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.brand-card:hover { border-color: var(--primary); }
.brand-card .brand-logo { width: 70px; height: 70px; object-fit: contain; margin: 0 auto; }
.brand-card .brand-name { font-weight: 600; font-size: 0.9rem; margin-top: 0.5rem; }

/* Form Styles */
.form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.form-label { font-weight: 500; margin-bottom: 0.3rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.15);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(26, 86, 219, 0.03);
}
.upload-area i { font-size: 2rem; color: #94a3b8; }

/* Status Badge */
.badge { font-weight: 500; padding: 0.4em 0.8em; border-radius: 6px; }

/* Stat Cards (Admin) */
.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
}
.stat-card .stat-number { font-size: 2rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.9rem; opacity: 0.9; }
.stat-card.bg-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.stat-card.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-card.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.stat-card.bg-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

/* Admin Sidebar */
.admin-sidebar {
    background: var(--dark);
    min-height: calc(100vh - 70px);
    padding: 1.5rem 0;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
}
.admin-sidebar .nav-link i { width: 24px; text-align: center; }

/* Table Styles */
.table-responsive { border-radius: 12px; overflow: hidden; }
.table th { background: #f1f5f9; font-weight: 600; white-space: nowrap; }

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
}
.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Request Detail */
.request-timeline {
    position: relative;
    padding-left: 30px;
}
.request-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

/* Image Preview */
.image-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Buttons */
.btn-primary { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-whatsapp { background: #25D366; color: white; border: none; }
.btn-whatsapp:hover { background: #1da851; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 0; }
    .hero-section h1 { font-size: 2rem; }
    .stat-card .stat-number { font-size: 1.5rem; }
}
