@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-red: #DC3545;
    --secondary-white: #FFFFFF;
    --dark-accent: #212529;
    --soft-gray: #f8f9fa;
    --glass-white: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--secondary-white);
    color: var(--dark-accent);
}

/* Header Styles */
.navbar {
    background-color: var(--glass-white);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-red) !important;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-accent) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

.btn-primary-red {
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-red:hover {
    background-color: #bb2d3b;
    transform: translateY(-2px);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Card Styles */
.bike-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.bike-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.1);
}

.bike-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.bike-price {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Footer Styles */
.footer {
    background-color: var(--dark-accent);
    color: white;
}

.footer-link {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-red);
}

/* Authentication Pages Styles */
.auth-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfdfd 0%, #f8f9fa 100%);
    padding: 2rem 0;
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: white;
}

.auth-card-header {
    background-color: var(--primary-red);
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.auth-card-header h3 {
    font-size: 1.5rem;
}

.auth-card-header p {
    font-size: 0.85rem;
}

.auth-card-body {
    padding: 1.5rem;
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-control,
.form-select,
.input-group-text {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.1);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: #6c757d;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.auth-divider:not(:empty)::before {
    margin-right: .5em;
}

.auth-divider:not(:empty)::after {
    margin-left: .5em;
}

.social-auth-btn {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--dark-accent);
    text-decoration: none;
    font-weight: 600;
}

.social-auth-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Premium Dealer Inventory Styles --- */
.dealer-hero-banner {
    background: #f8fafc;
    min-height: 220px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

/* Hero blobs removed for minimal design */

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.z-index-2 {
    z-index: 2;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50px;
    display: inline-block;
}

.glass-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.premium-bike-card {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: visible;
    position: relative;
    z-index: 1;
}

.premium-bike-card:hover,
.premium-bike-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.1);
    z-index: 50;
}

.premium-img-box {
    height: 240px;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
}

