/* Devis.ma - Main Stylesheet */

:root {
    --primary-dark: #1a1a2e;
    --accent: #f59e0b;
    --accent-hover: #d97706;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fafafa;
    color: #1f2937;
}

/* Fix sticky navbar */
.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    min-height: 70vh;
    padding: 80px 0 60px;
}

.hero-image-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.min-vh-70 {
    min-height: 70vh;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* Category Cards */
.category-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--accent) !important;
}

.category-card.active {
    border: 2px solid var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* Subcategory Cards */
.subcategory-card {
    border-radius: 12px;
    transition: all 0.2s ease;
}

.subcategory-card:hover {
    border-color: var(--accent) !important;
    background: rgba(245, 158, 11, 0.03);
    transform: translateY(-2px);
}

/* Forms */
.form-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-floating > .form-control:focus ~ label {
    color: var(--accent);
}

.btn-warning {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a2e;
    font-weight: 600;
}

.btn-warning:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #1a1a2e;
}

.btn-outline-warning {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-warning:hover {
    background: var(--accent);
    color: #1a1a2e;
}

/* Dashboard */
.sidebar {
    background: var(--primary-dark);
    min-height: calc(100vh - 56px);
    border-radius: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(245, 158, 11, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background: var(--accent);
    color: #1a1a2e;
}

.stat-card {
    border-radius: 12px;
    padding: 24px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

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

/* Lead Cards */
.lead-card {
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all 0.2s;
    background: white;
}

.lead-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Badges */
.badge-category {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Quote Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card-wide {
    max-width: 600px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 70px;
    left: 10px;
    z-index: 1050;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: block;
    }
    .sidebar {
        position: fixed !important;
        top: 56px;
        left: -280px;
        width: 260px !important;
        min-height: calc(100vh - 56px) !important;
        z-index: 1040;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .sidebar.show {
        left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
    }
    .sidebar-overlay.show {
        display: block;
    }
    .col-lg-10 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .col-lg-2.p-0 {
        width: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .auth-card {
        padding: 24px;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.px-4 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}
