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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1a0d;
    color: #f0f0f0;
    min-height: 100vh;
    line-height: 1.5;
}

.nav {
    background: #1a2f1e;
    border-bottom: 3px solid #22c55e;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    color: #d0d0d0;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.nav-links a.active {
    background: #22c55e;
    color: #0a1a0d;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: #d0d0d0;
	margin-left: auto;
}

.logout-btn {
    background: #dc2626;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.logout-btn:hover {
    background: #b91c1c;
}

.filters {
    background: #152619;
    border-bottom: 1px solid #22c55e;
    padding: 1rem;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 90;
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.filter-select {
    background: #1a2f1e;
    border: 1px solid #22c55e;
    color: #f0f0f0;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    min-width: 140px;
}

.filter-select:focus {
    outline: none;
    border-color: #16a34a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    margin-top: 80px;
}

.card {
    background: #152619;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #22c55e;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #22c55e;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-success {
    background: #22c55e;
    color: #0a1a0d;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

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

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}


.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #06b6d4;
    color: white;
}

.btn-info:hover {
    background: #0891b2;
}



.search-bar {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: #1a2f1e;
    border: 1px solid #22c55e;
    border-radius: 4px;
    color: #f0f0f0;
    font-size: 0.85rem;
}

.form-input:focus {
    outline: none;
    border-color: #16a34a;
}

.data-table {
    width: 100%;
    background: #152619;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #22c55e;
}

.data-table th,
.data-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.85rem;
}

.data-table td:last-child {
    padding: 1rem 0.8rem;
}

.data-table .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-width: 60px;
}

.data-table .btn:last-child {
    margin-right: 0;
}

.data-table th {
    background: #22c55e;
    font-weight: 600;
    color: #0a1a0d;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.data-table td {
    color: #f0f0f0;
}

.data-table tbody tr:hover {
    background: rgba(34, 197, 94, 0.1);
}

.status-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #22c55e;
    color: #0a1a0d;
}

.status-inactive {
    background: #dc2626;
    color: white;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.table-card {
    background: #152619;
    border: 2px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-card.available {
    border-color: #22c55e;
}

.table-card.occupied {
    border-color: #f97316;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.table-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.table-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #22c55e;
}

.table-status {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #d0d0d0;
    font-weight: 500;
}

.fab-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 50;
}

.fab {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #22c55e;
    color: #0a1a0d;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fab:hover {
    transform: scale(1.1);
}

.fab-blue {
    background: #3b82f6;
    color: white;
    display: none; /* Hide by default */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    overflow-y: auto;

}

.modal-content {
    background: #152619;
    margin: 1rem auto;
    border-radius: 8px;
    max-width: 95vw;
    width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid #22c55e;
    display: flex;
    flex-direction: column;
}

.modal-content.has-sticky-tabs .modal-header {
    border-bottom: none;
    padding-bottom: 1rem;
}

.modal-content.has-sticky-tabs .modal-body {
    padding-top: 0;
}

.modal-content.has-sticky-tabs .tabs {
    position: sticky;
    top: 0;
    background: #152619;
    z-index: 10;
    border-bottom: 1px solid #22c55e;
    margin: 0;
    padding: 8px 1rem;
    margin-top: 0;
}

.modal-content .tabs {
    position: sticky;
    top: 0;
    background: #152619;
    z-index: 10;
    border-bottom: 1px solid #22c55e;
    margin: 0;
    padding: 8px 1rem;
    border-top: 1px solid #22c55e;
}

.modal-content-large {
    width: 1000px !important;
    max-height: 85vh;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #22c55e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a2f1e;
}

.modal-header h3 {
    color: #22c55e;
    font-size: 1.2rem;
    font-weight: 600;
}

.close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #d0d0d0;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.close:hover {
    color: #ef4444;
}

.modal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.modal-content.has-sticky-tabs .modal-body {
    padding: 0 1rem 1rem 1rem;
    overflow-y: auto;
}

.modal-content.has-sticky-tabs .tab-content {
    padding-top: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #22c55e;
    background: #1a2f1e;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.pos-content {
    display: grid;
    grid-template-columns: 140px 1fr 220px;
    gap: 1rem;
    height: 400px;
}

