﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/* Root Variables - GoldFood Brand Colors */
:root {
    --primary-color: #FFCB05;
    --primary-hover: #E6B600;
    --primary-dark: #CC9900;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gold-gradient: linear-gradient(135deg, #FFCB05, #E6B600);
    --gold-light: #FFF8DC;
    --gold-accent: #D3AF37;
    --border-radius: 10px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-gold: 0 0.5rem 1rem rgba(255, 203, 5, 0.2);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 0px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

    /* Ensure modals work properly when body has modal-open class */
    body.modal-open {
        overflow: hidden !important;
        padding-right: 17px !important;
    }

/* CRITICAL: Prevent body from creating new stacking context */
body {
    position: static !important;
    transform: none !important;
    isolation: auto !important;
}

/* CRITICAL: Ensure main container doesn't interfere with modals */
main, .container, .container-fluid {
    position: relative !important;
    z-index: auto !important;
    transform: none !important;
    isolation: auto !important;
}

/* Dropdown fixes for table context */
.table-responsive {
    overflow: visible !important;
}

.dropdown {
    position: static;
}

.dropdown-menu {
    position: absolute !important;
    z-index: 1050;
    min-width: 160px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    left: auto !important;
    right: auto !important;
}

.dropdown-item {
    transition: background-color 0.15s ease-in-out;
    font-size: smaller !important;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
    }

    .dropdown-item.active {
        background-color: #e7f3ff;
        color: #0d6efd;
        font-weight: 500;
    }

/* Status button styles */
.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Toast container styles */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 300px;
    margin-bottom: 0.5rem;
}

/* ============================================
   GLOBAL MODAL Z-INDEX FIX
   ============================================
   Ensures all Bootstrap modals appear on top
   of everything including navbar, help bot, etc.
   
   Z-index hierarchy:
   - Navbar sticky: 1030
   - Help Bot: 999
   - Toast: 9999
   - Modal Backdrop: 10500 (behind modal)
   - Modal: 10600 (on top of backdrop and everything)
   ============================================ */

/* Modal backdrop - Bootstrap creates this as a sibling to body */
.modal-backdrop {
    z-index: 10500 !important; /* Much higher than navbar */
    pointer-events: none !important; /* Allow clicks to pass through to modal */
    position: fixed !important; /* CRITICAL: Fixed positioning */
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

    .modal-backdrop.show,
    .modal-backdrop.fade {
        z-index: 10500 !important; /* Much higher than navbar */
        pointer-events: none !important; /* Allow clicks to pass through to modal */
        position: fixed !important;
    }

/* All Bootstrap modals */
.modal {
    z-index: 10600 !important; /* Higher than backdrop */
    pointer-events: auto !important; /* Ensure modal receives clicks */
    position: fixed !important; /* CRITICAL: Fixed positioning to break out of stacking context */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: none; /* Hidden by default */
}

    .modal.show,
    .modal.fade.show {
        z-index: 10600 !important; /* Higher than backdrop */
        pointer-events: auto !important;
        display: block !important; /* Show when active */
    }

/* Modal dialog */
.modal-dialog {
    z-index: 10601; /* Higher than modal container */
    position: relative;
    pointer-events: auto !important; /* Ensure dialog content receives clicks */
}

/* Modal content */
.modal-content {
    position: relative;
    z-index: 10602; /* Highest - on top of everything */
    pointer-events: auto !important; /* Ensure all content is clickable */
}

/* Custom Animations */
.redflash {
    animation: redFlash 2s ease-in-out infinite;
}

@keyframes redFlash {
    50% {
        color: red;
    }
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 203, 5, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 203, 5, 0.6);
    }
}

.fadein {
    animation: fadein 2s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Improved animate-in class - only for specific elements */
.page-animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Specific animation for hero and feature cards */
.hero-card.animate-in,
.feature-card.animate-in,
.category-preview-card.animate-in {
    animation: slideInUp 0.6s ease-out;
}

/* Navigation - GoldFood Branding */
.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
}

    .navbar-brand .logo-image {
        height: 40px;
        width: auto;
        margin-right: 0px;
        filter: brightness(0) invert(1); /* Make logo white on dark background */
    }

.navbar-dark .navbar-brand:hover {
    color: var(--gold-light) !important;
}

/* Golden Navigation Bar - Dark Theme */
.navbar.bg-dark,
.navbar.bg-primary {
    background-color: #2c2c2c !important;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: smaller;
    transition: var(--transition);
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: white !important;
        background-color: rgba(255, 203, 5, 0.15);
        border-radius: 6px;
    }

