/**
 * Click Orinex India - Main Stylesheet
 * Orinex Green Theme
 */

:root {
    --primary-color: #2ECC71;
    --dark-color: #0B2B2B;
    --light-bg: #F6FFF8;
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --success: #27AE60;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    padding-top: 56px !important;
    overflow-x: hidden;
}

/* ============================================
   HEADER & NAVIGATION - COMPLETE REWRITE
   ============================================ */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 0.75rem 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1001 !important;
    width: 100% !important;
    min-height: 56px !important;
}

.navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1200px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 auto !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: #2ECC71 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-right: 2rem !important;
}

.navbar-brand:hover {
    color: #27AE60 !important;
}

.navbar-brand i {
    font-size: 1.75rem !important;
}

.navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 0.375rem 0.75rem !important;
    background: transparent !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    display: block !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25) !important;
    outline: none !important;
}

.navbar-toggler:hover {
    background: rgba(46, 204, 113, 0.1) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23333' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

/* Navbar Collapse */
.navbar-collapse {
    flex-basis: auto !important;
    flex-grow: 0 !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: auto !important;
}

.navbar-nav .nav-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 500 !important;
    margin: 0 0.5rem !important;
    transition: color 0.3s !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap !important;
}

.navbar-nav .nav-link:hover {
    color: #2ECC71 !important;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem !important;
}

.navbar-nav .btn {
    margin-left: 0.5rem !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.navbar-nav .badge {
    margin-left: 0.25rem !important;
    font-size: 0.75rem !important;
}

/* Desktop: Ensure menu is visible and properly aligned */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
        flex-grow: 0 !important;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin-left: auto !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0 0.25rem !important;
    }
    
    .navbar-nav .btn {
        margin-left: 1rem !important;
        padding: 0.5rem 1.5rem !important;
    }
}

/* ================================
   MOBILE MENU FIX (Bootstrap Navbar)
================================ */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem !important;
        margin-right: 1rem !important;
    }
    
    /* Make sure navbar container stays above slider */
    .navbar {
        z-index: 9999 !important;
    }
    
    .navbar-toggler {
        display: block !important;
        order: 2 !important;
    }
    
    /* Menu dropdown panel */
    .navbar-collapse {
        display: none !important;
        width: 100% !important;
        background: #fff !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 12px 14px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        border-radius: 0 0 12px 12px !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
    }
    
    /* When toggled open */
    .navbar-collapse.show {
        display: block !important;
    }
    
    /* Menu items vertical */
    .navbar-nav {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-left: 0 !important;
    }
    
    .navbar-nav .nav-item {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-link {
        width: 100% !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        border-radius: 10px !important;
    }
    
    .navbar-nav .btn {
        width: 100% !important;
        margin: 8px 0 0 0 !important;
        text-align: center !important;
    }
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #27AE60;
    border-color: #27AE60;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section .carousel-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-section .carousel-indicators {
    bottom: 30px;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid var(--white);
}

.hero-section .carousel-indicators button.active {
    background-color: var(--white);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    opacity: 0.8;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.card-body {
    padding: 1.5rem;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light-bg);
}