.transition-transform {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-bike-card:hover .transition-transform {
    transform: scale(1.08);
}

.hover-scale:hover {
    transform: scale(1.1);
}

.animate-dropdown {
    transform-origin: top center;
    animation: slideDownFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideDownFade {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Dashboard Utilities */
.font-sm {
    font-size: 0.85rem !important;
}

.x-small {
    font-size: 0.75rem !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.sidebar-nav .list-group-item {
    transition: all 0.2s ease;
}

.sidebar-nav .list-group-item:not(.active):hover {
    background-color: #f8f9fa;
    padding-left: 2rem !important;
}

.sidebar-nav .list-group-item.active {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.table> :not(caption)>*>* {
    padding: 0.75rem 0.5rem;
}

.form-control-compact {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

/* Pro Dashboard Styles - Premium Light Redesign */
:root {
    --dashboard-bg: #f8fafc;
    --sidebar-bg: #ffffff;
    --sidebar-accent: #dc2626;
    /* Primary Red for continuity */
    --sidebar-accent-soft: rgba(220, 38, 38, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

.pro-dashboard-wrapper {
    background-color: var(--dashboard-bg);
    min-height: 100vh;
    display: flex;
    transition: all 0.3s ease;
}

.pro-sidebar {
    background: var(--sidebar-bg);
    padding: 30px 24px;
    width: 280px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.pro-sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.sidebar-collapsed .pro-sidebar {
    width: 80px;
    padding: 30px 15px;
}

.sidebar-collapsed .pro-sidebar .sidebar-brand img,
.sidebar-collapsed .pro-sidebar .text-center img,
.sidebar-collapsed .pro-sidebar .pro-nav-link span,
.sidebar-collapsed .pro-sidebar .small.fw-800,
.sidebar-collapsed .pro-sidebar .pro-user-card h6,
.sidebar-collapsed .pro-sidebar .pro-user-card form,
.sidebar-collapsed .pro-sidebar hr {
    display: none !important;
}

.sidebar-collapsed .pro-sidebar .pro-nav-link {
    justify-content: center;
    padding: 12px;
    margin: 4px 0;
}

.sidebar-collapsed .pro-sidebar .pro-nav-link i {
    margin-right: 0;
}

.pro-main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 24px;
    padding-bottom: 40px;
    background-color: var(--dashboard-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed .pro-main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.dashboard-header {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 12px 24px;
    position: sticky;
    top: 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.dashboard-body,
.pro-dashboard-container {
    padding: 0;
}

/* Sidebar Links - Premium Light */
.pro-nav-link {
    color: var(--text-muted);
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pro-nav-link i {
    margin-right: 14px;
    font-size: 1.1rem;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

.pro-nav-link:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

.pro-nav-link.active {
    background: var(--sidebar-accent-soft);
    color: var(--sidebar-accent);
}

.pro-stat-card {
    border-radius: 16px;
    padding: 18px 22px;
    color: white;
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-stat-card:hover {
    transform: translateY(-5px);
}

.pro-stat-card i {
    font-size: 1.8rem;
    opacity: 0.2;
    position: absolute;
    right: 12px;
    bottom: 12px;
    transform: rotate(-10deg);
}

.bg-pro-gradient-1 {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%) !important;
}

.bg-pro-gradient-2 {
    background: linear-gradient(135deg, #4776E6 0%, #8E54E9 100%) !important;
}

.bg-pro-gradient-3 {
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%) !important;
}

.pro-card {
    background: white;
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.hover-bg-light:hover {
    background-color: #f8fafc;
}

.tracking-tight {
    letter-spacing: -0.02em;
}

.fw-800 {
    font-weight: 800;
}

.pro-stat-card h2 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.pro-user-card {
    background: white;
    border-radius: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.pro-user-card:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.text-pro-dark {
    color: var(--text-main) !important;
}

.text-pro-muted {
    color: var(--text-muted) !important;
}

.hover-translate-y:hover {
    transform: translateY(-3px);
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.no-caret::after {
    display: none !important;
}

.pro-activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f3f9;
}

.pro-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.font-pro {
    font-family: 'Poppins', sans-serif;
}

.text-pro-dark {
    color: #1a202c;
}

.text-pro-muted {
    color: #718096;
}

/* Dashboard Specific Overrides */
.dashboard-page .navbar,
.dashboard-page .footer {
    display: none !important;
}

.dashboard-page main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.pro-user-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f3f9 !important;
}

.pro-user-card:hover {
    background-color: #f8fafc;
}

.pro-activity-list {
    max-height: 400px;
    /* Increased now that summary column is dynamic */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

.pro-activity-list::-webkit-scrollbar {
    width: 6px;
}

.pro-activity-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 10px;
}

/* Admin Sidebar Styles */
.admin-sidebar {
    background: white;
    border-radius: 24px;
    padding: 20px;
    height: calc(100vh - 120px);
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE and Edge */
}

.admin-sidebar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome, Safari and Opera */
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 15px;
    color: #4a5568;
    text-decoration: none;
    margin-bottom: 8px;
    transition: all 0.3s;
    font-weight: 600;
}

.admin-nav-link i {
    margin-right: 15px;
    font-size: 1.1rem;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #fef2f2;
    color: #dc2626;
}

.data-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Premium Pagination */
.pagination {
    gap: 8px;
    margin-bottom: 0;
}

.page-item .page-link {
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 16px;
    color: #718096 !important;
    font-weight: 600;
    font-size: 0.85rem;
    background: #f8fafc !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.page-item.active .page-link {
    background: #dc2626 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.page-item .page-link:hover:not(.active) {
    background: #edf2f7 !important;
    color: #1a202c !important;
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    background: #f8fafc !important;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Fix for Laravel Simple Pagination (Previous/Next) */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 20px !important;
    padding-left: 20px;
    padding-right: 20px;
}

p.text-sm.text-gray-700.leading-5 {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #718096;
}

.pagination .page-link:focus {
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
    outline: none;
}

/* --- Dashboard Responsiveness --- */
@media (max-width: 991.98px) {
    .pro-sidebar {
        transform: translateX(-100%);
    }

    .pro-main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }

    .dashboard-header {
        top: 15px;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch !important;
    }

    .dashboard-header>div:first-child {
        justify-content: space-between;
        width: 100%;
    }

    .dashboard-header .d-flex.align-items-center.gap-4 {
        justify-content: space-between;
        width: 100%;
    }

    .pro-user-card .d-none.d-lg-block {
        display: block !important;
    }
}

/* Header Search Bar Styles */
.header-search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.header-search-box .form-control {
    background: #f1f5f9;
    border: 1px solid transparent;
    border-radius: 12px;
    padding-left: 45px;
    font-size: 0.9rem;
    height: 42px;
    transition: all 0.3s ease;
}

.header-search-box .form-control:focus {
    background: white;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.05);
}

.header-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

.pro-stat-card {
    color: white !important;
}

.pro-stat-card p,
.pro-stat-card h2,
.pro-stat-card i,
.pro-stat-card span {
    color: white !important;
}

/* Reduce Dashboard Stats Font Sizes */
.pro-stat-card h2 {
    font-size: 1.5rem !important;
}

.pro-stat-card p {
    font-size: 0.75rem !important;
    margin-bottom: 0.25rem !important;
}

.pro-stat-card i {
    font-size: 1.4rem !important;
}