/* =========================
   GLOBAL RESET & BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f4f4f4; 
    margin: 0; 
    padding: 0;
    padding-top: 80px;
    color: #333;
    line-height: 1.6;
}

/* ============ TEXT VISIBILITY ENHANCEMENTS ============ */
/* Ensure all text has proper contrast */
body, .container, .dashboard-card, .tab-content, .form-control {
    color: #333 !important;
    background-color: #ffffff !important;
}

/* Dark text on light backgrounds */
h1, h2, h3, h4, h5, h6,
p, span, div, td, th,
label, input, select, textarea,
button:not(.danger-btn):not(.success-btn):not(.warning-btn):not(.info-btn) {
    color: #333333 !important;
}

/* Bright text on dark backgrounds */
header, th, 
.danger-btn, .success-btn, .warning-btn, .info-btn,
.notification, .statBox .value,
.tab-button.active, .period-btn.active,
.receipt-title {
    color: #ffffff !important;
}

/* Ensure input text is dark on light background */
input, select, textarea {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #ddd !important;
}

/* Ensure placeholders are visible */
input::placeholder, textarea::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
}

/* Ensure disabled elements are readable */
button:disabled, input:disabled, select:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    opacity: 1 !important;
}

/* ============ HEADER ============ */
header { 
    background: linear-gradient(to right, #ff8c00, #1e3c72); 
    color: white !important; 
    padding: 15px 20px; 
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-content h1 {
    font-size: 1.8rem;
    margin: 0;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#welcomeUser {
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    color: white !important;
}

/* ============ CONTAINERS ============ */
.container { 
    padding: 20px; 
    max-width: 1200px;
    margin: 0 auto;
    background: white !important;
    color: #333 !important;
}

.hidden { 
    display: none !important; 
}

/* ============ BUTTONS ============ */
button { 
    background: #ff8c00; 
    color: white !important; 
    border: none; 
    padding: 10px 15px; 
    margin: 5px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

button:hover { 
    background: #e67e00; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    color: white !important;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 1 !important;
}

/* Blue admin login button */
.admin-login-btn {
    background: #3498db !important;
    color: white !important;
}

.admin-login-btn:hover {
    background: #2980b9 !important;
    color: white !important;
}

/* Danger button */
.danger-btn { 
    background: #e74c3c !important; 
    color: white !important;
}

.danger-btn:hover { 
    background: #c0392b !important; 
    color: white !important;
}

/* Success button */
.success-btn { 
    background: #27ae60 !important; 
    color: white !important;
}

.success-btn:hover { 
    background: #219653 !important; 
    color: white !important;
}

/* Warning button */
.warning-btn { 
    background: #f39c12 !important; 
    color: white !important;
}

.warning-btn:hover { 
    background: #e67e22 !important; 
    color: white !important;
}

/* Info button */
.info-btn { 
    background: #3498db !important; 
    color: white !important;
}

.info-btn:hover { 
    background: #2980b9 !important; 
    color: white !important;
}

/* ============ TABLES ============ */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 10px; 
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

th, td { 
    border: 1px solid #ddd; 
    padding: 12px 15px; 
    text-align: left; 
}

th { 
    background: #1e3c72 !important; 
    color: white !important;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

td {
    color: #333333 !important;
    background: white !important;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:nth-child(even) td {
    background-color: #f8f9fa !important;
}

tr:hover {
    background-color: #f1f3f5;
}

tr:hover td {
    background-color: #f1f3f5 !important;
}

/* ============ STAT BOXES ============ */
.statBox { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    width: 100%; 
    text-align: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    margin-bottom: 15px;
    border-left: 4px solid #ff8c00;
}

.statBox h3 {
    margin-bottom: 10px;
    color: #1e3c72 !important;
    font-size: 1rem;
}

.statBox .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff8c00 !important;
}

/* ============ STOCK STATUS ============ */
.low-stock { 
    color: #e74c3c !important; 
    font-weight: bold; 
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.out-of-stock { 
    color: white !important; 
    background-color: #e74c3c !important; 
    font-weight: bold; 
    padding: 3px 8px;
    border-radius: 3px;
}

.stock-normal {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60 !important;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ============ SHIFT INFO ============ */
#shiftInfo { 
    background: #e0e0e0; 
    padding: 15px; 
    margin-bottom: 20px; 
    border-radius: 8px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333 !important;
}

#shiftInfo span {
    color: #333 !important;
    font-weight: bold;
}

/* ============ SEARCH BAR ============ */
#searchBar { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white !important;
    color: #333 !important;
}

#searchBar::placeholder {
    color: #666 !important;
}

/* ============ RECEIPT ============ */
#receipt { 
    background: white !important; 
    padding: 20px; 
    max-width: 300px; 
    margin: 20px auto; 
    border: 1px solid #000; 
    font-family: 'Courier New', monospace; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #000000 !important;
}

#receipt * {
    color: #000000 !important;
}

