/* 
* ASHOKA Retail Management System
* Custom CSS Styles
*/

/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #f8f9fa;
    --accent-color: #e74c3c;
    --light-color: #ffffff;
    --text-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --border-color: #dee2e6;
}

/* Simple modal styling - no positioning conflicts */
.modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
}

/* Fix: Ensure modals appear ABOVE the sticky navbar (z-index: 1100) */
.modal-backdrop {
    z-index: 1200 !important;
}
.modal {
    z-index: 1250 !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

/* ============================================================================
   Modern Light Theme (2026) - scoped to .theme-modern on <body>
   - Premium “bento” dashboard feel
   - Subtle depth, crisp borders, better typography, smoother interactions
   ========================================================================== */

.theme-modern {
    --app-bg: #f6f7fb;
    --app-surface: #ffffff;
    --app-surface-2: #fbfcff;
    --app-text: #0f172a; /* slate-900 */
    --app-muted: #64748b; /* slate-500 */
    --app-border: rgba(15, 23, 42, 0.10);
    --app-border-2: rgba(15, 23, 42, 0.14);
    --app-shadow: 0 18px 50px rgba(2, 8, 23, 0.12);
    --app-shadow-sm: 0 8px 22px rgba(2, 8, 23, 0.08);
    --app-radius: 14px;
    --app-radius-sm: 10px;
    --app-accent: #2563eb; /* blue-600 */
    --app-accent-2: #7c3aed; /* violet-600 */
    --app-accent-3: #06b6d4; /* cyan-500 */
    --app-focus: 0 0 0 0.25rem rgba(37, 99, 235, 0.18);

    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background:
        radial-gradient(900px 520px at 18% -12%, rgba(37, 99, 235, 0.22), transparent 58%),
        radial-gradient(760px 520px at 92% -8%, rgba(124, 58, 237, 0.18), transparent 62%),
        radial-gradient(620px 420px at 70% 12%, rgba(6, 182, 212, 0.14), transparent 62%),
        linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(246,247,251,0.92) 28%, var(--app-bg) 100%);
    color: var(--app-text);
}

.theme-modern body {
    background: transparent;
}

.theme-modern .container-fluid.my-4 {
    padding-top: 0.25rem;
}

/* Top navbar */
.theme-modern .app-navbar {
    border-bottom: 1px solid var(--app-border);
    box-shadow: 0 10px 30px rgba(2, 8, 23, 0.06);
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: saturate(180%) blur(14px);
}

.theme-modern .navbar-brand {
    letter-spacing: -0.02em;
}

.theme-modern .navbar .nav-link {
    color: rgba(15, 23, 42, 0.72);
    font-weight: 500;
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.theme-modern .navbar .nav-link:hover {
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.92);
}

.theme-modern .navbar .nav-link.active {
    background: rgba(37, 99, 235, 0.10);
    color: var(--app-accent);
}

.theme-modern .navbar .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
}

/* Franchise selector chip in navbar (brand admin) */
.theme-modern #franchiseDropdownContainer .nav-link.dropdown-toggle {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
}

.theme-modern #franchiseDropdownContainer .nav-link.dropdown-toggle:hover {
    background: rgba(15, 23, 42, 0.07);
    border-color: rgba(15, 23, 42, 0.12);
}

/* Page title area */
.theme-modern h1.h2 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.theme-modern .page-actions .btn {
    border-radius: 12px;
}

/* Cards */
.theme-modern .card {
    border-radius: var(--app-radius);
    border: 1px solid rgba(15, 23, 42, 0.10);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(251,252,255,0.92));
    box-shadow: var(--app-shadow-sm);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    position: relative;
    overflow: hidden;
}

.theme-modern .card:hover {
    transform: translateY(-2px);
    border-color: var(--app-border-2);
    box-shadow: var(--app-shadow);
}

.theme-modern .card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 180px at 20% 0%, rgba(37, 99, 235, 0.08), transparent 55%);
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.theme-modern .card:hover::after {
    opacity: 1;
}

