/* PREMIUM THEME OVERRIDE - FORCE VISUAL CHANGES */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #6366f1 !important;
    /* Indigo */
    --primary-hover: #4f46e5 !important;
    --secondary: #ec4899 !important;
    /* Pink */
    --accent: #8b5cf6 !important;
    /* Violet */
    --bg-body: #f3f4f6 !important;
    /* Cool Gray 100 */
    --surface: #ffffff !important;
    --text-main: #111827 !important;
    --text-muted: #6b7280 !important;
    --border-color: #e5e7eb !important;
    --radius-lg: 16px !important;
    --radius-xl: 24px !important;
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
    --shadow-strong: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

/* Force Typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: var(--bg-body) !important;
    color: var(--text-main) !important;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    font-family: 'Outfit', sans-serif !important;
}

/* Modern Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Category Bar - Updated to Premium Gradient */
nav.category-icons-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--accent)) !important;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2) !important;
    border-radius: 0 !important;
    /* Reset border radius for full width bar if needed, or keep styles */
}

/* Ensure Text is White on Dark Bar */
nav.category-icons-nav *,
nav.category-icons-nav a,
nav.category-icons-nav .category-name {
    color: #ffffff !important;
}

.category-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.category-icon-item:hover .category-icon {
    background: #ffffff !important;
    transform: scale(1.1) !important;
}

.category-icon-item:hover .category-icon i {
    color: var(--primary-color) !important;
}

/* Hero Section Refinement */
.hero-welcome {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    border-radius: 0 0 50px 50px;
    /* Curve at the bottom */
    margin-bottom: 3rem;
    padding-bottom: 5rem !important;
}

.hero-welcome h1 {
    font-weight: 800 !important;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Card Modernization - Glass / Soft UI */
.card,
.stat-card,
.product-card {
    background: var(--surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

.card:hover,
.stat-card:hover,
.product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-strong) !important;
    border-color: var(--primary-color) !important;
}

/* Specific Style for the Search Card to make it pop */
.quick-filters .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px);
}

/* Input Fields Modernization */
.form-control,
.form-select {
    background-color: #f9fafb !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    /* Indigo border on focus */
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Button Modernization */
.btn {
    border-radius: 12px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover)) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4) !important;
}

.btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color) !important;
}

/* Stat Cards (Business Dashboard) */
.stat-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none !important;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.bg-blue-light {
    background-color: #e0e7ff !important;
    color: #4338ca !important;
}

.bg-red-light {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

.bg-green-light {
    background-color: #d1fae5 !important;
    color: #047857 !important;
}

.bg-orange-light {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
}

/* Product Images */
.product-image-wrapper {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.product-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
    /* Zoom effect */
}

/* Badge Enhancements */
.badge {
    padding: 0.5em 0.8em !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.badge.bg-danger {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border: 1px solid #fda4af;
}

.badge.bg-warning {
    background-color: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fcd34d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        color: transparent;
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

/* Category Scroll Modernization */
.category-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
    /* Firefox */
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.category-scroll-item {
    min-width: 120px;
    background: white;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-scroll-image-wrapper {
    width: 64px;
    height: 64px;
    background: #f3f4f6;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-scroll-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.category-scroll-name {
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    font-size: 0.9rem;
}

/* Products Page Sidebar Enhancement */
.filter-link.active {
    background-color: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary-color) !important;
    border-radius: 8px;
    padding-left: 10px !important;
    font-weight: 700 !important;
}