/* ============ MODALS ============ */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    animation: fadeIn 0.3s ease; 
    z-index: 2000;
}

.modal {
    background: white !important; 
    padding: 25px; 
    border-radius: 8px; 
    width: 450px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3); 
    animation: scaleIn 0.3s ease;
    color: #333 !important;
}

.modal h3 {
    margin-bottom: 15px;
    color: #1e3c72 !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal p, .modal label, .modal input, .modal select {
    color: #333 !important;
}

@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}

@keyframes scaleIn { 
    from { transform: scale(0.8); } 
    to { transform: scale(1); } 
}

/* ============ RECEIPT STYLING ============ */
.receipt-header-with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.receipt-logo {
    height: 60px;
    width: auto;
}

.receipt-company-details {
    flex: 1;
    text-align: center;
}

.receipt-title { 
    font-size: 18px; 
    font-weight: bold; 
    margin-bottom: 5px; 
    background-color: black !important;
    color: white !important;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.receipt-company-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    color: #000 !important;
}

.receipt-address { 
    font-size: 12px; 
    margin-bottom: 5px; 
    text-align: center;
    color: #000 !important;
}

.receipt-contact { 
    font-size: 12px; 
    margin-bottom: 10px; 
    text-align: center;
    color: #000 !important;
}

.receipt-divider { 
    border-top: 1px dashed #000; 
    margin: 10px 0; 
}

.receipt-item { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 5px; 
}

.receipt-total { 
    font-weight: bold; 
    border-top: 1px solid #000; 
    padding-top: 5px; 
    margin-top: 5px; 
}

.receipt-footer { 
    text-align: center; 
    font-size: 10px; 
    margin-top: 15px; 
    color: #000 !important;
}

.receipt-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 10px 0; 
}

.receipt-table th { 
    border-bottom: 1px dashed #000; 
    text-align: left; 
    padding: 3px 0; 
    color: #000 !important;
}

.receipt-table td { 
    padding: 3px 0; 
    color: #000 !important;
}

.receipt-table .item-desc { 
    width: 40%; 
}

.receipt-table .item-price { 
    width: 20%; 
    text-align: right; 
}

.receipt-table .item-qty { 
    width: 20%; 
    text-align: center; 
}

.receipt-table .item-total { 
    width: 40%; 
    text-align: right; 
}

.receipt-totals { 
    width: 100%; 
    margin-top: 10px; 
}

.receipt-totals div { 
    display: flex; 
    justify-content: space-between; 
    color: #000 !important;
}

.active-shift { 
    background-color: #e6ffe6; 
    border-left: 4px solid #27ae60;
}

/* ============ LOGIN PAGE ============ */
#loginPage {
    max-width: 400px;
    margin: 100px auto;
    background: white !important;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    color: #333 !important;
}

#loginPage h2 {
    color: #1e3c72 !important;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

#loginPage input {
    width: 100%;
    padding: 14px 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border 0.3s;
    background: white !important;
    color: #333 !important;
}

#loginPage input:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,140,0,0.2);
}

#loginPage input::placeholder {
    color: #666 !important;
}

#loginPage button {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(to right, #ff8c00, #ff6b00);
    color: white !important;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#loginPage button:hover {
    background: linear-gradient(to right, #ff6b00, #e55a00);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white !important;
}