.theme-modern .card-header {
    background: transparent;
    border-bottom: 1px solid var(--app-border);
}

.theme-modern .stat-card {
    border-left-width: 0;
    position: relative;
    overflow: hidden;
}

.theme-modern .stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 120px at 20% 0%, rgba(37, 99, 235, 0.10), transparent 60%);
    pointer-events: none;
}

.theme-modern .stat-card.products::before { background: radial-gradient(400px 120px at 20% 0%, rgba(14, 165, 233, 0.14), transparent 60%); }
.theme-modern .stat-card.customers::before { background: radial-gradient(400px 120px at 20% 0%, rgba(34, 197, 94, 0.14), transparent 60%); }
.theme-modern .stat-card.sales::before { background: radial-gradient(400px 120px at 20% 0%, rgba(245, 158, 11, 0.16), transparent 60%); }
.theme-modern .stat-card.revenue::before { background: radial-gradient(400px 120px at 20% 0%, rgba(37, 99, 235, 0.14), transparent 60%); }

.theme-modern .stat-card .card-body {
    position: relative;
}

/* Buttons */
.theme-modern .btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.theme-modern .btn:active {
    transform: translateY(1px);
}

.theme-modern .btn-primary {
    background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2), var(--app-accent-3));
    background-size: 140% 140%;
    border-color: transparent;
    box-shadow:
        0 16px 32px rgba(37, 99, 235, 0.22),
        0 10px 18px rgba(124, 58, 237, 0.12);
}

.theme-modern .btn-primary:hover {
    filter: brightness(1.02);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.theme-modern .btn-outline-secondary,
.theme-modern .btn-outline-primary,
.theme-modern .btn-outline-warning {
    backdrop-filter: blur(8px);
}

/* “Bento” glow ring for featured cards (opt-in class) */
.theme-modern .card.is-featured {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.14);
}

.theme-modern .card.is-featured::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(124, 58, 237, 0.55), rgba(6, 182, 212, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}

.theme-modern .btn-outline-primary {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--app-accent);
}

.theme-modern .btn-outline-primary:hover {
    background: rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--app-accent);
}

/* Inputs */
.theme-modern .form-control,
.theme-modern .form-select {
    border-radius: 12px;
    border: 1px solid var(--app-border);
}

.theme-modern .form-control:focus,
.theme-modern .form-select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: var(--app-focus);
}

/* Tables */
.theme-modern .table {
    color: var(--app-text);
}

.theme-modern .table thead th {
    background: rgba(15, 23, 42, 0.04);
}

/* Footer */
.theme-modern .footer {
    border-top: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
}

