/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light mode colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f7fafc;
    --text-primary: #1a202c;
    --text-secondary: #2d3748;
    --text-tertiary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.12);
    --modal-overlay: rgba(26, 32, 44, 0.55);
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #374151;
    --text-primary: #f7fafc;
    --text-secondary: #edf2f7;
    --text-tertiary: #cbd5e0;
    --text-muted: #a0aec0;
    --border-color: #4a5568;
    --shadow: rgba(0,0,0,0.3);
    --shadow-hover: rgba(0,0,0,0.4);
    --modal-overlay: rgba(0, 0, 0, 0.75);
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1002;
    background: #3F4B5B;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.mobile-menu-toggle:hover {
    background: #2d3748;
    transform: scale(1.05);
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #3F4B5B 0%, #2d3748 100%);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar.mobile-open {
    transform: translateX(0);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.sidebar-footer {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 0 25px;
}

/* Dark Mode Toggle */
.dark-mode-toggle-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 25px;
}

.dark-mode-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dark-mode-toggle i {
    font-size: 1.1rem;
}

[data-theme="dark"] .dark-mode-toggle i.fa-moon::before {
    content: "\f186"; /* Sun icon */
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo-image {
    max-width: 180px;
    height: auto;
    display: block;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #F27B21;
}

.menu-item.active {
    background: rgba(242, 123, 33, 0.2);
    border-left-color: #F27B21;
}

.menu-item i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.menu-item span {
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.section-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F27B21 0%, #D4A04B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.stat-content p {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Form Styles */
.form-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.form-card {
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.form-card:hover {
    border-color: #F27B21;
    box-shadow: 0 4px 15px rgba(242, 123, 33, 0.1);
}

.form-card.pricing-card {
    background: var(--bg-tertiary);
    border-color: #F27B21;
}

.card-header {
    background: linear-gradient(135deg, #F27B21 0%, #D4A04B 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.card-header i {
    font-size: 1.3rem;
    margin-right: 12px;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.form-group-spacing-top {
    margin-top: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.optional-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group select {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group select option {
    background: #3F4B5B;
    color: white;
    padding: 10px;
}

[data-theme="dark"] .form-group select:focus option {
    background: white;
    color: #1a202c;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #F27B21;
}

.form-group select:focus {
    background: #3F4B5B;
    color: white;
    box-shadow: 0 0 0 3px rgba(242, 123, 33, 0.1);
}

[data-theme="dark"] .form-group select:focus {
    background: white;
    color: #1a202c;
}

/* Guest Count Slider */
.guest-count-container {
    position: relative;
}

.guest-count-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.guest-count-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F27B21;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.guest-count-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F27B21;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.guest-count-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #F27B21;
    margin-bottom: 10px;
}

.guest-count-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #718096;
}

.guest-count-input {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.guest-count-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.guest-count-input input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.guest-count-input input[type="number"]:focus {
    outline: none;
    border-color: #F27B21;
    box-shadow: 0 0 0 3px rgba(242, 123, 33, 0.1);
}

/* Table Configuration Styles */
.table-calculation {
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.table-info {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.table-info span {
    color: #F27B21;
    font-size: 1.1rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
}

.form-group.entremeses-asopao-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.checkbox-label:hover {
    border-color: #F27B21;
    background: var(--bg-tertiary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #F27B21;
    border-color: #F27B21;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Checkbox Box Design for Panecillos */
.panecillos-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    -webkit-user-select: none;
    user-select: none;
    margin: 0;
}

.form-group.panecillos-group {
    margin-bottom: 10px;
    padding: 8px 0;
}

.check-box {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
}

.panecillos-label input[type="checkbox"] {
    display: none;
}

.panecillos-label input[type="checkbox"]:checked + .check-box {
    background-color: #F27B21;
    border-color: #F27B21;
}

.panecillos-label input[type="checkbox"]:checked + .check-box::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.panecillos-label:hover .check-box {
    border-color: #F27B21;
}

.panecillos-text {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* Pricing Summary */
.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Modal Styles */
.hidden { display: none !important; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease, background-color 0.3s ease;
}

.modal {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-hover);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease, background-color 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F27B21 0%, #D4A04B 100%);
    color: white;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(90vh - 120px); /* header + actions approx */
}

/* Visible state triggers entrance animation */
.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.visible .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Validation Error Modal Styles */
.validation-modal {
    max-width: 550px;
    width: 90%;
}

.validation-header {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.validation-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.validation-header h3 i {
    font-size: 1.8rem;
    color: #ffd700;
}

.validation-body {
    padding: 30px;
}

.validation-message {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.missing-fields-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.missing-fields-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fee;
    border-left: 4px solid #e53e3e;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #742a2a;
    transition: all 0.3s ease;
}

.missing-fields-list li:hover {
    background: #fdd;
    transform: translateX(4px);
}

.missing-fields-list li i {
    color: #e53e3e;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.protein-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Accordion styles for modal */
.accordion {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.accordion-summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.accordion[open] .accordion-summary {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.accordion-content {
    padding: 14px;
}

/* Beverage item styling to match app design */
.modal .protein-grid > div {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.3s ease;
}

.modal .protein-grid label {
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modal .protein-grid input[type="number"] {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.modal .protein-grid input[type="number"]:focus {
    outline: none;
    border-color: #F27B21;
    box-shadow: 0 0 0 3px rgba(242, 123, 33, 0.1);
}

.modal .protein-grid > div.selected {
    border-color: #F27B21;
    box-shadow: 0 6px 18px rgba(242, 123, 33, 0.18);
    transform: translateY(-2px);
}

@keyframes pulseSelect {
    0% { box-shadow: 0 0 0 0 rgba(102,126,234,0.35); }
    100% { box-shadow: 0 0 0 16px rgba(102,126,234,0); }
}

.modal .protein-grid > div.just-selected {
    animation: pulseSelect 0.6s ease-out;
}

/* Quantity Selector Styles */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 150px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quantity-btn {
    background: #3F4B5B;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #2d3748;
}

/* Dark mode: Make quantity buttons orange */
[data-theme="dark"] .quantity-btn {
    background: #F27B21;
    color: white;
}

[data-theme="dark"] .quantity-btn:hover {
    background: #D4A04B;
}

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

.quantity-selector input[type="number"] {
    flex: 1;
    border: none;
    text-align: center;
    padding: 10px 5px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-width: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 600px) {
    .modal .protein-grid > div {
        flex-direction: column;
        align-items: stretch;
    }
    .modal .protein-grid input[type="number"] {
        width: 100%;
    }
    .quantity-selector {
        max-width: 100%;
    }
}

/* Food & Beverage summary */
.food-summary {
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.food-summary ul {
    margin: 0 0 0 18px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.pricing-item.total {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-secondary);
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.pricing-item.deposit {
    font-weight: 700;
    font-size: 1.2rem;
    color: #F27B21;
    border-top: 2px dashed #cbd5e0;
    padding-top: 15px;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(242, 123, 33, 0.05) 0%, rgba(212, 160, 75, 0.05) 100%);
    padding: 15px;
    border-radius: 8px;
    margin-left: -15px;
    margin-right: -15px;
}

.tip-label {
    display: inline-block;
    margin-right: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.tip-select {
    display: inline-block;
    padding: 10px 40px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: var(--bg-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F27B21' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    min-width: 120px;
    box-shadow: 0 2px 4px var(--shadow);
    position: relative;
}

.tip-select::-ms-expand {
    display: none;
}

.tip-select:hover {
    border-color: #F27B21;
    background: var(--bg-tertiary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F27B21' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    box-shadow: 0 4px 8px rgba(242, 123, 33, 0.15);
    transform: translateY(-1px);
}

.tip-select:focus {
    outline: none;
    border-color: #F27B21;
    box-shadow: 0 0 0 3px rgba(242, 123, 33, 0.2), 0 4px 12px rgba(242, 123, 33, 0.15);
    background: #3F4B5B;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F27B21' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

[data-theme="dark"] .tip-select:focus {
    background: white;
    color: #1a202c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F27B21' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
}

.tip-select option {
    padding: 10px;
    background: #3F4B5B;
    color: white;
    font-weight: 500;
}

[data-theme="dark"] .tip-select:focus option {
    background: white;
    color: #1a202c;
}

.tip-amount {
    margin-left: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #F27B21;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(242, 123, 33, 0.1) 0%, rgba(212, 160, 75, 0.1) 100%);
    border-radius: 8px;
}

/* Button Styles */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.btn-primary {
    background: linear-gradient(135deg, #F27B21 0%, #D4A04B 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 123, 33, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 123, 33, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

.btn-outline {
    background: #F27B21;
    color: white;
    border: 2px solid #F27B21;
    margin-bottom: 10px;
}

.btn-outline:last-child {
    margin-bottom: 0;
}

.btn-outline:hover {
    background: transparent;
    color: #F27B21;
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Reservations Grid */
.reservations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.reservation-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid #F27B21;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.reservation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.reservation-client {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.reservation-total {
    font-weight: 700;
    font-size: 1.3rem;
    color: #F27B21;
}

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.reservation-detail {
    display: flex;
    flex-direction: column;
}

.reservation-detail strong {
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reservation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 20px;
}

.reservation-actions .btn {
    width: 100px;
    height: 38px;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.reservation-actions .btn-primary {
    width: 140px;
}

.reservation-actions .btn:hover {
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.4);
}

/* Calendar Styles */
.calendar-container {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.calendar-navigation h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.calendar-navigation .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.calendar-days-header {
    display: contents;
}

.calendar-days-header .calendar-day-header {
    background: #2d3748;
    color: white;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 0;
    margin-bottom: 0;
}

.calendar-day {
    background: var(--bg-secondary);
    padding: 12px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day:hover {
    background: var(--bg-tertiary);
}

.calendar-day:hover .calendar-day-number {
    color: #F27B21;
}

.calendar-day.empty {
    background: var(--bg-primary);
    opacity: 0.5;
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.calendar-day.today .calendar-day-number {
    background: #F27B21;
    color: white;
    padding: 4px 8px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.calendar-event {
    background: linear-gradient(135deg, #F27B21 0%, #D4A04B 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(242, 123, 33, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    line-height: 1.4;
}

.calendar-event small {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 3px;
}

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

.calendar-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 123, 33, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #D4A04B 0%, #F27B21 100%);
}

.calendar-event:hover::before {
    left: 100%;
}

.calendar-event:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(242, 123, 33, 0.3);
}

/* Reservation Details Modal Styles */
.reservation-details-modal {
    max-width: 800px;
}

.reservation-details-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #F27B21;
    transition: background-color 0.3s ease;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.detail-section h4 i {
    color: #F27B21;
    font-size: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.detail-value {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.food-beverage-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.food-service-section,
.beverage-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-bullet-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.detail-bullet-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.detail-bullet-list li::before {
    content: '•';
    color: #F27B21;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 4px;
}

.pricing-section {
    background: var(--bg-tertiary);
    border-left-color: #48bb78;
    transition: background-color 0.3s ease;
}

.pricing-breakdown-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-row.total-row {
    font-weight: 700;
    font-size: 1.3rem;
    color: #2d3748;
    border-top: 2px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 5px;
}

.pricing-row.deposit-row {
    font-weight: 700;
    font-size: 1.2rem;
    color: #F27B21;
    background: linear-gradient(135deg, rgba(242, 123, 33, 0.05) 0%, rgba(212, 160, 75, 0.05) 100%);
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    border: none;
}

.deposit-status-toggle {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    border: 2px solid transparent;
}

.deposit-status-toggle.unpaid {
    background: rgba(245, 101, 101, 0.1);
    color: #e53e3e;
    border-color: rgba(245, 101, 101, 0.3);
}

.deposit-status-toggle.unpaid:hover {
    background: rgba(245, 101, 101, 0.2);
    border-color: rgba(245, 101, 101, 0.5);
    transform: translateY(-1px);
}

.deposit-status-toggle.paid {
    background: rgba(72, 187, 120, 0.1);
    color: #38a169;
    border-color: rgba(72, 187, 120, 0.3);
}

.deposit-status-toggle.paid:hover {
    background: rgba(72, 187, 120, 0.2);
    border-color: rgba(72, 187, 120, 0.5);
    transform: translateY(-1px);
}

.deposit-status-toggle:active {
    transform: translateY(0);
}

/* Analytics Styles */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.analytics-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.analytics-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.chart-placeholder {
    height: 200px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.stats-display {
    text-align: center;
    padding: 20px;
}

.stats-display h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #F27B21;
    margin-bottom: 10px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

/* Recent Lists */
.recent-list,
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item,
.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border-left: 4px solid #F27B21;
    transition: background-color 0.3s ease;
}

.recent-item-info,
.upcoming-item-info {
    display: flex;
    flex-direction: column;
}

.recent-item-info strong,
.upcoming-item-info strong {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.recent-item-info span,
.upcoming-item-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reservation-card {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .main-content {
        position: relative;
        z-index: 1;
        margin-left: 0;
        padding: 20px;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .section-header {
        padding-right: 80px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .reservations-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-details {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-navigation h2 {
        font-size: 1.5rem;
    }
    
    .calendar-navigation .btn {
        width: 100%;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }
    
    .section-header h1 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #F27B21;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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