/* ============ DASHBOARD ============ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dashboard-card {
    background: white !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    color: #333 !important;
}

.dashboard-card h3 {
    color: #1e3c72 !important;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dashboard-card p, .dashboard-card label {
    color: #333 !important;
}

/* ============ FORM ELEMENTS ============ */
input, select, textarea {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white !important;
    color: #333 !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,140,0,0.2);
}

input::placeholder, textarea::placeholder {
    color: #666 !important;
}

/* ============ STATUS INDICATORS ============ */
.status-active { 
    color: #27ae60 !important; 
    font-weight: bold; 
    background-color: rgba(39, 174, 96, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.status-inactive { 
    color: #e74c3c !important; 
    font-weight: bold; 
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-pending { 
    color: #f39c12 !important; 
    font-weight: bold; 
    background-color: rgba(243, 156, 18, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-approved { 
    color: #27ae60 !important; 
    font-weight: bold; 
    background-color: rgba(39, 174, 96, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

.submission-rejected { 
    color: #e74c3c !important; 
    font-weight: bold; 
    background-color: rgba(231, 76, 60, 0.1);
    padding: 2px 8px;
    border-radius: 3px;
}

/* ============ PAYMENT MODE ============ */
.payment-mode {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.payment-mode label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #333 !important;
}

/* ============ CONTROL SECTIONS ============ */
.submission-controls {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #bbdefb;
    color: #333 !important;
}

.discount-controls {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c8e6c9;
    color: #333 !important;
}

.sale-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #333 !important;
}

.reset-controls {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffeaa7;
    color: #333 !important;
}

.financial-reset-controls {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffcdd2;
    color: #333 !important;
}

.receipt-management {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #d1e7ff;
    color: #333 !important;
}

.stock-update-controls {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffcc80;
    color: #333 !important;
}

.stock-management {
    background: #fff3e0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #ffcc80;
    color: #333 !important;
}

.analytics-controls {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #bbdefb;
    color: #333 !important;
}

/* ============ QUANTITY INPUT ============ */
.quantity-input {
    width: 70px;
    padding: 8px;
    margin: 0 5px;
    text-align: center;
    background: white !important;
    color: #333 !important;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-mode {
        flex-direction: column;
        gap: 10px;
    }
    
    header {
        padding: 10px 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
        color: white !important;
    }
    
    #shiftInfo {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    button {
        width: 100%;
        margin: 5px 0;
    }
    
    .receipt-header-with-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .receipt-logo {
        margin-bottom: 10px;
    }
}

/* ============ TAB NAVIGATION ============ */
.tab-navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #555 !important;
    transition: all 0.3s;
}

.tab-button.active {
    background: white;
    color: #1e3c72 !important;
    border-bottom: 3px solid #ff8c00;
}

.tab-button:hover {
    background: #e9ecef;
    color: #333 !important;
}

.tab-content {
    display: none;
    color: #333 !important;
}

.tab-content.active {
    display: block;
}

/* ============ SECTION TITLES ============ */
.section-title {
    color: #1e3c72 !important;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ============ CUSTOMER DETAILS ============ */
.customer-details {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #d1e7ff;
    color: #333 !important;
}

.customer-details h4 {
    margin-bottom: 15px;
    color: #1e3c72 !important;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1e3c72 !important;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: white !important;
    color: #333 !important;
}

.form-control:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,140,0,0.2);
}

/* ============ OPTIONAL FIELD ============ */
.optional-field {
    color: #666 !important;
    font-style: italic;
}

/* ============ SECTION TOGGLE ============ */
.section-toggle {
    display: inline-block;
    margin-bottom: 15px;
    color: white !important;
}

/* Worker Tab Styles */

.worker-management {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
}

/* Action Bar */
.worker-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 35px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 250px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* Button Styles */
.primary-btn, .secondary-btn, .danger-btn, .warning-btn, .info-btn, 
.chat-btn, .group-chat-btn, .bot-inbox-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.primary-btn {
    background: #3b82f6;
    color: white;
}

.primary-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #6b7280;
    color: white;
}

.secondary-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.danger-btn {
    background: #ef4444;
    color: white;
}

.danger-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.warning-btn {
    background: #f59e0b;
    color: white;
}

.warning-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.info-btn {
    background: #10b981;
    color: white;
}

.info-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.chat-btn {
    background: #8b5cf6;
    color: white;
}

.chat-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.group-chat-btn {
    background: #ec4899;
    color: white;
}

.group-chat-btn:hover {
    background: #db2777;
    transform: translateY(-1px);
}

.bot-inbox-btn {
    background: #14b8a6;
    color: white;
}

.bot-inbox-btn:hover {
    background: #0d9488;
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Statistics */
.worker-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 120px;
    text-align: center;
    flex: 1;
}

.badge-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.badge-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

/* Workers List */
.workers-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.list-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 100px 120px;
    background: #f3f4f6;
    padding: 15px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    align-items: center;
}

