/* Core Themes & Reset */
:root {
    --primary-color: #8B5CF6;
    --primary-hover: #7C3AED;
    --bg-dark: #000D33;
    --bg-navy: #002171;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --gradient-bg: linear-gradient(135deg, #042f94 0%, #000d33 100%);
    --gradient-accent: linear-gradient(135deg, #7928CA 0%, #FF0080 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 12px -4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(255, 0, 128, 0.35);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient-bg);
    background-image: url(../images/backup.webp);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

body::-webkit-scrollbar {
    width: 8px;
    background-color: #000d33;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.95) 0%, rgba(9, 13, 22, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.45;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: #00e5ff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
}

.nav-link:hover, .nav-link.active {
    color: #00e5ff;
    border-bottom-color: #00e5ff;
}

.logout-btn {
    background-color: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background-color: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.settings-nav-btn {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: var(--transition-smooth);
    margin-right: -0.5rem;
}

.settings-nav-btn:hover {
    color: #00e5ff !important;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.mobile-nav-toggle .material-icons {
    font-size: 1.75rem;
}

/* MDL Dropdown Adjustments */
.mdl-menu__container {
    border-radius: 12px;
    box-shadow: var(--shadow-lg) !important;
    background-color: white !important;
    border: 1px solid var(--glass-border);
    margin-top: 5px;
}

.mdl-menu {
    background-color: white !important;
    padding: 0.5rem 0 !important;
}

.mdl-menu__item {
    color: var(--text-dark) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0 1.5rem !important;
    height: 44px !important;
    line-height: 44px !important;
}

.mdl-menu__item:hover {
    background-color: #f1f5f9 !important;
}

.menu-item-icon {
    font-size: 1.2rem !important;
    color: var(--text-muted);
}

/* Order notifications badge styling */
.badge-order-notify {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    margin-left: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    transition: var(--transition-smooth);
}

.badge-order-notify::after {
    content: attr(data-badge);
}

/* Dashboard Body Structure */
.caja-dashboard {
    flex-grow: 1;
    padding: 7.5rem 2rem 3rem 2rem;
    position: relative;
    z-index: 1;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Dashboard Subheader & Welcome */
.dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.welcome-icon {
    font-size: 2.75rem;
    color: #00e5ff;
    background-color: rgba(0, 229, 255, 0.10);
    padding: 0.6rem;
    border-radius: 14px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.welcome-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.welcome-subtitle strong {
    color: white;
    font-weight: 600;
}

/* Overview Widgets Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    transition: var(--transition-smooth);
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(61, 90, 254, 0.25);
}

.overview-card-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    background-color: rgba(61, 90, 254, 0.08);
    padding: 0.75rem;
    border-radius: 12px;
}

.stat-icon-success {
    color: var(--success);
    background-color: rgba(16, 185, 129, 0.08);
}

.stat-icon-accent {
    color: #00e5ff;
    background-color: rgba(0, 229, 255, 0.08);
}

.stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.15rem;
}

.stat-value-container {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-value {
    font-weight: 800;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.overview-card-action {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
    width: 100%;
}

.overview-card-action .btn {
    width: 100%;
}

/* Datepicker Styling */
.datepicker-wrapper {
    position: relative;
    margin-top: 0.4rem;
    width: 180px;
    max-width: 100%;
}

.modern-datepicker {
    width: 100%;
    padding: 0.5rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #f1f5f9;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.modern-datepicker:focus {
    background-color: white;
    border-color: var(--primary-color);
}

/* Data Tables Split Layout Grid */
.dashboard-tables-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.table-panel-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

.table-header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.table-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-header-title h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.table-header-title .text-primary {
    color: var(--primary-color);
}

.search-input-wrapper {
    position: relative;
    width: 220px;
    max-width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.15rem;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.25rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input-wrapper input:focus {
    background-color: white;
    border-color: var(--primary-color);
}

/* Material Design Table Overwrite */
.tableDiv {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background-color: #f8fafc;
    max-height: 480px;
    overflow-y: auto;
}

.tableDiv::-webkit-scrollbar {
    width: 6px;
    background-color: #f1f5f9;
}

.tableDiv::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

table.mdl-js-data-table {
    width: 100%;
    border: none;
    background: none;
    color: var(--text-dark);
    border-collapse: collapse;
}

table.mdl-js-data-table thead {
    background-color: #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

table.mdl-js-data-table th {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1.1rem;
    border-bottom: 2px solid var(--glass-border);
}

table.mdl-js-data-table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    vertical-align: middle;
}

table.mdl-js-data-table tbody tr {
    transition: var(--transition-smooth);
}

table.mdl-js-data-table tbody tr:hover {
    background-color: #f1f5f9;
    cursor: pointer;
}

table.mdl-js-data-table tbody tr:active {
    background-color: rgba(61, 90, 254, 0.08);
}

.mdl-data-table__cell--non-numeric {
    text-align: left !important;
}

/* Buttons Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 128, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn:disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* AdSense Container styling */
.ads-section {
    width: 100%;
    margin-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

/* Footer Section */
.main-footer {
    position: relative;
    background: linear-gradient(180deg, #090d16 0%, #03050a 100%);
    color: var(--text-light);
    padding: 3.5rem 2rem 2rem 2rem;
    margin-top: auto;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0.85;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    font-family: 'Alegreya Sans SC', sans-serif;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-link-group h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    font-weight: 600;
}

.footer-link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
}

.footer-link-group a:hover {
    color: #00e5ff;
    padding-left: 3px;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* LightBoxQR modal styles */
.LigthBoxQR {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -999;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.LigthBoxQR:target {
    opacity: 1;
    z-index: 2000;
    pointer-events: auto;
}

.BoxQR {
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    animation: modalAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.qr-modal-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -0.5rem;
}

.qr-code-wrapper {
    background-color: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: inline-block;
}

#qrcode {
    margin: 0 auto;
    width: 220px;
    height: 220px;
}

#qrcode img {
    display: block;
    width: 100%;
    height: 100%;
}

#CloseQr {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 2001;
}

#CloseQr:hover {
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modals animations */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal styles for dynamically loaded components */

/* Order Cancellation Modal overlay */
.DelDIV {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Order Cancellation Card / Admin verification card */
.CardDel {
    background-color: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), var(--shadow-glow);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dark);
}

.ORDERTitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.75rem;
}

#BoxClose {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    color: var(--text-muted) !important;
    -webkit-text-fill-color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    z-index: 10 !important;
    font-size: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#BoxClose:hover {
    color: #ef4444 !important;
    -webkit-text-fill-color: #ef4444 !important;
    transform: scale(1.15) rotate(90deg) !important;
}

.SubTEXT {
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: -0.25rem !important;
    border: 1px solid var(--glass-border) !important;
    letter-spacing: 0.5px !important;
}

.CardDelWide {
    max-width: 600px !important;
}

/* Order contents / details wrapper */
.Content2 {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.Content2::-webkit-scrollbar {
    width: 6px;
    background-color: #f1f5f9;
}

.Content2::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.CONTENTDEL {
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.TB {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 100px;
}

.Content2 hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 0.25rem 0;
}

.TYPE {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.75rem;
    margin-top: 0.25rem;
}

/* List of products inside the selected order details modal */
#tableFast {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
}

#tableFast th {
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid var(--glass-border);
}

#tableFast td {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    border-bottom: 1px solid #f1f5f9;
}

/* Modal text fields customization for dynamic cards */
.CardDel select.mdl-textfield__input,
.CardDel input.mdl-textfield__input {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.CardDel select.mdl-textfield__input:focus,
.CardDel input.mdl-textfield__input:focus {
    background-color: white;
    border-color: var(--primary-color);
}

.CardDel .mdl-textfield__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    text-align: left;
}

/* Dynamic Modals Buttons */
.CardDel button {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.88rem;
}

.CardDel button.mdl-button--accent {
    background-color: var(--primary-color);
    color: white;
}

.CardDel button.mdl-button--accent:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.CardDel #DelButton {
    background-color: #ef4444 !important;
    color: white;
}