/* Navbar Styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
}

/* Sidebar Styling */
.list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s;
    background-color: var(--light-color);
    color: var(--text-color);
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.list-group-item:hover:not(.active) {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Card Styling */
.card {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: var(--light-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Dashboard Cards */
.stat-card {
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    background-color: var(--light-color);
}

.stat-card.products {
    border-left-color: var(--info-color);
}

.stat-card.customers {
    border-left-color: var(--success-color);
}

.stat-card.sales {
    border-left-color: var(--warning-color);
}

.stat-card.revenue {
    border-left-color: var(--danger-color);
}

/* Table Styling */
.table thead th {
    background-color: var(--secondary-color);
    border-top: none;
    font-weight: 600;
    color: var(--text-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: #000 !important;
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--secondary-color) !important;
    color: var(--text-color) !important;
    border-color: var(--border-color) !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

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

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

/* Footer */
.footer {
    margin-top: auto;
    background-color: var(--secondary-color) !important;
    color: var(--text-color);
}

/* Animation */
.fade-in {
    animation: fadeIn ease 0.5s;
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

/* Custom Alert Styling */
.alert {
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Mobile-optimized containers */
    .container-fluid {
        padding: 10px !important;
    }
    
    /* Stack all columns */
    .row > [class*="col-"] {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Larger form elements */
    .form-control,
    .form-select {
        height: 44px;
        font-size: 16px;
        padding: 12px;
    }
    
    /* Mobile-optimized spacing */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Larger text for mobile */
    body {
        font-size: 16px;
    }
    
    /* Mobile table optimizations */
    .table-responsive {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px 4px;
        min-width: 80px;
    }
    
    /* Hide less important columns on mobile */
    .table th:nth-child(3),
    .table td:nth-child(3),
    .table th:nth-child(4),
    .table td:nth-child(4) {
        display: none;
    }
    
    /* Larger touch targets for table buttons */
    .table .btn {
        padding: 8px 12px;
        margin: 2px;
        min-height: 36px;
    }
    
    /* Mobile dashboard optimizations */
    .stat-card {
        text-align: center;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.9rem;
    }
    
    /* Mobile sales interface */
    .sales-interface {
        padding: 10px;
    }
    
    .invoice-preview {
        font-size: 14px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    .product-entry {
        margin-bottom: 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-nav .nav-link {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    /* Mobile card improvements */
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
}

/* Additional mobile optimizations for very small screens */
@media (max-width: 480px) {
    /* Even more compact layout */
    .container-fluid {
        padding: 5px;
    }
    
    /* Smaller cards for very small screens */
    .card {
        margin-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    /* Compact buttons */
    .btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 40px;
    }
    
    /* Compact form elements */
    .form-control,
    .form-select {
        height: 40px;
        font-size: 14px;
        padding: 10px;
    }
    
    /* Compact tables */
    .table th,
    .table td {
        padding: 6px 3px;
        font-size: 12px;
    }
    
    /* Hide more columns on very small screens */
    .table th:nth-child(2),
    .table td:nth-child(2),
    .table th:nth-child(5),
    .table td:nth-child(5) {
        display: none;
    }
    
    /* Compact navigation */
    .navbar-nav .nav-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Compact stats */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.8rem;
    }
}

/* Full-width layout adjustments */
.container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
    max-width: 100%;
}

/* Sales page specific */
.new-sale-container .row {
    margin-left: -5px;
    margin-right: -5px;
}

.new-sale-container .col, 
.new-sale-container [class*="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

/* Compact tables for full-width layouts */
.table-sm th, 
.table-sm td {
    padding: 0.3rem 0.5rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        padding: 0;
        margin: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
}

/* ============================================================================
   Modern Theme FINAL OVERRIDES (must be last in file)
   Ensures theme styles win over legacy global rules below.
   ========================================================================== */

.theme-modern {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.theme-modern a {
    color: var(--app-accent);
}

.theme-modern a:hover {
    color: color-mix(in srgb, var(--app-accent) 85%, #000);
}

.theme-modern .text-muted {
    color: rgba(15, 23, 42, 0.58) !important;
}

.theme-modern .bg-light {
    background-color: rgba(255, 255, 255, 0.62) !important;
}

.theme-modern .border,
.theme-modern .border-top,
.theme-modern .border-bottom,
.theme-modern .border-start,
.theme-modern .border-end {
    border-color: rgba(15, 23, 42, 0.10) !important;
}

/* Buttons */
.theme-modern .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

.theme-modern .btn-lg {
    padding: 0.8rem 1.1rem;
}

.theme-modern .btn-primary {
    background: linear-gradient(135deg, var(--app-accent), var(--app-accent-2), var(--app-accent-3));
    background-size: 140% 140%;
    border-color: transparent;
    box-shadow:
        0 16px 32px rgba(37, 99, 235, 0.22),
        0 10px 18px rgba(124, 58, 237, 0.12);
}

.theme-modern .btn-primary:hover {
    filter: brightness(1.02);
}

.theme-modern .btn-outline-secondary,
.theme-modern .btn-outline-primary,
.theme-modern .btn-outline-warning {
    border-radius: 12px;
}

/* Inputs + input groups */
.theme-modern .form-control,
.theme-modern .form-select,
.theme-modern .input-group-text {
    border-radius: 12px;
    border-color: rgba(15, 23, 42, 0.12);
}

.theme-modern .input-group-text {
    color: rgba(15, 23, 42, 0.65);
}

.theme-modern .form-control::placeholder {
    color: rgba(100, 116, 139, 0.85);
}

.theme-modern .form-control:focus,
.theme-modern .form-select:focus {
    border-color: rgba(37, 99, 235, 0.60);
    box-shadow: var(--app-focus);
}

/* Cards */
.theme-modern .card {
    border-radius: var(--app-radius);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: var(--app-shadow-sm);
}

.theme-modern .card:hover {
    box-shadow: var(--app-shadow);
}

.theme-modern .card-header {
    border-bottom-color: rgba(15, 23, 42, 0.10);
}

/* Alerts */
.theme-modern .alert {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(2, 8, 23, 0.08);
}

/* Badges */
.theme-modern .badge {
    border-radius: 999px;
    font-weight: 600;
}

/* Dropdown items */
.theme-modern .dropdown-item {
    border-radius: 10px;
}

.theme-modern .dropdown-item:hover {
    background: rgba(15, 23, 42, 0.06);
}

/* Tables + DataTables */
.theme-modern .table thead th {
    background: rgba(15, 23, 42, 0.04) !important;
}

.theme-modern .table-hover tbody tr:hover {
    background-color: rgba(37, 99, 235, 0.06) !important;
}

.theme-modern .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(37, 99, 235, 0.14) !important;
    color: var(--app-text) !important;
    border-color: rgba(37, 99, 235, 0.22) !important;
    border-radius: 10px;
}

.theme-modern .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(15, 23, 42, 0.06) !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
}

/* ============================================================================
   Fashion Glass Theme (matches provided video)
   - Rounded app frame
   - Frosted glass cards
   - Pill nav
   - Editorial headings
   ========================================================================== */

.theme-fashion {
    --fx-bg: #e9ecef;
    --fx-text: #0b1220;
    --fx-muted: rgba(11, 18, 32, 0.58);
    --fx-muted-2: rgba(11, 18, 32, 0.44);
    --fx-border: rgba(16, 24, 40, 0.10);
    --fx-card: rgba(255, 255, 255, 0.62);
    --fx-card-2: rgba(255, 255, 255, 0.44);
    --fx-shadow: 0 18px 60px rgba(2, 8, 23, 0.18);
    --fx-shadow-sm: 0 10px 26px rgba(2, 8, 23, 0.12);
    --fx-radius: 26px;
    --fx-radius-sm: 18px;
    --fx-accent: #f7df4c; /* highlighted CTA like screenshot */
    --fx-accent-text: #111827;

    font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #dfe3e6;
    color: var(--fx-text);
    min-height: 100vh;
}

.theme-fashion {
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

.theme-fashion h1,
.theme-fashion h2,
.theme-fashion h3,
.theme-fashion .display-font {
    font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.theme-fashion .text-muted {
    color: var(--fx-muted) !important;
}

.theme-fashion small,
.theme-fashion .small {
    color: var(--fx-muted-2);
}

/* Icons (modern thin look) */
.theme-fashion .navbar .nav-link i,
.theme-fashion .dropdown-item i {
    opacity: 0.78;
    font-size: 0.95em;
}

.theme-fashion .navbar .nav-link.active i {
    opacity: 0.95;
}

.theme-fashion .dropdown-item i {
    width: 1.25rem;
    text-align: center;
}

/* Rounded “app frame” like the video */
.theme-fashion .app-frame {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    border: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.20));
    box-shadow: var(--fx-shadow);
    overflow: visible;
    position: relative;
}

/* Big blurred “blob” like in the screenshot */
.theme-fashion .app-frame::before {
    content: "";
    position: absolute;
    inset: -60px;
    background:
        radial-gradient(520px 380px at 62% 28%, rgba(255, 200, 80, 0.85), rgba(255, 200, 80, 0.00) 65%),
        radial-gradient(520px 380px at 78% 58%, rgba(120, 110, 255, 0.35), rgba(120, 110, 255, 0.00) 68%),
        radial-gradient(520px 380px at 28% 72%, rgba(80, 210, 180, 0.28), rgba(80, 210, 180, 0.00) 70%),
        radial-gradient(520px 380px at 18% 38%, rgba(255, 120, 180, 0.18), rgba(255, 120, 180, 0.00) 70%);
    filter: blur(26px) saturate(120%);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.theme-fashion .app-frame > * {
    position: relative;
    z-index: 1;
}

/* Page padding inside full screen */
.theme-fashion .container-fluid.mt-3,
.theme-fashion .container-fluid.my-4,
.theme-fashion .footer .container-fluid {
    padding-left: 28px;
    padding-right: 28px;
}

@media (max-width: 768px) {
    .theme-fashion .container-fluid.mt-3,
    .theme-fashion .container-fluid.my-4,
    .theme-fashion .footer .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* Navbar -> pill-ish + subtle frosted */
.theme-fashion .app-navbar {
    background: rgba(255,255,255,0.28) !important;
    border-bottom: none;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow: none;
    position: relative;
    isolation: isolate;
    z-index: 1100;
}

/* Larger logo in navbar */
.theme-fashion .navbar-brand img {
    height: 56px;
    width: auto;
}

.theme-fashion .dropdown-menu {
    z-index: 9999;
}

.theme-fashion .dropdown-menu.dropdown-menu-end {
    z-index: 9999;
}

.theme-fashion .app-navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.08));
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.theme-fashion .app-navbar > * {
    position: relative;
    z-index: 1;
}

.theme-fashion .navbar .navbar-nav {
    gap: 0.25rem;
}

.theme-fashion .app-nav-center {
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    gap: 0.55rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    width: max-content;
}

.theme-fashion .app-nav-center::before,
.theme-fashion .app-nav-center::after {
    content: none;
}

@media (max-width: 991.98px) {
    .theme-fashion .app-nav-center {
        position: static;
        left: auto;
        transform: none;
        width: auto;
    }
}

.theme-fashion .app-nav-icon {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 0.85rem;
    position: relative;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.60);
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.14);
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.theme-fashion .app-nav-icon i {
    font-size: 1.05rem;
}

.theme-fashion .app-nav-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.06));
    opacity: 0.55;
    pointer-events: none;
}

.theme-fashion .app-nav-label {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: rgba(11, 18, 32, 0.86);
    max-width: 10rem;
    opacity: 1;
    transform: translateX(0);
    overflow: hidden;
    transition: max-width 180ms ease, opacity 160ms ease, transform 160ms ease;
}

.theme-fashion .app-nav-icon:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.28);
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 20px 55px rgba(2, 8, 23, 0.18);
}

.theme-fashion .app-nav-icon:hover .app-nav-label {
    max-width: 10rem;
    opacity: 1;
    transform: translateX(0);
}

.theme-fashion .app-nav-icon.active {
    background: rgba(255,255,255,0.36);
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 22px 60px rgba(2, 8, 23, 0.20);
}

.theme-fashion .app-nav-icon.active .app-nav-label {
    max-width: 10rem;
    opacity: 1;
    transform: translateX(0);
}

/* On small screens keep icon-only to preserve space */
@media (max-width: 768px) {
    .theme-fashion .app-nav-label {
        max-width: 0;
        opacity: 0;
        transform: translateX(-4px);
    }

    .theme-fashion .app-nav-icon.active .app-nav-label {
        max-width: 10rem;
        opacity: 1;
        transform: translateX(0);
    }
}

.theme-fashion .app-chip {
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(16, 24, 40, 0.10);
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    backdrop-filter: blur(18px) saturate(180%);
}

.theme-fashion .app-nav-right .nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    opacity: 0.55;
}

/* Tooltips removed: we use inline labels instead */

.theme-fashion .navbar .nav-link {
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-weight: 700;
    color: rgba(16, 24, 40, 0.70);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.theme-fashion .navbar .nav-link:hover {
    background: rgba(255,255,255,0.60);
    color: rgba(16, 24, 40, 0.92);
    transform: translateY(-1px);
}

.theme-fashion .navbar .nav-link.active {
    background: rgba(255,255,255,0.78);
    color: rgba(16, 24, 40, 0.92);
}

/* Ensure glass tabs are not overridden by generic nav-link rules */
.theme-fashion .navbar .nav-link.app-nav-icon {
    padding: 0 0.85rem !important;
    height: 44px;
    background: linear-gradient(180deg, rgba(255,255,255,0.40), rgba(255,255,255,0.18)) !important;
    border: 1px solid rgba(255, 255, 255, 0.40) !important;
    box-shadow: 0 12px 26px rgba(2, 8, 23, 0.10) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transform: none;
}

.theme-fashion .navbar .nav-link.app-nav-icon:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.30)) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.14) !important;
    transform: translateY(-1px);
}