.list-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.list-checkbox label {
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
}

.list-column {
    padding: 0 10px;
}

.worker-item {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 100px 120px;
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    transition: background-color 0.2s;
}

.worker-item:hover {
    background-color: #f9fafb;
}

.worker-item.selected {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.worker-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.worker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.worker-name {
    font-weight: 600;
    color: #1f2937;
}

.worker-email {
    font-size: 12px;
    color: #6b7280;
}

.worker-position {
    color: #4b5563;
    font-weight: 500;
}

.worker-department {
    padding: 4px 12px;
    background: #e0e7ff;
    color: #3730a3;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
}

.worker-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.status-leave {
    background: #fef3c7;
    color: #92400e;
}

.worker-actions-small {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
    font-style: italic;
}

/* Modal Styles */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.close-btn:hover {
    color: #374151;
}

/* Form Styles */
.form-section {
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.full-width {
    flex: 0 0 100%;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Chat Styles */
.chat-container {
    padding: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9fafb;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.send-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.send-btn:hover {
    background: #2563eb;
}

/* Group Chat */
.group-chat-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.group-selection {
    flex: 0 0 250px;
    border-right: 1px solid #e5e7eb;
    padding-right: 20px;
}

.group-selection h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #374151;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background-color: #f3f4f6;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    cursor: pointer;
    flex: 1;
}

/* Bot Inbox */
.bot-inbox-container {
    padding: 20px;
}

.bot-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.message-templates {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
}

.message-templates h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #374151;
}

.template-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.template-item {
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.template-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.template-item strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
}

.template-item p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.message-composer {
    margin-top: 20px;
}

.message-composer h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #374151;
}

.message-composer textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    resize: vertical;
}

.recipient-selection {
    display: flex;
    align-items: center;
    gap: 10px;
}

.recipient-selection label {
    font-weight: 500;
    color: #374151;
}

.recipient-selection select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .list-header,
    .worker-item {
        grid-template-columns: 60px 2fr 1fr 1fr 100px 100px;
    }
}

@media (max-width: 992px) {
    .worker-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-group {
        justify-content: center;
    }
    
    .search-group {
        justify-content: center;
    }
    
    .list-header,
    .worker-item {
        grid-template-columns: 60px 2fr 1fr 100px 80px;
    }
    
    .list-header .list-column:nth-child(3),
    .worker-item .worker-department {
        display: none;
    }
}

@media (max-width: 768px) {
    .worker-stats {
        justify-content: center;
    }
    
    .stat-badge {
        flex: 0 0 calc(50% - 15px);
        min-width: 140px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        flex: 0 0 100%;
    }
    
    .group-chat-container {
        flex-direction: column;
    }
    
    .group-selection {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .list-header,
    .worker-item {
        grid-template-columns: 60px 2fr 100px 80px;
    }
    
    .list-header .list-column:nth-child(2),
    .worker-item .worker-position {
        display: none;
    }
}

@media (max-width: 576px) {
    .action-group {
        flex-direction: column;
    }
    
    .action-group button {
        width: 100%;
        justify-content: center;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .stat-badge {
        flex: 0 0 100%;
    }
    
    .list-header,
    .worker-item {
        grid-template-columns: 60px 1fr 80px;
        padding: 10px;
    }
    
    .list-header .list-column:nth-child(5),
    .worker-item .worker-status {
        display: none;
    }
    
    .worker-actions-small {
        flex-direction: column;
    }
}

/* ============ WORKER DASHBOARD ============ */
#workerDashboard .tab-content {
    display: none;
    color: #333 !important;
}

#workerDashboard .tab-content.active {
    display: block;
}