.CardDel #DelButton:hover {
    background-color: #dc2626 !important;
}

/* Withdraw Modal card adjustments */
.PayDIV {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 5, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.CardPay {
    background-color: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), var(--shadow-glow);
    animation: modalAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-dark);
}

.CardPay select.mdl-textfield__input {
    color: var(--text-dark) !important;
}

.PAYTitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.CardPay .mdl-textfield {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.CardPay .mdl-textfield__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.CardPay input#MONEY {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: #f1f5f9;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 700;
    outline: none;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.CardPay input#MONEY:focus {
    background-color: white;
    border-color: var(--primary-color);
}

.CardPay button {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    margin: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.CardPay button#PAyButton {
    background-color: var(--primary-color);
    color: white;
}

.CardPay button#PAyButton:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.CardPay button:not(#PAyButton) {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.CardPay button:not(#PAyButton):hover {
    background-color: #f1f5f9;
    color: var(--text-dark);
}

/* SweetAlert Global Overwrite Styles */
.swal-modal {
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
}

.swal-title {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark) !important;
}

.swal-text {
    color: var(--text-muted) !important;
    text-align: center;
}

.swal-button {
    background-color: var(--primary-color) !important;
    border-radius: 8px;
}

.swal-button:hover {
    background-color: var(--primary-hover) !important;
}