.theme-fashion .navbar .nav-link.app-nav-icon.active {
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.36)) !important;
    border-color: rgba(255, 255, 255, 0.78) !important;
    box-shadow: 0 18px 40px rgba(2, 8, 23, 0.16) !important;
}

/* Cards -> frosted glass */
.theme-fashion .card {
    border-radius: var(--fx-radius-sm);
    border: 1px solid var(--fx-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(255,255,255,0.38));
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--fx-shadow-sm);
    position: relative;
    overflow: hidden;
}

.theme-fashion .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.10));
    opacity: 0.7;
    pointer-events: none;
}

.theme-fashion .card > * {
    position: relative;
}

.theme-fashion .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fx-shadow);
}

.theme-fashion .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
}

/* Shared dashboard components (OpsPulse-style) */
.theme-fashion .glass-panel {
    border-radius: var(--fx-radius);
}

.theme-fashion .glass-kpi {
    border-radius: var(--fx-radius);
    min-height: 118px;
}

.theme-fashion .glass-kpi .h4 {
    letter-spacing: -0.02em;
}

.theme-fashion .glass-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.22));
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 14px 30px rgba(2, 8, 23, 0.10);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.theme-fashion .glass-kpi-icon i {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Buttons */
.theme-fashion .btn {
    border-radius: 999px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.theme-fashion .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.05));
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
}