/* ============ STOCK CONTROLS ============ */
.stock-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.stock-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    color: #333 !important;
}

.stock-threshold-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stock-threshold-control input {
    width: 80px;
    background: white !important;
    color: #333 !important;
}

/* ============ LOADING INDICATOR ============ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ NOTIFICATION SYSTEM ============ */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white !important;
    z-index: 10000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #3498db;
}

/* ============ ANALYTICS ============ */
.analytics-period-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.period-btn {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    color: #333 !important;
}

.period-btn.active {
    background: #1e3c72 !important;
    color: white !important;
    border-color: #1e3c72;
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    color: #333 !important;
}

.chart-title {
    color: #1e3c72 !important;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.profit-loss-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pl-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333 !important;
}

.pl-card.positive {
    border-left: 4px solid #27ae60;
}

.pl-card.negative {
    border-left: 4px solid #e74c3c;
}

.pl-card.neutral {
    border-left: 4px solid #3498db;
}

.pl-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.pl-positive {
    color: #27ae60 !important;
}

.pl-negative {
    color: #e74c3c !important;
}

.pl-label {
    font-size: 0.9rem;
    color: #666 !important;
}

.analytics-table {
    margin-top: 20px;
    overflow-x: auto;
    color: #333 !important;
}

.analytics-table th {
    background-color: #f8f9fa !important;
    color: #333 !important;
    font-weight: bold;
}

.analytics-table td {
    color: #333 !important;
}

.analytics-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.positive-change {
    color: #27ae60 !important;
    font-weight: bold;
}

.negative-change {
    color: #e74c3c !important;
    font-weight: bold;
}

.analytics-comparison {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #333 !important;
}

.analytics-comparison label {
    color: #333 !important;
}

.cost-breakdown {
    margin-top: 20px;
    color: #333 !important;
}

.cost-category {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #333 !important;
}

.cost-category:last-child {
    border-bottom: none;
}

.cost-percentage {
    color: #666 !important;
    font-size: 0.9rem;
}

/* ============ ENSURE ALL SECTIONS VISIBLE ============ */
#workerSection,
#productSection,
#serviceSection,
#workerProductSection,
#workerServiceSection,
#receiptsSection,
#workerReceiptsSection,
#stockSection {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============ PRINT STYLES ============ */
@media print {
    body * {
        visibility: hidden;
        background: white !important;
        color: black !important;
    }
    #receipt, #receipt * {
        visibility: visible;
        background: white !important;
        color: black !important;
    }
    #receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 15px;
        background: white !important;
        color: black !important;
    }
    #receipt * {
        background: white !important;
        color: black !important;
    }
}

@media (max-width: 768px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .analytics-period-selector {
        flex-direction: column;
    }
    
    .period-btn {
        width: 100%;
        text-align: center;
    }
    
    .analytics-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
}

/* ===== ADMIN DASHBOARD SPECIFIC STYLES ===== */

/* =========================
   CONTAINER
========================= */
#adminDashboard.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================
   CARD HEADER
========================= */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white !important;
    padding: 20px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: white !important;
}

.card-header .danger-btn {
    background: #e74c3c;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-header .danger-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white !important;
}

