/* public/css/style.css */
:root {
            --brand-color: {{ $setting->brand_color ?? '#0d6efd' }};
        }
body { 
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', sans-serif; 
    background-color: #f8fafc; /* Lighter premium background */
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    padding-top: 0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
.sticky-top { top: 90px !important; z-index: 1000; }
/* Global UI Elements */
.text-brand { color: var(--brand-color) !important; }
.bg-brand { background-color: var(--brand-color) !important; }
.btn-brand { background-color: var(--brand-color); color: white; border: none; }
.btn-brand:hover { filter: brightness(0.9); color: white; }

/* Navbar & Search */
.navbar-brand img { max-height: 40px; }
.search-bar-custom { max-width: 700px; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.15); border-radius: 50px; overflow: hidden; }
.search-bar-custom input { border: none; padding: 15px 25px; font-size: 1.1rem; }
.search-bar-custom button { border-radius: 0 50px 50px 0; padding: 15px 30px; font-weight: bold; }

/* Hover Effects */
.card-hover:hover { transform: translateY(-5px); transition: 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }

/* Footer */
footer { background-color: #1a1a1a; color: #d1d1d1; padding: 50px 0 20px; }
footer a { color: #d1d1d1; text-decoration: none; transition: 0.3s; }
footer a:hover { color: #fff; text-decoration: underline; }

/* 🌟 Layout Fixes for Sticky Navbar */
body {
    padding-top: 0 !important; /* Reset any body padding */
}
/* Ensure the first section of any page pushes down below the sticky navbar */
section:first-of-type {
    position: relative;
    z-index: 1;
}
/* 🌟 Global Responsive Image Fix for Summernote Content */
/* This ensures that any large image inside a content box never breaks the layout */
.content-box img, 
.blog-content img, 
.page-content img,
.summernote-content img {
    max-width: 100% !important; /* Forces image to fit within the container */
    height: auto !important; /* Maintains aspect ratio */
    object-fit: contain;
    border-radius: 8px; /* Adds a nice curve to user-uploaded images */
    margin: 15px 0; /* Adds breathing room around the image */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Premium shadow effect */
}

/* Ensure tables inside Summernote are also responsive */
.content-box table, 
.blog-content table, 
.page-content table {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* 🌟 Global Utility Classes */
.badge-soft {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    font-weight: 700;
}

/* 🌟 Dark Mode Overrides */
[data-bs-theme="dark"] body {
    background-color: #0f172a !important;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .card-premium {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.05) !important;
}
[data-bs-theme="dark"] .bg-light-blue,
[data-bs-theme="dark"] .bg-light {
    background-color: #0b1120 !important;
    border-color: rgba(255,255,255,0.05) !important;
}
[data-bs-theme="dark"] .text-dark-blue,
[data-bs-theme="dark"] .text-dark {
    color: #f8fafc !important;
}
[data-bs-theme="dark"] .marketing-navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom-color: rgba(255,255,255,0.05);
}
[data-bs-theme="dark"] .marketing-hero {
    background-color: #0f172a !important;
}
[data-bs-theme="dark"] .badge-soft {
    background-color: rgba(13, 110, 253, 0.2) !important;
    color: #60a5fa !important;
}
[data-bs-theme="dark"] .btn-outline-dark {
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
[data-bs-theme="dark"] .btn-outline-dark:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* 🌟 Marketplace & Product Page Dark Mode Overrides */
[data-bs-theme="dark"] .product-header-mkt {
    background-color: #0b1120 !important;
    border-bottom-color: rgba(255,255,255,0.05) !important;
}
[data-bs-theme="dark"] .filter-sidebar,
[data-bs-theme="dark"] .checkout-box {
    background-color: #1e293b !important;
    border-color: rgba(255,255,255,0.05) !important;
}
[data-bs-theme="dark"] .custom-select-mkt {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] .cat-list-mkt a {
    color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .cat-list-mkt a:hover,
[data-bs-theme="dark"] .cat-list-mkt a.active {
    background-color: rgba(13, 110, 253, 0.15) !important;
    color: #60a5fa !important;
}
[data-bs-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

/* 🌟 Wavy & Premium UI Overhaul Styles */
.wavy-bg {
    position: relative;
    background: linear-gradient(135deg, var(--brand-color) 0%, #084298 100%);
    color: white;
    padding-bottom: 80px; /* Space for the wave */
}
.wavy-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(1px); /* Prevent 1px gap */
}
.wavy-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}
.wavy-divider .shape-fill {
    fill: #f8fafc; /* Match body bg */
}
[data-bs-theme="dark"] .wavy-divider .shape-fill {
    fill: #0f172a; /* Match dark mode body bg */
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05) !important;
    border-radius: 24px !important;
}
[data-bs-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}
.glass-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
[data-bs-theme="dark"] .glass-header {
    background: rgba(15, 23, 42, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Curved Elements */
.curved-card {
    border-radius: 24px !important;
    overflow: hidden;
}
.curved-img {
    border-radius: 24px;
}

/* Animations */
.float-anim {
    animation: floatAnim 4s ease-in-out infinite;
}
@keyframes floatAnim {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--brand-color), #084298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
[data-bs-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