.theme-fashion .btn:hover::before {
    opacity: 0.75;
}

.theme-fashion .btn:active {
    transform: translateY(1px);
}

.theme-fashion .btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(255, 223, 76, 0.22);
}

.theme-fashion .btn-outline-primary,
.theme-fashion .btn-outline-secondary,
.theme-fashion .btn-outline-success,
.theme-fashion .btn-outline-info,
.theme-fashion .btn-outline-warning,
.theme-fashion .btn-outline-danger {
    background: linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.30));
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(16, 24, 40, 0.88);
    box-shadow: 0 12px 26px rgba(2, 8, 23, 0.10);
}

.theme-fashion .btn-outline-primary:hover,
.theme-fashion .btn-outline-secondary:hover,
.theme-fashion .btn-outline-success:hover,
.theme-fashion .btn-outline-info:hover,
.theme-fashion .btn-outline-warning:hover,
.theme-fashion .btn-outline-danger:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.38));
    border-color: rgba(255, 255, 255, 0.70);
    color: rgba(16, 24, 40, 0.92);
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.14);
    transform: translateY(-1px);
}

.theme-fashion .btn-outline-primary:active,
.theme-fashion .btn-outline-secondary:active,
.theme-fashion .btn-outline-success:active,
.theme-fashion .btn-outline-info:active,
.theme-fashion .btn-outline-warning:active,
.theme-fashion .btn-outline-danger:active {
    transform: translateY(0px);
}

