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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a5568;
}

.nav-logo i {
    color: #667eea;
    font-size: 2rem;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 4px;
}

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

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #667eea;
    color: white;
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.castle-illustration {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.hero-logo {
    width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

/* Forms */
.reservation-section,
.admin-section {
    padding: 4rem 0;
    background: white;
    min-height: calc(100vh - 80px);
}

.reservation-form-container,
.admin-login-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Admin Dashboard */
.admin-dashboard {
    padding: 2rem 0;
    background: #f7fafc;
    min-height: calc(100vh - 80px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tab-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Cards */
.reservation-card,
.room-card,
.table-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.reservation-card:hover,
.room-card:hover,
.table-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

.card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-confirmed {
    background: #eeeeee;
    color: #333333;
}

.status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.card-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.detail-label {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
    color: #2d3748;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

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

/* Loading and Messages */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background: #48bb78;
    color: white;
    border-left: 4px solid #38a169;
}

.message-error {
    background: #f56565;
    color: white;
    border-left: 4px solid #e53e3e;
}

.message-info {
    background: #4299e1;
    color: white;
    border-left: 4px solid #3182ce;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.8;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .castle-illustration {
        font-size: 8rem;
        margin-top: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Dashboard Styles */
.dashboard-overview {
    padding: 2rem;
}

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

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.stat-info p {
    color: #666;
    margin: 0;
    font-size: 0.875rem;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "chart chart"      /* chart full width on top */
        "upcoming upcoming"/* make upcoming full width */
        "notes notes";     /* notes full width below */
    gap: 1.5rem;
}

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

.chart-section h3 {
    margin: 0 0 1rem 0;
    color: #2d3748;
}

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

/* Explicit grid placement using semantic classes */
.notes-section.team-notes {
    grid-area: notes;
    min-height: 540px;
}

/* Upcoming reservations placed left under chart */
.notes-section.upcoming-reservations {
    grid-area: upcoming;
    /* make it wider and clearer */
    padding: 1.25rem;
}

/* Upcoming reservations enhanced styles */
.upcoming-day {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.upcoming-day-header {
    padding: 8px 12px;
    background: #f1f5f9; /* light slate */
    color: #0f172a;
    border-left: 4px solid #64748b;
}
.upcoming-day-list {
    padding: 6px 8px;
}
.reservation-line {
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding:8px 6px;
    border-bottom:1px dashed #e5e7eb;
    cursor:pointer;
    font-size: 0.95rem;
}
.reservation-line:hover {
    background:#f8fafc;
}
.reservation-line .meta {
    color:#475569;
}

/* Ensure left/right parts wrap nicely on small widths */
.reservation-line .left, .reservation-line .right {
    flex: 1 1 320px;
    min-width: 240px;
}

@media (max-width: 768px) {
    .reservation-line .left, .reservation-line .right {
        flex-basis: 100%;
        min-width: 0;
    }
}

.notes-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.notes-header h3 {
    margin: 0;
    color: #2d3748;
}

.notes-list, .guest-notes-list {
    max-height: 520px; /* allow more content visible */
    overflow-y: auto;
}

.note-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    position: relative;
}

.note-item.priority-high {
    border-left: 4px solid #f6ad55;
}

.note-item.priority-urgent {
    border-left: 4px solid #f56565;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.note-title {
    font-weight: 600;
    color: #2d3748;
}

.note-meta {
    font-size: 0.75rem;
    color: #666;
}

.note-content {
    color: #4a5568;
    line-height: 1.5;
}

.flex-between span { font-size: 0.95rem; }

.guest-note-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.guest-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.guest-name {
    font-weight: 600;
    color: #2d3748;
}

.reservation-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.type-birthday { background: #fed7d7; color: #c53030; }
.type-party { background: #fdd6cc; color: #dd6b20; }
.type-team_event { background: #d6f5d6; color: #38a169; }
.type-special_event { background: #e9d8fd; color: #805ad5; }
.type-fun { background: #bee3f8; color: #3182ce; }
.type-dining { background: #e2e8f0; color: #4a5568; }

/* Customers Table */
.customers-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.search-controls input {
    max-width: 300px;
}

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

.customers-table th,
.customers-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.customers-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.customers-table tbody tr:hover {
    background: #f7fafc;
}

/* Today's Reservations */
.today-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.today-controls select,
.today-controls input {
    min-width: 150px;
}

.today-reservations {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.today-reservation-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

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

.customer-info h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.reservation-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: #2d3748;
    margin-top: 0.25rem;
}

.table-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1100px;
    width: 96%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

/* Enhanced reservation details modal layout */
.modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.modal-body .reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #edf2f7;
}
.modal-body .customer-info h4 {
    font-size: 1.4rem;
    margin: 0;
}
.modal-body .reservation-time {
    font-weight: 700;
    font-size: 1.1rem;
}
.modal-actions .btn {
    min-width: 120px;
}

.modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
}

.modal-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.modal-form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding: 0 1.5rem 1.25rem;
}

/* Admin Reservation Form */
.admin-reservation-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

/* Settings */
.settings-content {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.setting-actions {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-area,
    .print-area * {
        visibility: visible;
    }
    
    .print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .name-tag {
        width: 8cm;
        height: 5cm;
        border: 2px solid #333;
        margin: 0.5cm;
        padding: 0.5cm;
        page-break-inside: avoid;
        display: inline-block;
        text-align: center;
    }
    
    .name-tag h3 {
        margin: 0;
        font-size: 18pt;
    }
    
    .name-tag p {
        margin: 0.2cm 0;
        font-size: 12pt;
    }
} 

/* Enhanced Settings Styles */
.settings-content {
    max-width: 1000px;
}

/* Working Hours Styles */
.working-hours-container {
    margin-bottom: 1rem;
}

.working-hours-day {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.working-hours-day:hover {
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.working-hours-day.closed {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.day-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.day-toggle {
    margin-bottom: 0.75rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.time-input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
}

.time-input {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 120px;
}

.time-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.time-separator {
    font-weight: 500;
    color: #718096;
    margin-top: 1.5rem;
}

/* Special Days Styles */
.special-day-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.special-day-form input {
    flex: 1;
    min-width: 150px;
}

.special-days-list {
    margin-top: 1rem;
}

.special-day-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.special-day-info {
    flex: 1;
}

.special-day-date {
    font-weight: 600;
    color: #333;
}

.special-day-reason {
    color: #666;
    font-size: 0.9rem;
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.loading-text {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 1rem;
} 

/* Table Management */
.tables-grid {
    margin-top: 1.5rem;
}

/* Tables list view */
.tables-list table {
    width: 100%;
    border-collapse: collapse;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #e5e7eb;
  transition: .2s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; top: 3px;
  background: #fff;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background: #22c55e; /* green */
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}
.tables-list th, .tables-list td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}
.tables-list th {
    background: #f9fafb;
    font-weight: 600;
}
.btn-xs {
    padding: 2px 6px;
    font-size: 12px;
}

.room-section {
    margin-bottom: 2rem;
}

.room-title {
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

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

.table-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.table-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.table-header h5 {
    margin: 0;
    color: #2d3748;
    font-size: 1.125rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small.btn-secondary {
    background: #718096;
    color: white;
}

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

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

.btn-small.btn-danger:hover {
    background: #c53030;
}

.table-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.info-item i {
    width: 16px;
    color: #667eea;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-controls select {
    min-width: 200px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    width: 92%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h4 {
    margin: 0;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #4a5568;
}

.modal-content form {
    padding: 1.5rem;
}

.empty-text, .error-text {
    text-align: center;
    padding: 2rem;
    color: #718096;
    font-style: italic;
}

.error-text {
    color: #e53e3e;
}

/* Reservations Management */
.reservation-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.reservation-controls select,
.reservation-controls input {
    min-width: 150px;
}

.reservations-list {
    margin-top: 1.5rem;
}

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

.reservation-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.reservation-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reservation-card.confirmed {
    border-left: 4px solid #48bb78;
}

.reservation-card.pending {
    border-left: 4px solid #ed8936;
}

.reservation-card.cancelled {
    border-left: 4px solid #f56565;
    opacity: 0.7;
}

.reservation-card.completed {
    border-left: 4px solid #38b2ac;
}

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

.reservation-header h5 {
    margin: 0;
    color: #2d3748;
    font-size: 1.125rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #eeeeee;
    color: #333333;
}

/* Explicit styles for runtime flags on generic status badges */
.status-arrived {
    background: #e8f5e8;
    color: #2e7d32;
}
.status-no-show {
    background: #ffebee;
    color: #c62828;
}

.status-pending {
    background: #fbd38d;
    color: #744210;
}

.status-cancelled {
    background: #fed7d7;
    color: #742a2a;
}

.status-completed {
    background: #b2f5ea;
    color: #234e52;
}

.reservation-details {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.detail-row i {
    width: 16px;
    color: #667eea;
}
.detail-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reservation-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.large-modal .modal-content {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .reservations-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-controls {
        flex-direction: column;
        align-items: stretch;
    }
} 

/* Table Selection Modal Styles */
.table-selection-content {
    max-height: 400px;
    overflow-y: auto;
}

.current-selection {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.selected-table {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 3px;
    font-size: 12px;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.table-option {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

.table-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.table-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}
.table-option.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}
.table-option .table-badge {
    margin-top: 6px;
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 10px;
    background: #f8d7da;
    color: #a94442;
}

.table-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.table-capacity {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.table-room {
    font-size: 11px;
    color: #999;
}

.tables-selection {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.current-tables {
    margin-bottom: 10px;
}

.current-tables strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.table-selection-controls {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
} 

/* Capacity Information Styles */
.capacity-info {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ccc;
}

.capacity-info h5 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.capacity-status {
    font-size: 12px;
    font-weight: bold;
}

.capacity-perfect {
    background-color: #d4edda;
    border-left-color: #28a745;
}

.capacity-perfect .capacity-status {
    color: #155724;
}

.capacity-shortage {
    background-color: #f8d7da;
    border-left-color: #dc3545;
}

.capacity-shortage .capacity-status {
    color: #721c24;
}

.capacity-excess {
    background-color: #fff3cd;
    border-left-color: #ffc107;
}

.capacity-excess .capacity-status {
    color: #856404;
}

.capacity-summary {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    font-weight: bold;
} 

/* Daily View Styles */
.daily-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-display {
    font-size: 18px;
    font-weight: bold;
    min-width: 120px;
    text-align: center;
}

.daily-view-container {
    display: flex;
    height: calc(100vh - 200px);
    gap: 20px;
}

.reservations-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.layout-panel {
    flex: 2;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.no-reservations-message,
.no-rooms-message,
.no-tables-message,
.no-room-message {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
}

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    margin: 0;
    color: #333;
}

.filter-buttons {
    display: flex;
    gap: 5px;
}

.filter-buttons .btn {
    padding: 4px 8px;
    font-size: 11px;
}

.reservations-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Make the reservations section taller so more cards are visible before scrolling */
#reservationsTab .reservations-list {
    max-height: calc(100vh - 330px);
    overflow-y: auto;
}

/* Hide footer staff login link when logged in (token present triggers body.authenticated) */
body.authenticated footer { display: none; }

/* Compact reservations list to fit more items on screen */
.reservations-panel.compact .reservation-item { padding: 6px; margin-bottom: 5px; }
.reservations-panel.compact .reservation-time { font-size: 11px; }
.reservations-panel.compact .reservation-details { font-size: 10px; line-height: 1.2; }
.reservations-panel.compact .reservation-header { margin-bottom: 4px; }
.reservations-panel.compact .reservation-item { border-left-width: 3px; }
.reservations-panel.compact .reservation-actions-inline {
    display: none;
}

.reservation-item { background:#f8f9fa; border-radius:8px; padding:10px; margin-bottom:8px; border-left:3px solid #667eea; cursor:pointer; transition:all .3s; }

.reservation-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.reservation-item.selected {
    background: #667eea;
    color: white;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reservation-time {
    font-weight: bold;
    font-size: 14px;
}

.reservation-party {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
}

.reservation-customer {
    font-weight: bold;
    margin-bottom: 4px;
}

.reservation-details {
    font-size: 12px;
    color: #666;
}

.reservation-tables {
    margin-top: 5px;
    font-size: 11px;
    color: #888;
}

.layout-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.room-tabs {
    display: flex;
    gap: 5px;
}

.room-tab {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.room-tab.active {
    background: #667eea;
    color: white;
}

.room-tab:hover {
    background: #5a6fd8;
    color: white;
}

.layout-container {
    flex: 1;
    padding: 20px;
    overflow: auto;
    position: relative;
}

.table-layout {
    position: relative;
    min-height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Table Visual Elements */
.table-element {
    position: absolute;
    border: 2px solid #333;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 60px;
    min-height: 40px;
}

.table-element:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.table-element.rectangular {
    border-radius: 4px;
}

.table-element.round {
    border-radius: 50%;
}

.table-element.square {
    border-radius: 4px;
}

.table-name {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 2px;
}

.table-capacity {
    font-size: 10px;
    opacity: 0.9;
}

.table-element.reserved {
    background: #22c55e !important; /* green fill for reserved tables */
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.table-element.available {
    background: #ffffff !important; /* white for available tables */
    border-color: #CCCCCC !important;
    color: #000000 !important;
}

.table-element.partial {
    background: linear-gradient(135deg, #ffd43b, #fcc419);
    border-color: #e67700;
    color: #333;
}

.table-element.walk-in {
    background: linear-gradient(135deg, #74c0fc, #4dabf7);
    border-color: #1971c2;
}

/* Room Features */
.room-entrance {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.room-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B4513;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .daily-view-container {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .daily-view-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .daily-view-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .date-navigation {
        width: 100%;
        justify-content: center;
    }
} 

/* Table Layout Editor Styles */
.layout-controls {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.layout-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.layout-toolbar label {
    font-size: 12px;
    color: #555;
}

.layout-toolbar .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 14px;
}

.layout-editor-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    margin-top: 20px;
}

.layout-canvas {
    flex: 1;
    background: #ffffff;
    border: 2px solid #d1d5db; /* slightly darker for better contrast */
    border-radius: 10px;
    position: relative;
    overflow: auto; /* allow scrolling to see entire room */
    min-height: 900px; /* larger default viewport */
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.02);
}

/* Inner wrapper that is scaled when zooming so the scroll container remains usable */
#layoutCanvasInner {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    /* allow pointer events for tables inside */
    pointer-events: auto;
}

.layout-table { pointer-events: auto; }

.layout-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-size: 16px;
}

.layout-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.layout-sidebar {
    width: 260px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow-y: auto;
}

/* Hide reservations list in settings layout editor per requirement */
.layout-reservations { display: none; }

.layout-properties {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.layout-properties h5 {
    margin: 0 0 15px 0;
    color: #333;
}

.properties-form .form-group {
    margin-bottom: 15px;
}

.properties-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.properties-form input[type="checkbox"] {
    margin-right: 8px;
}

.layout-reservations {
    padding: 15px;
}

.layout-reservations h5 {
    margin: 0 0 15px 0;
    color: #333;
}

.reservations-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Table Elements in Layout */
.layout-table {
    position: absolute;
    cursor: pointer;
    border: 2px solid #4b5563; /* default border for clarity */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px; /* slightly larger */
    font-weight: 700;
    color: #111827; /* near-black for readability */
    transition: all 0.2s ease;
    user-select: none;
    touch-action: none; /* prevent touch scrolling during drag */
}

.layout-table:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.layout-table.selected {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    transform: scale(1.05);
    z-index: 20;
}

/* Inline edit handle on tables */
.layout-table .table-edit-btn {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4b5563;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #fff;
}
.layout-table .table-edit-btn:hover { background: #374151; }

.layout-table.square {
    border-radius: 0;
    /* Square tables have equal width and height */
}

.layout-table.round {
    border-radius: 50%;
    /* Round tables are circular */
}

.layout-table.rectangular {
    border-radius: 4px;
    /* Rectangular tables have rounded corners */
}

.layout-table.bar_stool {
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    /* Bar stools are small and circular */
}

.layout-table.available {
    background-color: #ffffff; /* white for empty */
    border-color: #9ca3af; /* medium gray for distinction */
}

.layout-table.reserved {
    background-color: #f44336;
    border-color: #d32f2f;
}

.layout-table.partial {
    background-color: #ff9800;
    border-color: #f57c00;
}

/* Visual helper for adjacency radius overlay in layout editor */
.adjacency-overlay {
    position: absolute;
    box-sizing: border-box;
}

/* Floating properties panel */
.properties-floating {
    position: absolute;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    padding: 12px;
    width: 340px;
    max-height: 70vh;
    overflow: auto;
    z-index: 1002;
}

/* Connections overlay */
#layoutConnections {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 100;
    display: none; /* lines disabled in favor of highlight */
}

/* Highlight connected tables */
.layout-table.connected-highlight {
    border-color: #2563eb !important; /* blue-600 */
    box-shadow: 0 0 6px rgba(37,99,235,0.65);
}

.layout-table.cluster-highlight {
    border-color: #10b981 !important; /* emerald-500 */
    box-shadow: 0 0 10px rgba(16,185,129,0.6);
}

/* If both connected and cluster, prefer connected (blue) */
.layout-table.connected-highlight.cluster-highlight {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59,130,246,0.75), 0 0 6px rgba(16,185,129,0.6);
}

/* Explicit both indicator stronger */
.layout-table.both-highlight {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 12px rgba(59,130,246,0.85), 0 0 8px rgba(16,185,129,0.7);
}

/* Small corner markers to make states obvious even when glows overlap */
.layout-table { position: absolute; }
.layout-table .hl-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 5;
    pointer-events: none;
}
.layout-table .hl-marker.connected {
    background: #2563eb; /* blue */
    top: -6px; left: -6px;
}
.layout-table .hl-marker.cluster {
    background: #10b981; /* green */
    top: -6px; right: -6px;
}

.table-name {
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}

.table-capacity {
    font-size: 11px;
    opacity: 0.95;
}

/* Grid System */
.layout-canvas.grid-enabled {
    background-image: 
        linear-gradient(rgba(224, 224, 224, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 224, 224, 0.3) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Draggable Tables */
.layout-table.dragging {
    opacity: 0.8;
    z-index: 1000;
    cursor: grabbing;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Room Features */
.room-entrance {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.room-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B4513;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .layout-editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .layout-sidebar {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .layout-toolbar {
        flex-direction: column;
    }
    
    .layout-toolbar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .layout-controls,
    .layout-sidebar,
    .layout-toolbar {
        display: none !important;
    }
    
    .layout-canvas {
        border: none;
        height: auto;
        min-height: auto;
    }
    
    .layout-table {
        position: relative !important;
        display: inline-block;
        margin: 5px;
    }
} 

/* Room Management Styles */
.room-management-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.rooms-list {
    display: grid;
    gap: 1rem;
}

.room-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.room-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.room-item.inactive {
    opacity: 0.6;
    border-color: #cbd5e0;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    gap: 1rem;
}

.room-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-primary {
    background: #bee3f8;
    color: #3182ce;
}

.badge-success {
    background: #c6f6d5;
    color: #276749;
}

.badge-info {
    background: #e9d8fd;
    color: #805ad5;
}

.badge-warning {
    background: #fef5e7;
    color: #d69e2e;
}

.badge-danger {
    background: #fed7d7;
    color: #c53030;
}

.badge-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.room-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.room-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.room-status-active {
    background: #c6f6d5;
    color: #276749;
}

.room-status-inactive {
    background: #fed7d7;
    color: #742a2a;
}

.room-description {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.room-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
}

.room-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.room-detail i {
    color: #667eea;
    width: 16px;
}

.room-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #d69e2e;
    font-weight: 500;
}

.room-fallback i {
    color: #d69e2e;
}

.room-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.room-stat {
    text-align: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 8px;
}

.room-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.25rem;
}

.room-stat-label {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.room-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.empty-rooms {
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.empty-rooms i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.empty-rooms h4 {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.empty-rooms p {
    margin-bottom: 1.5rem;
}

/* Responsive Design for Room Management */
@media (max-width: 768px) {
    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .room-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .room-actions .btn {
        width: 100%;
        justify-content: center;
    }
} 

/* Settings Tabbed Interface Styles */
.settings-nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.settings-tab-btn:hover,
.settings-tab-btn.active {
    background: #667eea;
    color: white;
}

.settings-tab-btn i {
    font-size: 1rem;
}

.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

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

/* Responsive Design for Settings Tabs */
@media (max-width: 768px) {
    .settings-nav-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .settings-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .settings-nav-tabs {
        padding: 0.25rem;
    }
    
    .settings-tab-btn {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
} 

/* Daily View Styles */
.daily-view-container {
    display: flex;
    gap: 20px;
    height: 600px;
}

.reservations-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.layout-panel {
    flex: 2;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.panel-header h3, .panel-header h4 {
    margin: 0;
    color: #333;
}

.room-tabs {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.room-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.room-tab:hover {
    background: #f0f0f0;
}

.room-tab.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.layout-container {
    padding: 20px;
    height: calc(100% - 80px);
    overflow: auto;
}

.table-layout {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.table-element {
    position: absolute;
    border: 2px solid;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.table-element:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.table-element.reserved {
    background-color: #22c55e !important; /* green fill in daily view */
    border-color: #16a34a !important;
    color: #ffffff !important;
}

.table-element.available {
    background-color: #ffffff !important; /* white for empty */
    border-color: #CCCCCC !important;
    color: #000000 !important;
}

.table-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.table-capacity {
    font-size: 10px;
    opacity: 0.9;
}

.table-reservation {
    font-size: 9px;
    margin-top: 2px;
    opacity: 0.8;
    line-height: 1.2;
}

.reservations-list {
    height: calc(100% - 80px);
    overflow-y: auto;
    padding: 10px;
}

.reservation-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.reservation-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.reservation-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.reservation-time {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.customer-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}

.party-size {
    color: #666;
    font-size: 14px;
    margin-bottom: 3px;
}

.reservation-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.reservation-status.confirmed {
    background: #eeeeee;
    color: #333333;
}

.reservation-status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.reservation-status.cancelled {
    background: #ffebee;
    color: #c62828;
}

/* Status badge styling in details modal */
.reservation-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.reservation-status-badge.confirmed {
    background: #eeeeee;
    color: #333333;
}
.reservation-status-badge.cancelled {
    background: #ffebee;
    color: #c62828;
}

/* Arrived / No-Show explicit colors */
.reservation-status.arrived {
    background: #e8f5e8;
    color: #2e7d32;
}
.reservation-status.no-show {
    background: #ffebee;
    color: #c62828;
}
.reservation-status-badge.no_show {
    background: #ffebee;
    color: #c62828;
}
.reservation-status-badge.arrived {
    background: #e8f5e8;
    color: #2e7d32;
}
.reservation-status-badge.no-show {
    background: #ffebee;
    color: #c62828;
}

/* Details modal colorization when arrived/no-show */
.modal-content.details-arrived {
    color: #2e7d32;
}
.modal-content.details-no-show {
    color: #c62828;
}

.table-info {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.no-reservations {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

/* Table Assignment Modal */
.table-selection {
    padding: 20px;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.table-option {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.table-option.available {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.table-option.available:hover {
    background: #e8f5e8;
    transform: scale(1.02);
}

.table-option.reserved {
    border-color: #FF9800;
    background: #fff3e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.table-option .table-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.table-option .table-capacity {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.table-option .table-status {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.table-option.available .table-status {
    color: #2e7d32;
}

.table-option.reserved .table-status {
    color: #f57c00;
}

/* Date Navigation */
.date-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-display {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    min-width: 200px;
    text-align: center;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 5px;
}

.filter-buttons .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.filter-buttons .btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
} 

/* Smart Features Container */
.smart-features-container {
    margin-top: 2rem;
    padding: 1rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e1e5e9;
}

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

.card-content {
    padding: 1.5rem;
    min-height: 200px;
}

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    color: #6c757d;
    text-align: center;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

/* Area Recommendations Styles */
.area-recommendations-card {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border-radius: 12px;
    overflow: hidden;
}

.area-recommendations-card .recommendations-header {
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
}

.area-recommendations-card .recommendations-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.party-info {
    font-size: 1rem;
    opacity: 0.9;
}

.party-info span {
    margin: 0 0.5rem;
}

.recommendations-content {
    padding: 1.5rem;
}

.preferred-area,
.suitable-areas,
.alternative-areas,
.fallback-areas {
    margin-bottom: 1.5rem;
}

.preferred-area h4,
.suitable-areas h4,
.alternative-areas h4,
.fallback-areas h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.area-type {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.area-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #28a745;
}

.area-item.alternative {
    border-left-color: #ffc107;
}

.area-item.fallback {
    border-left-color: #17a2b8;
}

.area-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.area-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    opacity: 0.9;
}

.capacity,
.priority,
.fallback-for {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.no-areas {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

/* Smart Availability Styles */
.smart-availability-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.availability-header {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.availability-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.reservation-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.reservation-type {
    text-transform: capitalize;
    font-weight: 600;
}

.recommendation {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.9;
}

.recommendation .icon {
    margin-right: 0.5rem;
}

.rooms-container {
    padding: 1.5rem;
}

.room-availability {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
}

.room-availability.indoor {
    border-left-color: #28a745;
}

.room-availability.outdoor {
    border-left-color: #ffc107;
}

.room-availability.shared {
    border-left-color: #6f42c1;
}

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

.room-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.room-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary {
    background: #007bff;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

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

.room-details {
    font-size: 0.9rem;
    color: #666;
}

.capacity {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.time-slots h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #333;
}

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

.time-slot {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
}

.time-slot .time {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.time-slot .capacity,
.time-slot .tables {
    display: block;
    color: #666;
    font-size: 0.7rem;
}



/* Smart Recommendations Styles */
.smart-recommendations {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.smart-recommendations h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.recommendation-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.recommendation-item .icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Alternative Suggestions Styles */
.alternative-suggestions {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.alternative-suggestions h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.suggestion-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.suggestion-item .icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .area-priority {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .room-badges {
        justify-content: flex-start;
    }
} 