.pos-categories {
    background: #1a2f1e;
    border-radius: 6px;
    padding: 0.8rem;
    overflow-y: auto;
    border: 1px solid #22c55e;
}

.category-btn {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.4rem;
    background: #152619;
    border: none;
    color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #22c55e;
    color: #0a1a0d;
}

.pos-items {
    background: #1a2f1e;
    border-radius: 6px;
    padding: 0.8rem;
    overflow-y: auto;
    border: 1px solid #22c55e;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
}

.item-card {
    background: #152619;
    border: 1px solid #22c55e;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.item-card:hover {
    background: #22c55e;
    color: #0a1a0d;
}

.pos-invoice {
    background: #1a2f1e;
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    border: 1px solid #22c55e;
}

.invoice-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.8rem;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.8rem;
}

.invoice-total {
    padding: 0.8rem 0;
    border-top: 2px solid #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    text-align: center;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #22c55e;
    margin-bottom: 1rem;
    gap: 0.2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.6rem 0.8rem;
    background: none;
    border: none;
    color: #d0d0d0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filters-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0.8rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
.pos-content {
    display: grid;
    grid-template-columns: 140px 1fr 220px;
    gap: 1rem;
    height: 600px;
}
    
    .data-table {
        font-size: 0.75rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
    
    .fab {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem auto;
        max-width: 98vw;
        width: 95vw;
        max-height: 95vh;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.6rem;
    }

    .modal-footer {
        gap: 0.8rem;
        row-gap: 0.6rem;
    }
    
    .modal-footer > div {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .modal-footer .btn {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

 .data-table .btn-sm {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
        min-width: 50px;
    }
    
    .data-table td:last-child > div {
        gap: 0.3rem !important;
    }
    
    .data-table td:last-child {
        padding: 0.8rem 0.5rem;
    }


}

@media (max-width: 480px) {
    .nav-links a {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .table-card {
        padding: 0.8rem;
    }
    
    .table-number {
        font-size: 1rem;
    }
    
    .table-timer {
        font-size: 1.1rem;
    }
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1a0d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
    border: 1px solid #152619;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}

::-webkit-scrollbar-corner {
    background: #0a1a0d;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #22c55e #0a1a0d;
}


.tabs {
    display: flex;
    border-bottom: 1px solid #22c55e;
    margin-bottom: 1rem;
    gap: 0.2rem;
    overflow-x: auto;
    align-items: center;
}

.table-card.maintenance {
    border-color: #f97316;
}

.table-card.inactive {
    border-color: #6b7280;
    opacity: 0.6;
}

.table-card.maintenance .table-timer,
.table-card.inactive .table-timer {
    color: #f97316;
    font-size: 0.9rem;
}

.pos-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 0.85rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.quantity-btn {
    background: none;
    border: 1px solid #22c55e;
    color: #22c55e;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: rgba(34, 197, 94, 0.1);
}

.remove-btn {
    border-color: #dc2626;
    color: #dc2626;
}

.remove-btn:hover {
    background: rgba(220, 38, 38, 0.1);
}

.items-tab-content {
    min-height: 400px;
}

.stock-warning {
    color: #dc2626 !important;
    font-weight: 600;
}

.stock-ok {
    color: #22c55e !important;
}

.payment-method-btn {
    background: #1a2f1e;
    border: 2px solid #6b7280;
    border-radius: 6px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f0f0f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-method-btn:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.payment-method-btn.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.payment-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #dc2626;
}

.payment-method-btn:disabled:hover {
    border-color: #dc2626;
    background: #1a2f1e;
}


.modal-footer > div {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.modal-footer .btn {
    min-width: 120px;
    white-space: nowrap;
}


/* Invoice Preview Styles */
.invoice-preview {
    background: white;
    color: black;
    border: 1px solid #ddd;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.invoice-preview-80mm {
    width: 80mm;
    max-width: 80mm;
    font-size: 11px;
    line-height: 1.2;
    margin: 0 auto;
}

.invoice-preview-58mm {
    width: 58mm;
    max-width: 58mm;
    font-size: 9px;
    line-height: 1.1;
    margin: 0 auto;
}

.invoice-preview-a4 {
    width: 210mm;
    max-width: 500px;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 auto;
}

.invoice-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding: 8px;
    margin-bottom: 10px;
}

.invoice-business-name {
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 4px;
}

.invoice-info-section {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.invoice-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 0 8px;
}

.invoice-items-section {
    border-top: 1px solid #000;
    padding-top: 8px;
    margin: 10px 0;
}

.invoice-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
    padding: 0 8px;
    font-size: 0.9em;
}

.invoice-totals-section {
    border-top: 2px solid #000;
    padding-top: 8px;
    margin-top: 10px;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    padding: 0 8px;
    font-size: 0.9em;
}

.invoice-final-total {
    border-top: 2px solid #000;
    padding-top: 4px;
    font-weight: bold;
    font-size: 1.1em;
}

.invoice-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 8px;
    border-top: 1px solid #000;
    font-size: 0.8em;
    padding: 8px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

#invoiceDisplayContainer {
    scrollbar-width: thin;
    scrollbar-color: #22c55e #1a2f1e;
}

#invoiceDisplayContainer::-webkit-scrollbar {
    width: 8px;
}

#invoiceDisplayContainer::-webkit-scrollbar-track {
    background: #1a2f1e;
    border-radius: 4px;
}

#invoiceDisplayContainer::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 4px;
}

