/* ==========================================================================
   CSS Principal - OpenCover Pro Premium (Clean Minimalist)
   Estilo: Apple-like, Ultra-soft Shadows, Pure Whites & Fine Borders
   ========================================================================== */

:root {
    /* Paleta de Colores HSL - Clean Minimalist */
    --bg-main: 0, 0%, 98%;         /* Lightest gray, almost white */
    --bg-card: 0, 0%, 100%;        /* Pure white cards */
    --bg-sidebar: 0, 0%, 98%;      /* Same as bg-main for seamless look */
    
    /* Accents */
    --accent-primary: 211, 100%, 50%;      /* Apple Blue (#007AFF) */
    --accent-primary-hover: 211, 100%, 40%;
    --accent-success: 142, 70%, 45%;       /* Clean Green */
    --accent-warning: 38, 90%, 50%;        /* Clean Orange/Amber */
    --accent-danger: 350, 80%, 55%;        /* Clean Red */
    --accent-google: 217, 89%, 55%; 
    --accent-android: 84, 60%, 45%;
    
    /* Typography colors */
    --text-main: 220, 15%, 12%;    /* Deep Slate/Black */
    --text-muted: 220, 10%, 45%;   /* Medium Gray */
    --border-color: 0, 0%, 90%;    /* Very light gray border */
    
    /* Settings */
    --font-primary: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows & Borders - Ultra Soft */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.06);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.08);
    --border-radius-sm: 8px;
    --border-radius: 14px;
    --border-radius-lg: 20px;
    
    /* Glassmorphism - More translucent and pure */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* Base Reset & Scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: hsl(var(--bg-main));
    color: hsl(var(--text-main));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--border-color));
    border-radius: 10px;
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--accent-primary));
}

/* Header */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}

.header-logo .logo-icon {
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-warning)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(138, 92, 246, 0.2));
}

.header-logo span span {
    color: hsl(var(--accent-primary));
    font-weight: 900;
}

.version-label {
    font-size: 0.65rem;
    background: rgba(138, 92, 246, 0.08);
    color: hsl(var(--accent-primary));
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid rgba(138, 92, 246, 0.15);
}

.badge-android {
    font-size: 0.72rem;
    background: rgba(132, 204, 22, 0.08);
    color: hsl(var(--accent-android));
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    border: 1px solid rgba(132, 204, 22, 0.2);
    margin-left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-family: var(--font-secondary);
}

.main-nav {
    display: flex;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.25rem;
    border-radius: 30px;
    border: 1px solid hsl(var(--border-color));
}

.nav-btn {
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    padding: 0.55rem 1.25rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    color: hsl(var(--text-main));
    background: rgba(0, 0, 0, 0.03);
}

.nav-btn.active {
    background: hsl(var(--accent-primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 92, 246, 0.25);
}

.restaurant-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid hsl(var(--border-color));
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: hsl(var(--text-main));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.restaurant-info:hover {
    background: rgba(0, 0, 0, 0.04);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: hsl(var(--accent-success));
    border-radius: 50%;
    box-shadow: 0 0 10px hsl(var(--accent-success));
}

/* App Container */
.app-container {
    flex: 1;
    padding: 1.5rem;
    max-width: 1650px;
    margin: 0 auto;
    width: 100%;
}

.app-section {
    display: none;
    animation: fadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* ==========================================================================
   Android Tablet Mockup
   ========================================================================== */
.android-tablet-wrapper {
    background: #e2e8f0;
    border-radius: 40px;
    padding: 1rem;
    box-shadow: var(--shadow-lg), 0 0 0 4px #cbd5e1;
    max-width: 1450px;
    margin: 0 auto;
    border: 8px solid #cbd5e1;
}

.tablet-screen {
    background-color: #f8fafc;
    border-radius: 24px;
    overflow: hidden;
    height: 800px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
}

.android-status-bar {
    background: #f1f5f9;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.72rem;
    color: #475569;
    font-family: var(--font-secondary);
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
}

.android-status-bar .icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.android-app-content {
    flex: 1;
    display: flex;
    height: calc(100% - 32px);
}

/* Sidebar */
.admin-sidebar {
    width: 240px;
    background: hsl(var(--bg-sidebar));
    border-right: 1px solid hsl(var(--border-color));
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.sidebar-header .avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, hsl(var(--accent-primary)), hsl(var(--accent-warning)));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 10px rgba(138, 92, 246, 0.2);
}

.sidebar-header .details h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}