.theme-fashion .btn-check:checked + .btn-outline-primary,
.theme-fashion .btn-check:checked + .btn-outline-secondary,
.theme-fashion .btn-check:checked + .btn-outline-success,
.theme-fashion .btn-check:checked + .btn-outline-info,
.theme-fashion .btn-check:checked + .btn-outline-warning,
.theme-fashion .btn-check:checked + .btn-outline-danger {
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.42));
    border-color: rgba(255, 255, 255, 0.80);
    color: rgba(16, 24, 40, 0.92);
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.14);
}

.theme-fashion .btn-outline-success,
.theme-fashion .btn-outline-info,
.theme-fashion .btn-outline-warning,
.theme-fashion .btn-outline-danger {
    border-style: solid;
}

/* Primary CTA (yellow) – glossy, like reference */
.theme-fashion .btn-primary,
.theme-fashion .btn-warning {
    background: linear-gradient(180deg, rgba(255, 234, 120, 0.98), rgba(247, 223, 76, 0.95));
    border-color: rgba(255, 255, 255, 0.55);
    color: rgba(16, 24, 40, 0.92);
    box-shadow:
        0 18px 40px rgba(247, 223, 76, 0.26),
        0 10px 22px rgba(2, 8, 23, 0.10);
}

.theme-fashion .btn-primary:hover,
.theme-fashion .btn-warning:hover {
    filter: saturate(1.02);
    box-shadow:
        0 22px 50px rgba(247, 223, 76, 0.32),
        0 14px 30px rgba(2, 8, 23, 0.14);
    transform: translateY(-1px);
}

