/* 
   Dealer Modern Styles for Baibhav International
   A modern, premium aesthetic including glassmorphism and smooth transitions.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --dealer-primary: #d93c3c;
    --dealer-dark: #121212;
    --dealer-bg: #f8fafc;
    --dealer-card-bg: rgba(255, 255, 255, 0.8);
    --dealer-glass-border: rgba(255, 255, 255, 0.3);
    --dealer-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --dealer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dealer-bg);
    color: #334155;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Glassmorphism Utilities */
.glass-effect {
    background: var(--dealer-card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--dealer-glass-border);
    box-shadow: var(--dealer-shadow);
    border-radius: 20px;
}

/* Login Page Styles */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 60, 60, 0.05) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.login-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 480px;
    transition: var(--dealer-transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.login-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

.form-control-modern {
    height: 54px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    font-size: 16px;
    transition: var(--dealer-transition);
    background-color: #f8fafc;
}

.form-control-modern:focus {
    border-color: var(--dealer-primary);
    box-shadow: 0 0 0 4px rgba(217, 60, 60, 0.1);
    background-color: #fff;
    outline: none;
}

.btn-dealer-primary {
    background: #1b4e8c;
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 54px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: var(--dealer-transition);
    cursor: pointer;
}

.btn-dealer-primary:hover {
    background: #1a7aee;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(217, 60, 60, 0.2);
}

/* Dashboard Improvements */
.dash-banner-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 80px 0 140px;
    color: white;
    position: relative;
    border-radius: 0 0 60px 60px;
    margin-bottom: -100px;
}

.dash-banner-modern h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- Modern Header & Dropdown --- */
.header-dealer-active {
    /*background: rgba(255, 255, 255, 0.95);*/
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu-modern {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
    padding: 10px !important;
    min-width: 220px !important;
    margin-top: 15px !important;
    animation: fadeIn 0.3s ease;
}

.dropdown-item-modern {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.dropdown-item-modern:hover {
    background-color: #f3f4f6 !important;
    color: var(--dealer-primary) !important;
    transform: translateX(5px);
}

.dropdown-item-modern i {
    width: 20px;
    font-size: 16px;
    opacity: 0.7;
}

.top-bar-dealer {
    /* background-color: var(--dealer-dark) !important; */
    padding: 8px 0;
}

.cart-badge-modern {
    background: var(--dealer-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    top: -8px;
    right: -10px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: #374151 !important;
    padding: 10px 15px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--dealer-primary) !important;
}

.dropdown-divider-modern {
    height: 1px;
    background-color: #f1f5f9;
    margin: 8px 0;
}

.stat-card-modern {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--dealer-transition);
    height: 100%;
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(217, 60, 60, 0.2);
}

.icon-box-modern {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    transition: var(--dealer-transition);
}

.stat-card-modern:hover .icon-box-modern {
    transform: scale(1.1) rotate(-5deg);
}

/* Color Gradients for Icons */
.grad-blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; }
.grad-purple { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: white; }
.grad-rose { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: white; }
.grad-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; }
.grad-emerald { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; }
.grad-indigo { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); color: white; }

/* Order List Styles */
.order-row-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: var(--dealer-transition);
}

.order-row-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #e2e8f0;
}

.badge-modern {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid { background: #dcfce7; color: #166534; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-verifying { background: #e0f2fe; color: #075985; }
.status-failed { background: #fee2e2; color: #991b1b; }

/* Quick Link Boxes */
.quick-access-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none !important;
    border: 1px solid #f1f5f9;
    transition: var(--dealer-transition);
}

.quick-access-card:hover {
    background: #f8fafc;
    border-color: var(--dealer-primary);
    transform: translateX(5px);
}

.qa-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--dealer-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--dealer-transition);
}

.quick-access-card:hover .qa-icon {
    background: var(--dealer-primary);
    color: #fff;
}

/* Profile Sidebar */
.profile-sidebar-modern {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--dealer-shadow);
    text-align: center;
}

.profile-nav-modern a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: var(--dealer-transition);
    margin-bottom: 8px;
}

.profile-nav-modern a.active {
    background: #1a7aee;
    color: #fff;
}

.profile-nav-modern a:hover:not(.active) {
    background: #f1f5f9;
    color: #1a7aee;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