/* Gold accent for icons in navbar */
.navbar-dark .nav-link i,
.navbar-dark .navbar-brand i {
    color: var(--gold-accent) !important;
}

/* Special styling for gold-labeled sections */
.navbar-dark .nav-link.gold-label,
.navbar-dark .navbar-brand.gold-label {
    color: white !important;
}

    .navbar-dark .nav-link.gold-label i {
        color: var(--gold-accent) !important;
    }

/* Button Overrides - Golden Theme */
.btn-primary {
    color: var(--dark-color);
    background: var(--gold-accent);
    border-color: var(--primary-color);
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(255, 203, 5, 0.2);
}

    .btn-primary:hover {
        color: var(--dark-color);
        background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
        border-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--box-shadow-gold);
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

    .btn-outline-primary:hover {
        color: var(--dark-color);
        background: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-1px);
    }

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: var(--dark-color);
    background: var(--gold-gradient);
    border-color: var(--primary-color);
}

/* Utility Classes */
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: var(--box-shadow);
}

.box-shadow-lg {
    box-shadow: var(--box-shadow-lg);
}

.box-shadow-gold {
    box-shadow: var(--box-shadow-gold);
}

.min-vh-75 {
    min-height: 75vh;
}

/* Color Utility */
.Color {
    color: var(--primary-color);
    font-weight: bold;
}

.text-gold {
    color: var(--primary-color);
}

.bg-gold {
    background: var(--gold-gradient);
    color: var(--dark-color);
}

.bg-gold-light {
    background-color: var(--gold-light);
    color: var(--dark-color);
}

/* Hero Section - Enhanced with Golden Theme */
.hero-section {
    background: linear-gradient(135deg, var(--gold-light) 0%, #ffffff 50%, var(--gold-light) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="goldGrain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="rgba(255,203,5,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,203,5,0.08)"/><circle cx="50" cy="10" r="1" fill="rgba(255,203,5,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23goldGrain)"/></svg>');
        opacity: 0.6;
    }

.hero-content {
    position: relative;
    z-index: 2;
}

    .hero-content h1 {
        color: var(--dark-color);
        margin-bottom: 1.5rem;
        font-weight: 700;
    }

    .hero-content .lead {
        color: var(--secondary-color);
        font-size: 1.2rem;
        font-weight: 400;
    }

.hero-buttons .btn {
    margin-bottom: 1rem;
    font-weight: bolder;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-gold);
    text-align: center;
    transform: translateY(20px);
    animation: fadeInScale 1s ease-out 0.5s both;
    border: 3px solid var(--primary-color);
}

.hero-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: goldGlow 2s ease-in-out infinite;
}

.hero-card h3 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Features Section - Golden Accents */
.features-section {
    background: white;
    padding: 80px 0;
}

.section-title {
    color: var(--gold-accent);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 4px;
        background: var(--gold-gradient);
        margin: 1rem auto;
        border-radius: 2px;
    }

.section-subtitle {
    color: var(--light-color);
    font-size: 1.1rem;
    font-weight: 400;
}

.feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gold-gradient);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .feature-card:hover::before {
        transform: scaleX(1);
    }

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--box-shadow-gold);
        border-color: var(--primary-color);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--dark-color);
    font-size: 2rem;
    font-weight: bold;
    box-shadow: var(--box-shadow-gold);
}

.feature-card h4 {
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--light-color);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Categories Section */
.categories-section {
    background: var(--light-color);
    padding: 80px 0;
}

.category-preview-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
    position: relative;
}

    .category-preview-card::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gold-gradient);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .category-preview-card:hover::before {
        transform: scaleX(1);
    }

    .category-preview-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--box-shadow-gold);
        border-color: var(--primary-color);
    }

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: var(--box-shadow-gold);
}

.category-preview-card h5 {
    color: var(--gold-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* CTA Section - Golden Gradient */
.cta-section {
    background: var(--gold-gradient);
    color: var(--dark-color);
    padding: 80px 0;
}

.cta-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--box-shadow-gold);
}

.cta-title {
    color: var(--gold-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.cta-card .btn-light {
    background: white;
    border-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow);
}

    .cta-card .btn-light:hover {
        background: var(--primary-color);
        color: var(--dark-color);
        transform: translateY(-2px);
        box-shadow: var(--box-shadow-gold);
    }

/* Help Hint - Golden Accent */
.help-hint {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 998;
    background: black;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-gold);
    border: 3px solid var(--primary-color);
    animation: slideInUp 1s ease-out 2s both;
    max-width: 300px;
}

