/* assets/style.css - Premium Ultra-Clean Light Theme, Mobile Anti-Zoom & Touch-Optimized Menu System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
    /* Bright Ultra-Clean Light Theme Color Tokens */
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;
    --border-glass: rgba(226, 232, 240, 0.8);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Category Colors */
    --cat1-color: #2563eb;
    --cat1-glow: rgba(37, 99, 235, 0.15);
    --cat2-color: #059669;
    --cat2-glow: rgba(5, 150, 105, 0.15);
    --cat3-color: #7c3aed;
    --cat3-glow: rgba(124, 58, 237, 0.15);

    /* Status Colors */
    --status-available: #10b981;
    --status-pending: #d97706;
    --status-reserved: #ef4444;
    --status-blocked: #64748b;

    /* Radii & Transitions */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(5, 150, 105, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text h1, .stage-title {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Header Component */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-spring);
}

.brand-logo-img:hover {
    transform: scale(1.05);
}

.brand-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.brand-text p {
    font-size: 0.825rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: none;
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-glass {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    background: #f1f5f9;
}

/* Top Summary Statistics Cards Grid */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px 40px 10px 40px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-label {
    font-size: 0.775rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 4px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Controls & Filter Bar */
.controls-bar {
    padding: 10px 40px 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.pill-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.pill-btn.active {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    border-color: #0f172a;
}

.search-box {
    position: relative;
    min-width: 280px;
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 9px 16px 9px 38px;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-fast);
    user-select: text;
    -webkit-user-select: text;
}

.search-box input:focus {
    border-color: var(--cat1-color);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

/* Venue Seating Map Canvas */
.venue-wrapper {
    padding: 0 40px;
    margin-bottom: 50px;
}

.stage-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    box-shadow: var(--shadow-md);
}

/* Curved Glowing Stage Arc Header */
.stage-glow-arc {
    position: relative;
    width: 75%;
    max-width: 700px;
    margin: 0 auto 35px auto;
    padding: 14px 0;
    text-align: center;
    background: linear-gradient(135deg, #1e40af, #2563eb, #4f46e5);
    border-radius: 0 0 100px 100px;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.stage-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Category Sections */
.category-section {
    margin-bottom: 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--border-color);
}

.category-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.category-price-tag {
    font-size: 0.825rem;
    font-weight: 800;
    background: #ffffff;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

/* Table Layout Rows Grid - COMPACT & SLEEK DIMENSIONS */
.row-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.row-label {
    width: 55px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tables-row {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 8px;
    flex-grow: 1;
}

/* Sleek Compact Table Cards */
.table-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 4px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    user-select: none;
    touch-action: manipulation;
}

.table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Available Table */
.table-card.available {
    border-color: #10b981;
    background: #ecfdf5;
}

.table-card.available:hover {
    background: #d1fae5;
    border-color: #059669;
}

.table-card.available .table-code {
    color: #065f46;
}

.table-card.available .table-capacity-label {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

/* Pending Table (Opsiyonlu) */
.table-card.pending-hold {
    border: 2px dashed #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2) !important;
}

.table-card.pending-hold .table-code {
    color: #b45309 !important;
}

.table-card.pending-hold .table-capacity-label {
    background: #f59e0b !important;
    color: #ffffff !important;
}

/* Reserved Table (Dolu) */
.table-card.reserved {
    border-color: #fca5a5;
    background: #fef2f2;
    cursor: not-allowed;
}

.table-card.reserved .table-code {
    color: #991b1b;
}

.table-card.reserved .table-capacity-label {
    background: #ef4444;
    color: #ffffff;
}

/* Blocked Table */
.table-card.blocked {
    opacity: 0.4;
    cursor: not-allowed;
}

.table-code {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2px;
    line-height: 1;
}

.table-capacity-label {
    font-size: 0.575rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Compact Seat Dots around Table */
.seat-top, .seat-bottom, .seat-left, .seat-right {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #94a3b8;
}

.seat-top { top: -3px; left: 50%; transform: translateX(-50%); }
.seat-bottom { bottom: -3px; left: 50%; transform: translateX(-50%); }
.seat-left { left: -3px; top: 50%; transform: translateY(-50%); }
.seat-right { right: -3px; top: 50%; transform: translateY(-50%); }

/* Legend Indicator Bar */
.legend-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1.5px solid var(--border-color);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available { background: #10b981; }
.legend-dot.reserved { background: #ef4444; }
.legend-dot.blocked { background: #64748b; }

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    padding: 15px;
    touch-action: manipulation;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.96);
    transition: transform var(--transition-spring);
    color: #0f172a;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.modal-close:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Menu Counter Buttons - Touch-Friendly Dimensions */
.btn-menu-adj {
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-menu-adj:active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: scale(0.95);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #0f172a;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
    user-select: text;
    -webkit-user-select: text;
}

.form-control:focus {
    border-color: var(--cat1-color);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

.summary-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #059669;
}

.person-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.person-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all var(--transition-fast);
    touch-action: manipulation;
}

.person-pill:hover {
    background: #f1f5f9;
}

.person-pill.selected {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Responsive Layout Overrides for Mobile */
@media (max-width: 1024px) {
    header, .stats-container, .controls-bar, .venue-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
    .tables-row {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 640px) {
    header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .tables-row {
        grid-template-columns: repeat(4, 1fr);
    }
    .modal-card {
        padding: 20px 14px;
    }
    .menu-grid-container {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}