.product-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.product-mrp {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-dp {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.product-bv {
    color: var(--info);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.75rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ============================================
   USER PANEL DASHBOARD FIXES
   ============================================ */

/* FIX 1: TOP 4 STATS CARDS GRID */
.user-dashboard .row.mb-4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.user-dashboard .row.mb-4 > [class*="col-"] {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* FIX 2: MAKE DASHBOARD CARDS HORIZONTAL */
.dashboard-card {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 18px !important;
    height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    transition: all 0.2s ease !important;
    margin-bottom: 0 !important;
}

.dashboard-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Icon box fix */
.dashboard-stat-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #2ECC71, #27AE60) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25) !important;
    margin-bottom: 0 !important;
}

/* Text alignment fix */
.dashboard-stat-content {
    flex: 1 !important;
    text-align: right !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.dashboard-stat-content a {
    text-decoration: none;
    color: var(--primary-color) !important;
    font-weight: 500;
}

.dashboard-stat-content a:hover {
    text-decoration: underline;
}

/* FIX 3: ₹0.00 OVERLAP / BREAK FIX */
.dashboard-stat-value {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px !important;
}

.dashboard-stat-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 !important;
}

/* Legacy support for old dashboard-stat class */
.dashboard-stat {
    text-align: center;
    padding: 1.5rem;
}

/* Tables */
.table {
    background: var(--white);
}

.table thead {
    background-color: var(--light-bg);
}

.table thead th {
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Utilities */
.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* ============================================
   USER PANEL RESPONSIVE FIXES
   ============================================ */

/* Tablet: 2 columns for cards */
@media (max-width: 991px) {
    .user-dashboard .row.mb-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 575px) {
    .user-dashboard .row.mb-4 {
        grid-template-columns: 1fr !important;
    }

    .dashboard-card {
        height: auto !important;
        padding: 14px !important;
    }

    .dashboard-stat-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }

    .dashboard-stat-value {
        font-size: 22px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .product-image {
        height: 200px;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
    padding: 1rem 1.5rem;
}

/* ============================================
   ADMIN PANEL LAYOUT - FIXED & RESPONSIVE
   ============================================ */

/* Body Layout - Flexbox for proper structure */
body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container Fluid - Remove default padding for admin panel */
body > .container-fluid {
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex: 1;
    margin-top: 56px; /* Navbar height */
}

body > .container-fluid > .row {
    width: 100%;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
}

/* ============================================
   SIDEBAR - FIXED WIDTH & FULL HEIGHT
   ============================================ */
.sidebar {
    background: var(--dark-color);
    width: 240px;
    height: calc(100vh - 56px); /* Full height minus navbar */
    position: fixed;
    left: 0;
    top: 56px; /* Below navbar */
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    color: var(--white);
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    /* Remove from grid flow */
    flex: 0 0 auto;
    /* Custom scrollbar for sidebar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Sidebar scrollbar styling for WebKit browsers */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Sidebar visible state */
.sidebar.show {
    transform: translateX(0);
}

/* Sidebar Header (Mobile only) */
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h5 {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-header .btn {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.375rem 0.75rem;
    min-width: auto;
}

.sidebar-header .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Sidebar Navigation */
.sidebar nav {
    padding: 1rem 0;
}

/* Menu Items - Proper Alignment */
.sidebar .nav-link {
    color: var(--white);
    padding: 0.75rem 1.25rem;
    margin: 0.125rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

/* Sidebar Brand (if used) */
.sidebar-brand {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem 1.25rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    position: fixed;
    top: 56px; /* Below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    margin-left: 240px;
    padding: 1.5rem 2rem;
    width: calc(100% - 240px);
    min-height: calc(100vh - 56px);
    background-color: var(--light-bg);
    transition: margin-left 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Prevent content overflow */
.main-content > * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Alert Container */
.alert-container {
    margin-bottom: 1.5rem;
}

/* ============================================
   DESKTOP: SIDEBAR ALWAYS VISIBLE
   ============================================ */
@media (min-width: 992px) {
    .sidebar {
        position: fixed !important;
        transform: translateX(0) !important;
        width: 240px !important;
        left: 0 !important;
    }
    
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .sidebar-header {
        display: none !important;
    }
    
    .main-content {
        margin-left: 240px !important;
        width: calc(100% - 240px) !important;
    }
    
    body > .container-fluid {
        margin-top: 56px;
    }
}

/* ============================================
   TABLET: SIDEBAR HIDDEN (Same as mobile)
   ============================================ */
/* Tablet now uses same mobile behavior - sidebar hidden by default */

/* ============================================
   MOBILE & TABLET: SIDEBAR HIDDEN BY DEFAULT
   ============================================ */
@media (max-width: 991px) {
    body > .container-fluid {
        margin-top: 56px;
    }
    
    /* FORCE SIDEBAR TO BE HIDDEN ON MOBILE - OVERRIDE EVERYTHING */
    .sidebar {
        width: 240px !important;
        transform: translateX(-100%) !important;
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        z-index: 1000 !important;
        transition: transform 0.3s ease-in-out !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* Remove Bootstrap grid interference */
        flex: 0 0 auto !important;
        max-width: none !important;
    }
    
    /* WHEN SHOW CLASS IS ADDED, SLIDE IN */
    .sidebar.show {
        transform: translateX(0) !important;
    }
    
    /* Remove Bootstrap column classes on mobile */
    .sidebar[class*="col-"] {
        flex: 0 0 auto !important;
        max-width: 240px !important;
    }
    
    .sidebar-header {
        display: flex !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem;
    }
    
    body > .container-fluid > .row {
        flex-wrap: wrap;
    }
    
    /* Ensure overlay is visible on mobile/tablet */
    .sidebar-overlay {
        display: block !important;
        z-index: 999 !important;
        opacity: 0;
        pointer-events: none;
    }
    
    .sidebar-overlay.show {
        display: block !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }
}

/* Extra small screens */
@media (max-width: 575px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .main-content {
        padding: 0.75rem;
    }
}

/* ============================================
   DASHBOARD CARDS - GRID LAYOUT
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.dashboard-card-title {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* Dashboard Stat Cards (Existing Structure) */
.dashboard-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.dashboard-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.dashboard-stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Dashboard Grid */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .dashboard-stat-icon {
        font-size: 2rem;
    }
    
    .dashboard-stat-value {
        font-size: 1.75rem;
    }
}

/* Wallet Cards */
.wallet-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #27AE60 100%);
    color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.wallet-card h3 {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.wallet-card .amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Tree View */
.tree-view {
    font-family: 'Courier New', monospace;
}

.tree-node {
    padding: 0.5rem;
    margin: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--white);
    display: inline-block;
}

/* About section – two-image collage + badge + dotted strip */
.ayur-about-collage {
    position: relative;
    max-width: 561px;
}
.ayur-about-collage .ayur-about-main {
    display: block;
    width: 100%;
    max-width: 561px;
    height: auto;
    border-radius: 24px 24px 8px 24px;
    object-fit: cover;
}
.ayur-about-collage .ayur-about-secondary {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42%;
    max-width: 240px;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.ayur-about-dots {
    position: absolute;
    left: -12px;
    top: 20px;
    bottom: 20px;
    width: 14px;
    background: repeating-linear-gradient(
        to bottom,
        var(--ayur-primary-color, #CD8973) 0,
        var(--ayur-primary-color, #CD8973) 4px,
        transparent 4px,
        transparent 12px
    );
    opacity: 0.6;
    border-radius: 4px;
    z-index: 1;
}
.ayur-about-collage .ayur-about-exp {
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 3px,
        rgba(205,137,115,0.2) 3px,
        rgba(205,137,115,0.2) 5px
    );
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 2;
}
.ayur-about-head .ayur-about-highlight {
    color: var(--ayur-primary-color, #CD8973);
    font-weight: 700;
}

/* Why section – 2x2 grid, rounded cards, peach icon circles */
.ayur-why-sec .ayur-why-secbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 100%;
}
.ayur-why-sec .ayur-why-box {
    max-width: none;
    padding: 32px 24px;
    background-color: #fff;
    border: 1px solid rgba(228, 183, 165, 0.35);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ayur-why-sec .ayur-why-box:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}
.ayur-why-sec .ayur-why-boxicon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #E4B7A5;
    color: #fff;
    box-shadow: 4px 4px 14px rgba(205, 137, 115, 0.3);
    transition: transform 0.3s ease;
}
.ayur-why-sec .ayur-why-boxicon::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #CD8973;
    opacity: 0.85;
    z-index: 0;
}
.ayur-why-sec .ayur-why-boxicon img,
.ayur-why-sec .ayur-why-boxicon span,
.ayur-why-sec .ayur-why-boxicon i {
    position: relative;
    z-index: 1;
}
.ayur-why-sec .ayur-why-boxicon img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.ayur-why-sec .ayur-why-boxicon i {
    color: #fff !important;
    font-size: 1.75rem;
}
.ayur-why-sec .ayur-why-boxtext h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.ayur-why-sec .ayur-why-boxtext p {
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
.ayur-why-sec .ayur-why-box:hover .ayur-why-boxicon {
    transform: none;
}

@media (max-width: 767px) {
    .ayur-why-sec .ayur-why-secbox {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Why section benefit list tick icon (inline SVG) */
.ayur-why-textheading ul li .ayur-why-tick {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    line-height: 1;
}

/* Breadcrumb: override demo dummyimage with theme color */
.ayur-bread-section {
    background-image: none;
    background-color: var(--ayur-primary-color, #CD8973);
}

/* Inner pages: same warm background as homepage for visibility/consistency */
.ayur-page-bg {
    background-color: var(--ayur-primary-lightcolor, #F6F1ED);
    min-height: 60vh;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Header logo: scale to device size on small screens */
.ayur-menu-logo a {
    display: inline-block;
    max-width: 100%;
}
.ayur-menu-logo img {
    max-width: 7vw;
    height: auto;
    display: block;
    object-fit: contain;
}
.ayur-menu-logo span {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 991px) {
    .ayur-menu-logo img {
        max-height: 42px;
        width: auto;
    }
    .ayur-menu-logo span {
        font-size: 1.25rem !important;
    }
}
@media (max-width: 575px) {
    .ayur-menu-logo img {
        max-height: 36px;
    }
    .ayur-menu-logo span {
        font-size: 1.1rem !important;
    }
}

/* Nav: Login / Sign up (and Dashboard / Logout) visible only in mobile menu */
@media (min-width: 992px) {
    .ayur-nav-menu .ayur-nav-mobile-only {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .ayur-nav-menu .ayur-nav-mobile-only {
        display: block !important;
    }
}

/* Footer logosec: social icons visible (inline SVG, cream on dark) */
.ayur-footer-logosec .ayur-social-link li a.ayur-social-icon {
    color: var(--ayur-footertext-color, #E4D4CF);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
}
.ayur-footer-logosec .ayur-social-link li a.ayur-social-icon:hover {
    color: var(--ayur-primary-color, #CD8973);
    transform: translateY(-5px);
}
.ayur-footer-logosec .ayur-social-link li a.ayur-social-icon i {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ayur-footer-logosec .ayur-social-link li a.ayur-social-icon svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    display: block;
    flex-shrink: 0;
    fill: currentColor;
}
.ayur-footer-logosec .ayur-social-link li a.ayur-social-icon svg path {
    fill: currentColor;
}

/* Footer logo: same max-width as header */
.ayur-footer-logo img {
    max-width: 7vw;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