.sidebar-header .details p {
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0 0.5rem;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: hsl(var(--text-muted));
    cursor: pointer;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu li:hover {
    color: hsl(var(--text-main));
    background: rgba(0,0,0,0.03);
}

.sidebar-menu li.active {
    background: rgba(138, 92, 246, 0.08);
    color: hsl(var(--accent-primary));
    box-shadow: inset 2px 0 0 hsl(var(--accent-primary));
}

.sidebar-menu li .badge {
    margin-left: auto;
    background: hsl(var(--accent-primary));
    color: white;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    font-weight: 800;
}

.sidebar-menu li .badge.warning {
    background: hsl(var(--accent-warning));
}

.android-view-container {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    background-color: #fafbfc;
}

.android-view {
    display: none;
    height: 100%;
}

.android-view.active {
    display: flex;
    flex-direction: column;
}

/* Metrics Bar */
.shift-metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.metric-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    padding: 0.75rem 1rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(138, 92, 246, 0.15);
}

.metric-card .label {
    font-size: 0.65rem;
    color: hsl(var(--text-muted));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.metric-card .value {
    font-size: 1.35rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}

.metric-card.warning {
    border-color: rgba(245, 158, 11, 0.25);
}

.metric-card.warning .value {
    color: hsl(var(--accent-warning));
}

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

.view-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: hsl(var(--text-main));
    letter-spacing: -0.02em;
}

.view-header p {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
}

.view-actions-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Zone Selector */
.zone-selector {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid hsl(var(--border-color));
}

.zone-btn {
    background: transparent;
    border: none;
    color: hsl(var(--text-muted));
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zone-btn.active {
    background: #fff;
    color: hsl(var(--text-main));
    box-shadow: var(--shadow-sm);
}

/* Floor Plan & Tables */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
}

.floor-plan-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.room-floor {
    flex: 1;
    background: #f1f5f9;
    border-radius: 14px;
    position: relative;
    border: 1px solid #e2e8f0;
    min-height: 380px;
    overflow: hidden;
}

.floor-table {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 12px;
}

.floor-table .cap {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.8;
}

