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

:root {
    --primary-color: #B8956A;
    --secondary-color: #8B6F47;
    --accent-color: #D4B896;
    --cream-bg: #F5F1E8;
    --light-cream: #FAF8F3;
    --success-color: #7FA650;
    --danger-color: #C85A54;
    --warning-color: #E8B44C;
    --info-color: #6B9AC4;
    --light-bg: #FAF8F3;
    --dark-text: #4A3F35;
    --border-color: #E5DED0;
    --floral-accent: #C9B8A8;

    /* Christmas Colors */
    --christmas-red: #C41E3A;
    --christmas-green: #228B22;
    --christmas-gold: #FFD700;
    --christmas-silver: #C0C0C0;
    --snow-white: #FFFAFA;
}

body {
    font-family: 'Georgia', 'Garamond', serif;
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--snow-white) 50%, var(--light-cream) 100%);
    color: var(--dark-text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Larger screens get wider container */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Mobile screens get full width with padding */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    border-bottom: 3px solid var(--christmas-gold);
    position: relative;
}

.christmas-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--christmas-red) 0px,
        var(--christmas-red) 20px,
        var(--christmas-green) 20px,
        var(--christmas-green) 40px,
        var(--christmas-gold) 40px,
        var(--christmas-gold) 60px
    );
    animation: christmasLights 3s linear infinite;
}

@keyframes christmasLights {
    0% { transform: translateX(0); }
    100% { transform: translateX(-60px); }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
}

.nav-brand .logo-img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-brand h1 {
    font-family: 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 3rem !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

/* Main Content */
main {
    padding: 2rem 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.15);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.25);
}