.help-hint-content p {
    margin: 0;
    font-size: 0.9rem;
    color: white;
    font-weight: 500;
}

.help-hint .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0;
    border: none;
    background: none;
}

    .help-hint .btn-link:hover {
        text-decoration: underline;
        color: var(--primary-hover);
    }

/* Card Enhancements */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--box-shadow-lg);
    }

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

    .card-header.bg-gradient {
        background: var(--gold-gradient) !important;
        color: var(--dark-color);
    }

/* Form Enhancements - Golden Focus */
.form-control, .form-select {
    background-color: black !important;
    color: white !important;
    border-radius: var(--border-radius);
    border: 0.5px solid var(--primary-color);
    transition: var(--transition);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(255, 203, 5, 0.25);
    }

    /* Form control placeholder styling */
    .form-control::placeholder {
        color: #d3d3d3 !important;
        opacity: 1;
    }

    .form-control::-webkit-input-placeholder {
        color: #d3d3d3 !important;
        opacity: 1;
    }

    .form-control::-moz-placeholder {
        color: #d3d3d3 !important;
        opacity: 1;
    }

    .form-control:-ms-input-placeholder {
        color: #d3d3d3 !important;
        opacity: 1;
    }

/* Button Enhancements */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer - Golden Accents */
footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #f8f9fa;
}

    footer h5, footer h6 {
        color: var(--primary-color);
        font-weight: 600;
    }

    footer .social-links a {
        color: #f8f9fa;
        transition: var(--transition);
    }

        footer .social-links a:hover {
            color: var(--primary-color);
            transform: translateY(-2px);
        }

    /* Footer link styles for better visibility */
    footer .footer-link {
        transition: var(--transition);
    }

        footer .footer-link:hover {
            color: var(--primary-color) !important;
            transform: translateX(3px);
            display: inline-block;
        }

    footer .text-white-50 {
        color: rgba(255, 255, 255, 0.75) !important;
    }

/* Breadcrumb - Golden Theme */
.breadcrumb {
    background: var(--gold-light);
    border-radius: 0;
}