/* =========================
   FINANCIAL SUMMARY
========================= */
.financial-summary {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card h4 {
    color: #555 !important;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50 !important;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.stat-change.positive {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60 !important;
}

.stat-change.negative {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c !important;
}

.stat-change.neutral {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db !important;
}

/* =========================
   ADMIN SPECIFIC BUTTONS
========================= */
.primary-btn, .secondary-btn, .small-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(to right, #ff8c00, #ff6b00);
    color: white !important;
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(to right, #ff6b00, #e55a00);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
    color: white !important;
}

.secondary-btn {
    background: #6c757d;
    color: white !important;
}

.secondary-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: white !important;
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    background: #3498db;
    color: white !important;
    margin-top: 10px;
}

.small-btn:hover {
    background: #2980b9;
    color: white !important;
}

.financial-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

/* =========================
   RECENT TRANSACTIONS
========================= */
.recent-transactions {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.recent-transactions h4 {
    color: #1e3c72 !important;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

#transactions-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state {
    color: #6c757d !important;
    text-align: center;
    font-style: italic;
    padding: 40px 20px;
}

/* =========================
   FORM SECTIONS
========================= */
.form-section {
    background: #f8f9fa !important;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #eaeaea;
    animation: slideDown 0.3s ease;
    color: #333 !important;
}

.form-section h4 {
    color: #1e3c72 !important;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057 !important;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white !important;
    color: #333 !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* =========================
   WORKER MANAGEMENT
========================= */
.worker-management {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
}

.worker-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-width: 250px;
    background: white !important;
    color: #333 !important;
}

.search-btn {
    background: #6c757d;
    color: white !important;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.worker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-badge {
    background: white !important;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
}

.badge-label {
    display: block;
    color: #6c757d !important;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3c72 !important;
}

.workers-list {
    min-height: 300px;
}

/* =========================
   PRODUCTS & SERVICES
========================= */
.products-services {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
}

.ps-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.ps-tabs {
    display: flex;
    gap: 10px;
}

.ps-tab {
    padding: 10px 20px;
    border: none;
    background: #f8f9fa;
    color: #555 !important;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ps-tab.active {
    background: #1e3c72;
    color: white !important;
}

.ps-section {
    display: none;
}

.ps-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* =========================
   REPORTS DASHBOARD
========================= */
.reports-dashboard {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
}

.reports-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.reports-filters select,
.reports-filters input {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    min-width: 200px;
    background: white !important;
    color: #333 !important;
}

.report-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white !important;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.report-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.report-card h4 {
    color: #1e3c72 !important;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.report-card p {
    color: #6c757d !important;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.recent-reports {
    background: white !important;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.recent-reports h4 {
    color: #1e3c72 !important;
    margin-bottom: 20px;
}

/* =========================
   RECEIPT MANAGEMENT
========================= */
.receipt-management {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 8px;
}

.receipt-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.receipt-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.receipts-list {
    min-height: 300px;
}

/* =========================
   UPLOAD SECTION
========================= */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background: white !important;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f8f9fa !important;
}

.upload-placeholder {
    color: #6c757d !important;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.upload-hint {
    font-size: 0.85rem;
    color: #adb5bd !important;
    margin-top: 10px;
}

#file-preview {
    background: white !important;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 20px;
}

#file-preview h5 {
    color: #495057 !important;
    margin-bottom: 15px;
}

#file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa !important;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    color: #333 !important;
}