#invoiceDisplayContainer .header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#invoiceDisplayContainer .final-total {
    border-top: 2px solid #000;
    padding-top: 5px;
    font-weight: bold;
    font-size: 14px;
}

.items-subtabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    background: #1a2f1e;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #22c55e;
}

.items-subtab-btn {
    background: #0f1f12;
    border: 2px solid #2a4d2e;
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d0d0d0;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.items-subtab-btn:hover {
    border-color: #22c55e;
    background: #152619;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.items-subtab-btn.active {
    border-color: #22c55e;
    background: linear-gradient(135deg, #152619 0%, #1a2f1e 100%);
    color: #22c55e;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.items-subtab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.subtab-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.items-subtab-btn:hover .subtab-icon,
.items-subtab-btn.active .subtab-icon {
    filter: grayscale(0);
}

.subtab-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.items-subtab-btn.active .subtab-label {
    color: #22c55e;
}

.subtab-description {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.2;
}

.items-subtab-btn.active .subtab-description {
    color: #d0d0d0;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .items-subtabs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .items-subtab-btn {
        min-height: 80px;
        padding: 1rem;
        flex-direction: row;
        text-align: left;
    }
    
    .subtab-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .subtab-label {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }
    
    .subtab-description {
        font-size: 0.75rem;
    }
}

/* Animation for tab content switching */
.tab-content {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.stats-card {
    background: #1a2f1e;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stats-label {
    color: #d0d0d0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.stats-value {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: 700;
}

.member-credit-balance {
    transition: background-color 0.3s ease;
}

.credit-deduction-highlight {
    background-color: #fef3c7 !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.table-timer.pay-status {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    animation: blink 1s infinite;
}

.table-card.checkedout {
    background: #7c2d12;
    border-color: #dc2626 !important;
}

.table-card.checkedout .table-timer {
    color: #dc2626 !important;
    font-weight: bold;
    animation: blink 1s infinite;
}

/* Danger Zone Styling */
.danger-zone {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #374151;
    text-align: center;
}

.danger-zone h3 {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.danger-zone p {
    color: #d0d0d0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.danger-zone .btn-danger {
    background: #dc2626;
    border: 1px solid #dc2626;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.danger-zone .btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* Enhanced modal styles for new 6-modal system */
.modal-content-large {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.has-sticky-tabs {
    position: relative;
}

.has-sticky-tabs .tabs {
    position: sticky;
    top: 0;
    background: #0a0a0a;
    z-index: 10;
    border-bottom: 1px solid #22c55e;
    padding: 0 0 10px 0;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #22c55e;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #6b7280;
    color: #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tab-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.tab-btn.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #0a0a0a;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.payment-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #1a2f1e;
    border: 2px solid #6b7280;
    border-radius: 8px;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 80px;
}

.payment-method-btn:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.payment-method-btn.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.package-selection-card {
    border: 2px solid #6b7280;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1a2f1e;
}

.package-selection-card:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

.package-selection-card.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

/* Responsive design for modals */
@media (max-width: 768px) {
    .modal-content-large {
        width: 95%;
        max-height: 95vh;
    }
    
    .tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .payment-method-btn {
        min-height: 60px;
        padding: 0.5rem;
    }
}

/* Enhanced form styling for new modals */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: #1a2f1e;
    color: #f0f0f0;
    border: 1px solid #6b7280;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.form-input:readonly {
    background: #111827;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Button styling consistency */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-success {
    background: #22c55e;
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

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

.btn-secondary:hover {
    background: #4b5563;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-info {
    background: #0891b2;
    color: white;
}

.btn-info:hover {
    background: #0e7490;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn:disabled {
    background: #374151;
    color: #9ca3af;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: #374151;
}


/* Reset any default margins/padding that might interfere */
.login-page {
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* Input focus effects */
.login-input:focus {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15) !important;
    outline: none !important;
    background: rgba(15, 15, 15, 0.95) !important;
    transform: translateY(-1px);
}

.login-input::placeholder {
    color: #aaa !important;
    font-weight: 400;
}

/* Button hover effects */
.login-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Card hover effect */
.login-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(34, 197, 94, 0.2) !important;
}

.login-page .card:hover img {
    transform: scale(1.08) rotate(5deg);
}

/* VYROX AI link hover */
.login-page a[href*="vyrox.com"]:hover {
    color: #86efac !important;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 1.5rem !important;
    }
    
    .login-page .card-header {
        padding: 0rem 0rem 0rem !important;
    }
    
    .login-page .card-body {
        padding: 1.5rem !important;
    }
    
    .login-page h1 {
        font-size: 1.7rem !important;
    }
    
    .login-page p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem !important;
    }
    
    .login-page h1 {
        font-size: 1.5rem !important;
    }
    
    .login-page p {
        font-size: 0.9rem !important;
    }
}


/* Vanity mode filter styling */
.vanity-mode-filter {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 2px solid #22c55e !important;
    position: relative;
}

.vanity-mode-filter::after {
    content: "🔒";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #22c55e;
    font-size: 0.8rem;
}

.vanity-indicator {
    animation: vanityFadeIn 0.5s ease-in-out;
}

@keyframes vanityFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive vanity indicator */
@media (max-width: 768px) {
    .vanity-indicator {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
    
    .vanity-indicator span:first-child {
        display: none;
    }
}

/* WeChat-style Login Loader Styles */
.wechat-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.wechat-loader-box {
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease-out;
}

.wechat-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #07C160;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.wechat-loader-text {
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled button state */
#loginBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}


.btn-info {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: white;
}

.btn-info:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

#qrCodeContainer img {
    max-width: 100%;
    height: auto;
}

   /* Prevent double-tap zoom on mobile devices */
    #memberPortal * {
        touch-action: manipulation !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }
    
    /* Allow text selection for input fields */
    #memberPortal input, #memberPortal textarea {
        -webkit-user-select: text !important;
        -khtml-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
    }
    
    /* Prevent text selection highlighting */
    #memberPortal *::selection {
        background: transparent;
    }
    
    #memberPortal *::-moz-selection {
        background: transparent;
    }
    
    /* Prevent image dragging */
    #memberPortal img {
        -webkit-user-drag: none !important;
        -khtml-user-drag: none !important;
        -moz-user-drag: none !important;
        -o-user-drag: none !important;
        user-drag: none !important;
    }
    
    /* Disable text selection on buttons */
    #memberPortal button {
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -khtml-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

/* Add this CSS to make disabled input text color match disabled select text color */
.form-input:disabled {
    color: #6c757d !important; /* Same grey color as disabled select */
}

select.form-input:disabled {
    color: #6c757d !important; /* Ensure select also has consistent grey text */
}

#revenues > div.container > div.filters-container
{
margin-bottom: 1.5rem;
}


/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.user-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a2f1e;
    border: 1px solid #22c55e;
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dropdown-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -1rem;
        min-width: 160px;
    }
    
    .user-dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .user-dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}