.floor-table.free {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.floor-table.free:hover {
    background: #dcfce7;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
    transform: scale(1.08) translateY(-2px);
}

.floor-table.occupied {
    background: #faf5ff;
    border-color: #a855f7;
    color: #7e22ce;
}

.floor-table.occupied.merged-parent {
    border-style: dashed;
    border-color: #eab308;
}

.floor-table.occupied:hover {
    background: #f3e8ff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
    transform: scale(1.08) translateY(-2px);
}

.floor-legend {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    margin-top: 1rem;
    justify-content: center;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.floor-legend .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.4rem;
}

.floor-legend .dot.free { background-color: #22c55e; }
.floor-legend .dot.occupied { background-color: #a855f7; }
.floor-legend .dot.merged { border: 2px dashed #eab308; background: transparent; }

/* Table Details Card & Empty State */
.table-details-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.table-details-card .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: hsl(var(--text-muted));
    gap: 0.85rem;
}

.table-details-card .empty-state i {
    font-size: 2rem;
    color: hsl(var(--accent-primary));
    opacity: 0.8;
}

.table-details-card .empty-state h3 {
    color: hsl(var(--text-main));
    font-size: 0.95rem;
    font-weight: 800;
}

.table-details-card .empty-state p {
    font-size: 0.78rem;
    line-height: 1.5;
}

.details-content h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: hsl(var(--text-main));
}

.table-badge {
    background: rgba(138, 92, 246, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.68rem;
    display: inline-block;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(138, 92, 246, 0.1);
    color: hsl(var(--accent-primary));
    font-weight: 700;
}

.res-detail-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.85rem;
    border: 1px solid hsl(var(--border-color));
}

.res-detail-box h4 {
    color: hsl(var(--text-main));
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.res-detail-box p {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.25rem;
}

.detail-notes {
    font-style: italic;
    background: rgba(138, 92, 246, 0.04);
    border-left: 3px solid hsl(var(--accent-primary));
    padding: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.75rem;
    color: hsl(var(--text-main));
}

/* POS Integration */
.pos-ticket-box {
    background: #faf5ff;
    border-radius: 10px;
    border: 1px solid #e9d5ff;
    padding: 0.85rem;
    margin-bottom: 1rem;
}

.pos-ticket-box h4 {
    font-size: 0.78rem;
    color: #7e22ce;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed #d8b4fe;
    padding-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    font-weight: 800;
}

.pos-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #581c87;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.pos-total-row {
    margin-top: 0.5rem;
    border-top: 1px dashed #d8b4fe;
    padding-top: 0.4rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: #581c87;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

/* Forms & Selects inside sidebar */
.merge-action-box {
    margin-top: 0.85rem;
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 0.85rem;
}
.merge-action-box label {
    font-size: 0.68rem;
    color: hsl(var(--text-muted));
    font-weight: 800;
    display: block;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}
.merge-action-box select {
    background: #fff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.45rem;
    color: hsl(var(--text-main));
    font-size: 0.78rem;
    width: 100%;
    margin-bottom: 0.5rem;
    outline: none;
    transition: border-color 0.3s;
}
.merge-action-box select:focus {
    border-color: hsl(var(--accent-primary));
}

/* Premium Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary { background: hsl(var(--accent-primary)); color: white; }
.btn-primary:hover { background: hsl(var(--accent-primary-hover)); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(138, 92, 246, 0.25); }

.btn-secondary { background: rgba(0, 0, 0, 0.02); color: hsl(var(--text-main)); border: 1px solid hsl(var(--border-color)); }
.btn-secondary:hover { background: rgba(0, 0, 0, 0.05); }

.btn-danger { background: rgba(239, 68, 68, 0.05); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.15); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.12); }

/* ==========================================================================
   Book of Reservations (Libro)
   ========================================================================== */
.search-box {
    position: relative;
}
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-muted));
}
.search-box input {
    background: #fff;
    border: 1px solid hsl(var(--border-color));
    padding: 0.55rem 1rem 0.55rem 2.2rem;
    border-radius: 10px;
    color: hsl(var(--text-main));
    width: 280px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box input:focus {
    border-color: hsl(var(--accent-primary));
    width: 320px;
    box-shadow: 0 0 0 3px rgba(138, 92, 246, 0.1);
}

.reservas-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid hsl(var(--border-color));
    overflow: hidden;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.reservas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.reservas-table th, .reservas-table td {
    padding: 0.85rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border-color));
}

.reservas-table th {
    background: rgba(0, 0, 0, 0.01);
    color: hsl(var(--text-muted));
    font-weight: 800;
}

.reservas-table td {
    color: hsl(var(--text-main));
    font-weight: 600;
}

.reservas-table tbody tr {
    transition: background 0.3s;
}