/* =========================
   CHECKBOX GROUP
========================= */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    color: #333 !important;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE DESIGN FOR ADMIN
========================= */
@media (max-width: 768px) {
    #adminDashboard.container {
        padding: 15px;
        margin: 10px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .tab-navigation {
        justify-content: center;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .financial-actions,
    .worker-actions,
    .ps-actions,
    .receipt-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box input {
        min-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .report-types {
        grid-template-columns: 1fr;
    }
    
    .reports-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reports-filters select,
    .reports-filters input {
        min-width: 100%;
    }
    
    .worker-stats,
    .receipt-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        text-align: center;
    }
    
    .ps-tabs {
        flex-direction: column;
    }
    
    .ps-tab {
        width: 100%;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .worker-stats,
    .receipt-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LOADING SPINNERS
   ============================================ */

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.spinner-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.success-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #27ae60;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.3s ease-out;
}

.success-spinner::after {
    content: '✓';
    color: #27ae60;
    font-size: 30px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Spinner message */
.spinner-message {
    position: absolute;
    bottom: -50px;
    color: white;
    font-size: 16px;
    text-align: center;
    width: 100%;
}

/* Inline loading spinner */
.inline-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* =========================
   Worker Submissions
   ========================= */
.approval-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.approval-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.worker-submission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 6px;
}

.worker-submission-info {
    flex: 1;
}

.worker-submission-info h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.worker-submission-info p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.worker-submission-actions {
    display: flex;
    gap: 10px;
}

.approve-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.reject-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.pending-badge {
    background-color: #ff9800;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

/* New stat colors */
.stat-change.warning {
    color: #ff9800;
}

.stat-change.info {
    color: #2196F3;
}

.stat-change.negative {
    color: #f44336;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #0077b6;
    --primary-orange: #ff7f11;
    --primary-gray: #6c757d;
    --accent-teal: #00a8cc;
    --accent-yellow: #ffc107;
    --accent-purple: #6f42c1;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --light-blue: #e3f2fd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange), var(--accent-purple));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.header .title {
    flex: 1;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.header h2 {
    margin: 5px 0 0 0;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn {
    background: linear-gradient(to bottom, var(--accent-teal), #0097b2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.login-btn:hover {
    background: linear-gradient(to bottom, #00bcd4, #0097b2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.home-icon {
    font-size: 24px;
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.home-icon:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.controls input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    background-color: white;
    color: var(--text-dark);
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.controls input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.controls button {
    background: linear-gradient(to bottom, var(--primary-blue), #0066a1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.controls button:hover {
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.receipt-btn {
    background: linear-gradient(to bottom, var(--accent-purple), #5a32a3);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.receipt-btn:hover {
    background: linear-gradient(to bottom, #7e57c2, #6f42c1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Category Navigation */
.nav-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 0;
}

.nav-item {
    padding: 10px 24px;
    background: linear-gradient(to bottom, var(--light-blue), #bbdefb);
    color: var(--text-dark);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    font-weight: 500;
}

.nav-item:hover {
    background: linear-gradient(to bottom, #bbdefb, #90caf9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-item.active {
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    color: white;
    font-weight: 600;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 127, 17, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 10px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.product-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 15px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.product-category {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
    text-align: center;
}

.product-footer {
    padding: 15px 20px;
    background: var(--light-bg);
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-to-cart-btn {
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(to bottom, #ff8c1a, #ff7f11);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 127, 17, 0.3);
}

.view-details {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-details:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

/* Cart Button */
.cart-btn {
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(255, 127, 17, 0.3);
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 127, 17, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: var(--primary-orange);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger);
}

/* Product Details Modal */
#productDetails {
    text-align: center;
}

.product-detail-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    text-align: center;
}

.product-detail-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.product-detail-category {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-detail-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-detail-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: left;
}

.product-detail-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.quantity-display {
    font-size: 20px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.add-to-cart-detail {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.add-to-cart-detail:hover {
    background: linear-gradient(to bottom, #ff8c1a, #ff7f11);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 127, 17, 0.3);
}

/* Cart Items */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.cart-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.cart-item-info {
    flex: 1;
    margin-left: 15px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-price {
    color: var(--text-light);
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.quantity-control button:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
}

.cart-item-total {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 80px;
    text-align: right;
}

.remove-item {
    color: var(--danger);
    cursor: pointer;
    margin-left: 15px;
    font-size: 20px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 2px solid #eee;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-actions, .modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cart-actions button, .modal-actions button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn {
    background: linear-gradient(to bottom, var(--primary-orange), #e67300);
    color: white;
}

.checkout-btn:hover {
    background: linear-gradient(to bottom, #ff8c1a, #ff7f11);
    transform: translateY(-2px);
}

.cancel-btn {
    background: var(--light-bg);
    color: var(--text-dark);
}

.cancel-btn:hover {
    background: #e9ecef;
}

/* Confirmation Buttons */
.confirmation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirmation-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--primary-blue), var(--accent-purple));
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

.success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls input,
    .controls button,
    .receipt-btn {
        width: 100%;
        text-align: center;
    }

    .nav-scroll {
        justify-content: center;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cart-item-info {
        margin-left: 0;
    }

    .cart-item-total {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .header h2 {
        font-size: 12px;
    }

    .header .logo {
        height: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }

    .product-header {
        min-height: 70px;
    }

    .product-icon {
        font-size: 30px;
    }
}

/* =========================
   PRINT STYLES FOR ADMIN
========================= */
@media print {
    .tab-navigation,
    .card-header .danger-btn,
    .financial-actions,
    .worker-actions,
    .ps-actions,
    .receipt-actions,
    .form-section,
    .search-box {
        display: none !important;
    }
    
    #adminDashboard.container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    body {
        background: white !important;
        padding-top: 0;
    }
    
    .tab-content {
        border: none !important;
        padding: 0 !important;
    }
}