.theme-fashion .btn-primary::before,
.theme-fashion .btn-warning::before {
    opacity: 0.85;
}

.theme-fashion .btn-sm {
    padding: 0.38rem 0.75rem;
    font-size: 0.85rem;
}

/* Used in dashboard template */
.theme-fashion .btn-xs {
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
}

.theme-fashion .btn-primary {
    background: var(--fx-accent);
    border-color: transparent;
    color: var(--fx-accent-text);
    box-shadow: 0 14px 28px rgba(245, 212, 75, 0.28);
}

.theme-fashion .btn-primary:hover {
    filter: brightness(0.98);
    box-shadow: 0 18px 36px rgba(245, 212, 75, 0.34);
}

.theme-fashion .btn-outline-primary {
    border-color: rgba(16, 24, 40, 0.16);
    color: rgba(16, 24, 40, 0.78);
}

.theme-fashion .btn-outline-primary:hover {
    background: rgba(255,255,255,0.55);
    border-color: rgba(16, 24, 40, 0.18);
    color: rgba(16, 24, 40, 0.92);
}

/* Forms */
.theme-fashion .form-control,
.theme-fashion .form-select,
.theme-fashion .input-group-text {
    border-radius: 14px;
    border-color: rgba(16, 24, 40, 0.12);
    background: rgba(255,255,255,0.55);
}

.theme-fashion .form-control:focus,
.theme-fashion .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 212, 75, 0.22);
    border-color: rgba(245, 212, 75, 0.75);
}

/* Tables */
.theme-fashion .table thead th {
    background: rgba(255,255,255,0.55) !important;
}

.theme-fashion .table {
    color: rgba(16, 24, 40, 0.88);
}

.theme-fashion .table th,
.theme-fashion .table td {
    border-color: rgba(16, 24, 40, 0.08) !important;
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
}

.theme-fashion .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* DataTables pagination (Bootstrap integration) */
.theme-fashion .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 999px !important;
}

.theme-fashion .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(16, 24, 40, 0.10) !important;
    color: rgba(16, 24, 40, 0.92) !important;
}

.theme-fashion .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.60) !important;
    border-color: rgba(16, 24, 40, 0.10) !important;
    color: rgba(16, 24, 40, 0.92) !important;
}

/* Footer inside frame */
.theme-fashion .footer {
    background: rgba(255,255,255,0.35) !important;
    border-top: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
}

/* ============================================================================
   Fashion Theme FINAL OVERRIDES (keep after legacy CSS)
   ========================================================================== */

.theme-fashion .bg-white {
    background-color: transparent !important;
}

.theme-fashion .bg-light {
    background-color: rgba(255, 255, 255, 0.42) !important;
}

.theme-fashion .border,
.theme-fashion .border-top,
.theme-fashion .border-bottom,
.theme-fashion .border-start,
.theme-fashion .border-end {
    border-color: rgba(16, 24, 40, 0.10) !important;
}

.theme-fashion .shadow,
.theme-fashion .shadow-sm,
.theme-fashion .shadow-lg {
    box-shadow: var(--fx-shadow-sm) !important;
}