.reservas-table tbody tr:hover {
    background: rgba(138, 92, 246, 0.02);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pill.confirmed { background: rgba(59, 130, 246, 0.08); color: #2563eb; }
.status-pill.seated { background: rgba(168, 85, 247, 0.08); color: #7e22ce; }
.status-pill.finished { background: rgba(34, 197, 94, 0.08); color: #16803d; }
.status-pill.cancelled { background: rgba(239, 68, 68, 0.08); color: #dc2626; }
.status-pill.noshow { background: rgba(245, 158, 11, 0.08); color: #d97706; }

.source-badge {
    background: rgba(0, 0, 0, 0.02);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    color: hsl(var(--text-muted));
    border: 1px solid hsl(var(--border-color));
    font-weight: 700;
}

/* ==========================================================================
   Waitlist
   ========================================================================== */
.waitlist-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    flex: 1;
    min-height: 0;
}

.waitlist-card-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    overflow-y: auto;
}

.waitlist-item {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.waitlist-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    border-color: hsl(var(--accent-primary));
}

.waitlist-item h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}
.waitlist-item p {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.waitlist-seat-panel {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.waitlist-seat-panel h3 {
    font-size: 0.95rem;
    color: hsl(var(--text-main));
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.waitlist-seat-panel .desc {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ==========================================================================
   CRM list - Refactored and Syntax Fixed
   ========================================================================== */
.crm-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    flex: 1;
}

.crm-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: hsl(var(--accent-primary));
}

.crm-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: hsl(var(--text-main));
    font-weight: 800;
}

.crm-card p {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.crm-pref {
    background: rgba(138, 92, 246, 0.04);
    padding: 0.5rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-style: italic;
    margin-top: 0.6rem;
    border-left: 3px solid hsl(var(--accent-primary));
    color: hsl(var(--text-main));
}

.crm-card.blacklist {
    border-color: rgba(239, 68, 68, 0.25);
    background: linear-gradient(135deg, #fff, rgba(239, 68, 68, 0.02));
}

/* ==========================================================================
   Monthly Calendar Grid - Extremely Premium styling
   ========================================================================== */
.monthly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-cell {
    background: #fafafa;
    border: 1px solid hsl(var(--border-color));
    border-radius: 10px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 75px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.calendar-day-cell:hover {
    background: #ffffff;
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 4px 12px rgba(138, 92, 246, 0.1);
    transform: scale(1.02);
    z-index: 10;
}

.calendar-day-cell.active-selected {
    background: #ffffff;
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 0 0 2px rgba(138, 92, 246, 0.2);
}

.calendar-day-cell.other-month {
    opacity: 0.35;
    cursor: default;
    background: transparent;
}

.calendar-day-cell .day-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}

.calendar-day-cell .day-occupancy-pill {
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    align-self: flex-start;
    margin-top: auto;
}

.calendar-day-cell .day-occupancy-pill.low {
    background: rgba(34, 197, 94, 0.08);
    color: #16803d;
}

.calendar-day-cell .day-occupancy-pill.medium {
    background: rgba(251, 191, 36, 0.08);
    color: #b45309;
}

.calendar-day-cell .day-occupancy-pill.high {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* ==========================================================================
   Channel Manager
   ========================================================================== */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.channel-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.channel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: hsl(var(--text-main));
}

.channel-card-header i {
    font-size: 1.2rem;
}

.channel-stat {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}
.channel-stat strong {
    color: hsl(var(--text-main));
}

.switch-control {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-left: auto;
}
.switch-control input {
    display: none;
}
.switch-rail {
    width: 38px;
    height: 20px;
    background: #cbd5e1;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.switch-control input:checked + .switch-rail {
    background: hsl(var(--accent-android));
}
.switch-control input:checked + .switch-rail .switch-thumb {
    transform: translateX(18px);
}

/* ==========================================================================
   Widget Mockup & Customer Booking Widget
   ========================================================================== */
.widget-tester-container {
    max-width: 580px;
    margin: 0 auto;
}

.widget-browser-mockup {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid hsl(var(--border-color));
}

.browser-bar {
    background: #f1f5f9;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.browser-dots { display: flex; gap: 0.4rem; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
    background: #fff;
    flex: 1;
    border-radius: 8px;
    padding: 0.3rem 1rem;
    font-size: 0.7rem;
    color: hsl(var(--text-muted));
    font-family: monospace;
    border: 1px solid hsl(var(--border-color));
    font-weight: 600;
}

.browser-content {
    padding: 2.25rem;
    background: radial-gradient(circle at top, #faf5ff, #f8fafc);
}

.booking-widget {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.widget-logo {
    font-size: 2rem;
    background: linear-gradient(135deg, #d97706, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.widget-header h2 {
    color: hsl(var(--text-main));
    font-weight: 800;
}

.widget-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.step-progress-bar {
    position: absolute;
    top: 50%;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid hsl(var(--border-color));
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-dot.active {
    background: hsl(var(--accent-primary));
    border-color: hsl(var(--accent-primary));
    color: #fff;
    box-shadow: 0 0 12px rgba(138, 92, 246, 0.3);
}

.form-step h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: hsl(var(--text-main));
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: #fff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    color: hsl(var(--text-main));
    font-size: 0.82rem;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: hsl(var(--accent-primary));
    box-shadow: 0 0 0 3px rgba(138, 92, 246, 0.1);
}

.guest-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: transparent;
    border: none;
    color: hsl(var(--text-main));
    width: 44px;
    height: 38px;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: rgba(0, 0, 0, 0.03);
}

.guest-selector input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 800;
    color: hsl(var(--text-main));
}

/* Warnings */
.noshow-warning {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.noshow-warning h3 {
    color: #b45309;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.noshow-warning p {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    font-weight: 600;
}

.charge-warning {
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.12);
    color: #dc2626;
    font-size: 0.72rem;
    padding: 0.55rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.booking-receipt {
    background: #f8fafc;
    border: 1px dashed hsl(var(--border-color));
    border-radius: 10px;
    padding: 0.85rem;
    margin: 1rem 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.receipt-row strong {
    color: hsl(var(--text-main));
}

/* ==========================================================================
   Google & AI Phone Mockups
   ========================================================================== */
.google-sim-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1250px;
    margin: 0 auto;
}

.phone-mockup {
    background: #475569;
    border-radius: 40px;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 6px solid #64748b;
    height: 660px;
    width: 100%;
}

.phone-speaker {
    width: 50px;
    height: 4px;
    background: #64748b;
    border-radius: 2px;
    margin: 0.2rem auto 0.6rem auto;
}

.phone-screen {
    background: #f8fafc;
    border-radius: 26px;
    overflow: hidden;
    height: calc(100% - 15px);
    border: 1px solid #cbd5e1;
    position: relative;
    color: #1e293b;
}

.phone-app-selector {
    background: #f1f5f9;
    display: flex;
    border-bottom: 1px solid #cbd5e1;
}

.phone-app-selector button {
    flex: 1;
    background: transparent;
    border: none;
    color: #64748b;
    padding: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.phone-app-selector button.phone-tabactive {
    color: #1e293b;
    background: #ffffff;
    border-bottom: 2px solid #0284c7;
}

.voice-assistant-frame {
    background: #ffffff;
    height: 100%;
    color: hsl(var(--text-main));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.voice-assistant-frame h3 {
    font-size: 1.1rem;
    color: hsl(var(--accent-primary));
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.voice-assistant-frame .desc {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.ai-waveform-container .bar {
    width: 6px;
    height: 20px;
    background: hsl(var(--accent-primary));
    border-radius: 3px;
    animation: wavePulse 1.2s ease-in-out infinite;
}

@keyframes wavePulse {
    0%, 100% { height: 8px; transform: scaleY(1); }
    50% { height: 28px; transform: scaleY(1.3); }
}

/* API Console */
.api-console-card {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    padding: 1.25rem;
    height: 660px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.console-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-main));
}

.console-icon {
    color: hsl(var(--accent-primary));
}

.console-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0.75rem;
    min-height: 0;
}

.console-logs {
    background: #f8fafc;
    border-radius: 10px;
    padding: 0.85rem;
    flex: 1;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.72rem;
    line-height: 1.5;
    border: 1px solid hsl(var(--border-color));
    color: #1e293b;
    font-weight: 600;
}

/* Overlays / Modals */
.waitlist-overlay, .google-booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.waitlist-modal, .google-booking-modal {
    background: #ffffff;
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    padding: 1.5rem;
    width: 380px;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: hsl(var(--text-main));
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 300;
    color: hsl(var(--text-muted));
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: hsl(var(--text-main));
}

.android-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid rgba(132, 204, 22, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    color: hsl(var(--text-main));
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlide {
    from { opacity: 0; transform: translate(-50%, 15px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.android-toast i {
    color: hsl(var(--accent-android));
}

.hidden {
    display: none !important;
}

/* Custom indicator styles */
.semaforo-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.4rem;
}
.semaforo-dot.verde { background-color: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.semaforo-dot.amarillo { background-color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }
.semaforo-dot.rojo { background-color: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }

/* ==========================================================================
   Responsive Design & Media Queries
   ========================================================================== */

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 300px;
        gap: 1rem;
    }
    .shift-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .android-app-content {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid hsl(var(--border-color));
        padding: 0.5rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-menu {
        display: flex;
        gap: 0.5rem;
    }
    .sidebar-menu li {
        margin-bottom: 0;
        padding: 0.5rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .android-tablet-wrapper {
        border-radius: 20px;
        border-width: 4px;
        padding: 0.5rem;
    }
    .tablet-screen {
        border-radius: 12px;
        height: 100vh;
        min-height: 800px;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    .app-container {
        padding: 0.5rem;
    }
    .shift-metrics-bar {
        grid-template-columns: 1fr;
    }
    .sidebar-header .details h4 {
        display: none;
    }
    .sidebar-header .details p {
        display: none;
    }
    .room-floor, .widget-map-container {
        min-height: 300px; /* Reduced height on mobile */
    }
    .floor-table {
        /* Scale down tables on mobile visually */
        transform: scale(0.85);
    }
    .floor-table:hover {
        transform: scale(0.95) translateY(-2px);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .android-tablet-wrapper {
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .tablet-screen {
        border-radius: 0;
        border: none;
        height: 100vh;
        min-height: 100vh;
    }
    .widget-progress {
        display: none; /* Hide progress bar on very small screens to save vertical space */
    }
    .widget-map-container {
        height: 250px;
    }
}