.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.blue { background: linear-gradient(135deg, #4A90E2, #357ABD); }
.stat-icon.green { background: linear-gradient(135deg, #5CB85C, #449D44); }
.stat-icon.orange { background: linear-gradient(135deg, #F0AD4E, #EC971F); }
.stat-icon.purple { background: linear-gradient(135deg, #9B59B6, #8E44AD); }

.stat-content h3 {
    font-size: 2rem;
    color: var(--dark-text);
}

.stat-content p {
    color: #6c757d;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-input,
.filter-select,
.date-input,
.input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.date-group label {
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
}

.common-filter {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.common-filter .report-form {
    margin-bottom: 0;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.15);
    border: 2px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(184, 149, 106, 0.25);
    border-color: var(--primary-color);
}



.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.product-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: bold;
}

.product-price {
    font-size: 1.5rem;
    color: var(--success-color);
    font-weight: bold;
}

.product-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.status-in-stock {
    background: #d4edda;
    color: #155724;
}

.status-out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Orders List */
.orders-list {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.15);
    border: 2px solid var(--border-color);
}

.order-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.order-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.order-info p {
    color: #6c757d;
    font-size: 0.875rem;
}

.order-cost {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Table */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-bg);
    color: var(--primary-color);
    font-weight: bold;
}

tr:hover {
    background: var(--light-bg);
}

/* Report Cards */
.reports-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.report-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: flex-end;
}

.report-form .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.report-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 5px;
    min-height: 100px;
}

.chart-card {
    grid-column: 1 / -1;
}

.chart-container {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 5px;
    height: 400px;
    position: relative;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
}

.close:hover {
    color: var(--danger-color);
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 15px;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 0;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .nav-brand {
        font-size: 1.2rem;
        gap: 12px;
    }

    .nav-brand .logo-img {
        height: 55px;
        width: 55px;
    }

    .nav-brand h1 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        position: absolute;
        right: 0;
    }

    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        flex-direction: column;
        padding: 80px 0 0 0;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
        display: flex;
        justify-content: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        flex-shrink: 0;
    }

    .nav-menu a {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-size: 1.1rem;
        transition: all 0.3s;
        text-decoration: none;
        color: white;
    }

    .nav-menu a i {
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(255,255,255,0.2);
        padding-left: 2rem;
    }



    /* Overlay when menu is open */
    .nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }

    /* Main content */
    main {
        padding: 1rem 0;
    }

    .section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        margin-top: 1.5rem;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .stat-content p {
        font-size: 0.875rem;
    }

    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Filters */
    .filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input {
        min-width: 100%;
    }

    .filter-select,
    .date-input {
        width: 100%;
    }

    /* Products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions button {
        width: 100%;
    }

    /* Orders */
    .orders-list {
        padding: 1rem;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .order-cost {
        font-size: 1.1rem;
    }

    /* Table */
    .table-container {
        padding: 0.5rem;
        overflow-x: auto;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
        white-space: nowrap;
    }

    /* Report cards */
    .report-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .report-card {
        padding: 1rem;
    }

    .report-form {
        flex-direction: column;
    }

    .report-form .btn {
        width: 100%;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Buttons */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Form groups */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 10px;
    }

    .nav-brand {
        font-size: 0.9rem;
        gap: 6px;
    }

    .nav-brand h1 {
        font-size: 2rem;
    }

    .nav-brand .logo-img {
        height: 40px;
        width: 40px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        padding: 0.4rem;
    }

    .section h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .stat-content h3 {
        font-size: 1.25rem;
    }

    .product-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Date groups on mobile */
    .date-group {
        width: 100% !important;
    }
    
    .date-group input {
        width: 100% !important;
    }
    
    /* Common filter on mobile */
    .common-filter .report-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Reorder report cards on mobile */
    .reports-container {
        display: flex;
        flex-direction: column;
    }
    
    .revenue-card {
        order: 1;
    }
    
    .chart-card {
        order: 2;
    }
    
    .high-value-card {
        order: 3;
    }
}

/* Tablet landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-cards {
        grid-template-columns: 1fr;
    }
}


/* ============================================ */
/* Enhanced Mobile Responsive Design */
/* ============================================ */

/* Mobile First - Small devices (phones, up to 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    /* Navbar - keep horizontal layout */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-brand {
        font-size: 1rem;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .nav-brand .logo-img {
        height: 45px;
        width: 45px;
        flex-shrink: 0;
    }

    .nav-brand h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Main Content */
    main {
        padding: 1rem 0;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    .stat-content p {
        font-size: 0.9rem;
    }

    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Filters */
    .filters {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-input {
        min-width: 100%;
    }

    .filter-select,
    .date-input {
        width: 100%;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions button {
        width: 100%;
    }

    /* Orders */
    .orders-list {
        padding: 1rem;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .order-cost {
        font-size: 1.1rem;
        align-self: flex-end;
    }

    /* Table */
    .table-container {
        padding: 0.5rem;
    }

    table {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 0.5rem 0.75rem;
    }

    /* Report Cards */
    .report-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .report-card {
        padding: 1rem;
    }

    .report-form {
        flex-direction: column;
    }

    .report-form .btn {
        width: 100%;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* Small tablets (576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-cards {
        grid-template-columns: 1fr;
    }

    .order-item {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Medium devices (tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-cards {
        grid-template-columns: 1fr;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .report-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Order Products List */
.order-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.order-product-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(184, 149, 106, 0.15);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.order-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(184, 149, 106, 0.25);
    border-color: var(--primary-color);
}

.product-info {
    margin-bottom: 1.5rem;
}

.product-info h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: var(--success-color);
    font-size: 1.25rem;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.2);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 60px;
    text-align: center;
    background: var(--light-cream);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    border: 2px solid var(--accent-color);
}

.add-order-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--success-color), #6a8f42);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(127, 166, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.add-order-btn:hover {
    background: linear-gradient(135deg, #6a8f42, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 166, 80, 0.4);
}

.add-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover,
    .stat-card:hover {
        transform: none;
    }

    /* Better spacing for touch */
    .product-actions {
        gap: 0.75rem;
    }

    .quantity-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .quantity-display {
        font-size: 1.8rem;
        min-width: 50px;
    }
    
    .order-products-list {
        grid-template-columns: 1fr;
    }
    
    .order-product-item {
        padding: 1.5rem;
    }
    
    .product-info h4 {
        font-size: 1.3rem;
    }
    
    .product-info p {
        font-size: 1.1rem;
    }
}
/* Dashboard Chart */
.dashboard-chart {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(184, 149, 106, 0.15);
    border: 2px solid var(--border-color);
    margin-top: 2rem;
}

.dashboard-chart h3 {
    color: var(--christmas-red);
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-chart .chart-container {
    height: 300px;
    position: relative;
}

@media (max-width: 768px) {
    .dashboard-chart {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .dashboard-chart .chart-container {
        height: 250px;
    }
}
/* ============================================ */
/* Christmas Decorations */
/* ============================================ */

.christmas-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Snowflakes */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: var(--snow-white);
    font-size: 1.5rem;
    animation: snowfall linear infinite;
    opacity: 0.8;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 2s;
    font-size: 1.2rem;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 10s;
    animation-delay: 1s;
    font-size: 1.8rem;
}

.snowflake:nth-child(4) {
    left: 50%;
    animation-duration: 15s;
    animation-delay: 3s;
}

.snowflake:nth-child(5) {
    left: 70%;
    animation-duration: 9s;
    animation-delay: 1.5s;
    font-size: 1.3rem;
}

.snowflake:nth-child(6) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 0.5s;
    font-size: 1.6rem;
}

.snowflake:nth-child(7) {
    left: 90%;
    animation-duration: 13s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(8) {
    left: 5%;
    animation-duration: 14s;
    animation-delay: 4s;
    font-size: 1.4rem;
}

@keyframes snowfall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Christmas Tree */
.christmas-tree {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 3rem;
    animation: treeGlow 2s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes treeGlow {
    0% {
        filter: drop-shadow(0 0 5px var(--christmas-green));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 15px var(--christmas-gold));
        transform: scale(1.1);
    }
}

/* Christmas Lights */
.christmas-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    display: flex;
    z-index: 10;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 10px;
    animation: twinkle 1.5s ease-in-out infinite alternate;
}

.light.red {
    background: var(--christmas-red);
    box-shadow: 0 0 10px var(--christmas-red);
}

.light.green {
    background: var(--christmas-green);
    box-shadow: 0 0 10px var(--christmas-green);
    animation-delay: 0.3s;
}

.light.blue {
    background: #4169E1;
    box-shadow: 0 0 10px #4169E1;
    animation-delay: 0.6s;
}

.light.yellow {
    background: var(--christmas-gold);
    box-shadow: 0 0 10px var(--christmas-gold);
    animation-delay: 0.9s;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Christmas-themed stat cards */
.stat-card {
    background: linear-gradient(135deg, white 0%, var(--snow-white) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
    border: 2px solid var(--christmas-gold);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover::before {
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.25);
}

/* Christmas-themed buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red), #A01729);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #A01729, var(--christmas-red));
}

/* Christmas-themed product cards */
.product-card {
    background: linear-gradient(135deg, white 0%, var(--snow-white) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.15);
    border: 2px solid var(--christmas-green);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card::after {
    content: '🎄';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    opacity: 0.3;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(34, 139, 34, 0.25);
    border-color: var(--christmas-red);
}

/* Christmas section headers */
.section h2 {
    color: var(--christmas-red);
    margin-bottom: 1.5rem;
    font-size: 1.2rem !important;
    text-shadow: 2px 2px 4px rgba(196, 30, 58, 0.2);
    position: relative;
}

.section h2::after {
    content: '✨';
    margin-left: 10px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Mobile Christmas adjustments */
@media (max-width: 768px) {
    .christmas-tree {
        font-size: 2rem;
        bottom: 10px;
        right: 10px;
    }

    .snowflake {
        font-size: 1.2rem;
    }

    .light {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }

    .christmas-lights {
        height: 6px;
    }
}

/* Disable Christmas animations on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .christmas-tree,
    .light,
    .section h2::after {
        animation: none;
    }

    .christmas-navbar::before {
        animation: none;
    }
}
/* Font Size Overrides - Ensure proper hierarchy */
.nav-brand h1 {
    font-size: 3rem !important;
}

#dashboard h2 {
    font-size: 1.4rem !important;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-brand h1 {
        font-size: 2.2rem !important;
    }
    
    #dashboard h2 {
        font-size: 1.2rem !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.8rem !important;
    }
    
    #dashboard h2 {
        font-size: 1.1rem !important;
        text-align: center;
    }
}
/* Mark In/Out Button Colors */
.btn-mark-out {
    background: var(--success-color) !important;
    color: white !important;
}

.btn-mark-out:hover {
    background: #6a8f42 !important;
}

.btn-mark-in {
    background: #F5E050 !important;
    color: #333 !important;
}

.btn-mark-in:hover {
    background: #F0D840 !important;
}