.swal-button--cancel {
    background-color: #f1f5f9 !important;
    color: var(--text-dark) !important;
}

.swal-button--cancel:hover {
    background-color: #e2e8f0 !important;
}

/* Responsive Menu Navigation */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 4.8rem;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(0, 13, 51, 0.98);
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
        overflow: hidden;
        transition: var(--transition-smooth);
        border-bottom: 1px solid transparent;
        z-index: 999;
    }

    .nav-menu.mobile-active {
        height: calc(100vh - 4.8rem);
        padding: 2.5rem 2rem;
        border-bottom-color: rgba(255,255,255,0.1);
        overflow-y: auto;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
    }

    .settings-nav-btn {
        margin: 0.5rem 0;
    }

    .logout-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }
    
    .caja-dashboard {
        padding: 6.5rem 1rem 2rem 1rem;
    }
}

/* Dark Mode Overrides */
.dark-mode {
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --bg-light: #0b0f19;
    --danger: #ef4444;
}

.dark-mode body {
    color: var(--text-light);
}

.dark-mode .input-wrapper input,
.dark-mode select.mdl-textfield__input,
.dark-mode input.mdl-textfield__input,
.dark-mode .modern-datepicker {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode table.mdl-js-data-table {
    color: #f8fafc !important;
}

.dark-mode table.mdl-js-data-table thead {
    background-color: rgba(30, 41, 59, 0.5) !important;
}

.dark-mode table.mdl-js-data-table th {
    color: #f8fafc !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode table.mdl-js-data-table td {
    color: #cbd5e1 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode table.mdl-js-data-table tr:hover {
    background-color: rgba(30, 41, 59, 0.4) !important;
}

.dark-mode .tableDiv {
    background-color: rgba(15, 23, 42, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-mode .btn-outline {
    color: #a78bfa;
    border-color: #a78bfa;
}

.dark-mode .btn-outline:hover {
    background-color: #a78bfa;
    color: #0f172a;
}

.dark-mode .CardUSER, 
.dark-mode .CardV, 
.dark-mode .CardDel, 
.dark-mode .CardPay,
.dark-mode .BoxQR {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.dark-mode .ORDERTitle, 
.dark-mode .VTitle, 
.dark-mode .PAYTitle,
.dark-mode .qr-modal-title {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .SubTEXT {
    background-color: rgba(15, 23, 42, 0.8) !important;
    color: #00e5ff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode #tableFast th {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode #tableFast td {
    color: #cbd5e1 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.dark-mode .swal-modal {
    background-color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.dark-mode .swal-icon--success::before,
.dark-mode .swal-icon--success::after,
.dark-mode .swal-icon--success__hide-corners {
    background-color: #0f172a !important;
}

.dark-mode .swal-button--cancel {
    background-color: #1e293b !important;
    color: #ffffff !important;
}

.dark-mode .swal-button--cancel:hover {
    background-color: #334155 !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8) !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.theme-toggle-btn:hover {
    color: #00e5ff !important;
    background-color: rgba(255, 255, 255, 0.08);
}