.breadcrumb-item a {
    color: var(--primary-dark);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

/* Search Enhancements */
.input-group .form-control:focus {
    z-index: 3;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 203, 5, 0.25);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Desktop Search Bar - Minimized/Expanded States */
.search-container {
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

    .search-toggle-btn:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

.search-input-group {
    position: absolute;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

    .search-input-group.expanded {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: all;
    }

.search-toggle-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.search-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
}

.search-input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-input-group .btn:first-of-type {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-left: none;
}

.search-input-group .search-close-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Ensure search results dropdown aligns properly when expanded */
#searchResults {
    top: calc(100% + 5px);
    right: 0;
    left: auto !important;
}

@media (min-width: 992px) {
    .search-wrapper {
        min-width: 38px;
    }

    .search-input-group.expanded {
        width: 350px !important;
    }
}

/* Loading States */
.spinner-border {
    color: var(--primary-color);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Back to Top Button */
.back-to-top-button {
    transition: var(--transition);
}

    .back-to-top-button:hover {
        transform: translateY(-3px);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .feature-card, .category-preview-card {
        margin-bottom: 2rem;
    }

    .cta-card {
        padding: 2rem;
        text-align: center;
    }

        .cta-card .btn-light {
            display: block;
            width: 100%;
            margin-top: 1rem;
        }

    .help-hint {
        bottom: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    /* Back to top button - Move to bottom left on mobile, below help hint */
    .back-to-top-button {
        bottom: 20px !important;
        left: 20px !important;
    }

    .navbar-brand .logo-image {
        height: 32px;
        margin-right: 8px;
    }

    /* Mobile dropdown fixes */
    .table-responsive {
        overflow-x: auto;
        overflow-y: visible;
    }

    .dropdown-menu {
        min-width: 140px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .features-section,
    .categories-section,
    .cta-section {
        padding: 60px 0;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .features-section,
    .categories-section,
    .cta-section {
        break-inside: avoid;
    }

    .help-hint {
        display: none;
    }

    body {
        color: #000;
    }

    .btn {
        border: 1px solid #000;
        color: #000;
        background: white;
    }
}

.text-warning {
    color: var(--gold-accent) !important;
}

.hover-bg:hover {
    background-color: #2d2d2d !important;
    cursor: pointer;
}

.product-selection-container {
    background-color: #0d0d0d;
}

    .product-selection-container::-webkit-scrollbar {
        width: 8px;
    }

    .product-selection-container::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 10px;
    }

    .product-selection-container::-webkit-scrollbar-thumb {
        background: var(--gold-accent);
        border-radius: 10px;
    }

        .product-selection-container::-webkit-scrollbar-thumb:hover {
            background: #daa520;
        }

.form-control, .form-select {
    background-color: #ffffff1f !important;
    color: #fff !important;
}

    .form-control:focus, .form-select:focus {
        background-color: #ffffff1f !important;
        border-color: var(--gold-accent) !important;
        color: #fff !important;
        box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    }

    .form-control::placeholder {
        color: #999 !important;
    }

/* Glassy gray styling for all inputs */
input.form-control,
select.form-select,
textarea.form-control {
    background-color: #ffffff1f !important;
    border: 1px solid var(--primary-color) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

    input.form-control:focus,
    select.form-select:focus,
    textarea.form-control:focus {
        background-color: #ffffff1f !important;
        border-color: var(--gold-accent) !important;
        color: #fff !important;
        box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    }

/* Fix date input to show calendar picker */
input[type="date"] {
    position: relative;
    background-color: #ffffff1f !important;
    color: #fff !important;
    color-scheme: dark;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
        filter: invert(1);
        opacity: 0.8;
    }

        input[type="date"]::-webkit-calendar-picker-indicator:hover {
            opacity: 1;
        }

    /* Ensure date input is clickable */
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-clear-button {
        display: none;
    }

    input[type="date"]::-webkit-datetime-edit {
        color: #fff;
    }

    input[type="date"]::-webkit-datetime-edit-fields-wrapper {
        padding: 0;
    }

    input[type="date"]::-webkit-datetime-edit-text {
        color: #fff;
        padding: 0 0.3em;
    }

    input[type="date"]::-webkit-datetime-edit-month-field,
    input[type="date"]::-webkit-datetime-edit-day-field,
    input[type="date"]::-webkit-datetime-edit-year-field {
        color: #fff;
    }

/* Fix dropdown options visibility */
.form-select option {
    background-color: #2d2d2d;
    color: #fff;
}

    .form-select option:hover,
    .form-select option:focus,
    .form-select option:checked {
        background-color: #3d3d3d;
        color: var(--gold-accent);
    }

/* Hide the checkbox input completely */
.product-selection-container .form-check-input {
    display: none !important;
}

/* Highlight selected product cards with gold accent */
.product-selection-container .form-check:has(.form-check-input:checked),
.product-selection-container .form-check.selected-card {
    border-color: var(--gold-accent) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05)) !important;
}

    .product-selection-container .form-check:has(.form-check-input:checked):hover,
    .product-selection-container .form-check.selected-card:hover {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

.list-group-item {
    border-color: #444 !important;
}

/* Search input styling */
#productSearchBox {
    background-color: #ffffff1f;
    border: 2px solid var(--primary-color);
    color: #fff;
}

    #productSearchBox:focus {
        background-color: #ffffff1f;
        border-color: var(--gold-accent);
        color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    }

    #productSearchBox::placeholder {
        color: #999;
    }

.input-group-text {
    background-color: #2d2d2d;
    border-color: #444;
    color: var(--gold-accent);
}

#clearSearchBtn {
    background-color: #2d2d2d;
    border-color: #444;
    color: var(--gold-accent);
}

    #clearSearchBtn:hover {
        background-color: #3d3d3d;
        color: #fff;
    }

/* Product card equal heights and responsive layout */
.product-selection-container .row {
    margin: 0;
}

.product-selection-container .form-check {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    padding: 0.75rem !important;
}

    .product-selection-container .form-check:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(212, 175, 55, 0.2);
    }

.product-selection-container .form-check-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

    .product-selection-container .form-check-label strong {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .product-selection-container .form-check-label small {
        font-size: 0.75rem;
        line-height: 1.2;
    }

.product-selection-container .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.product-selection-container .form-check-input {
    margin-top: 0.2rem;
}

/* Responsive breakpoints */
@media (max-width: 767.98px) {
    /* Mobile: 1 column */
    .product-selection-container .col-12 {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    /* Tablet: 2 columns */
    .product-selection-container .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    /* Desktop/Widescreen: 3 columns */
    .product-selection-container .col-xl-4 {
        width: 33.333333%;
    }
}
