/* =====================================================
   BARBERÍA - CSS Mobile First
   Tema: Oscuro, masculino, moderno
   ===================================================== */

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1c2a4a;
    --bg-input: #0f0f1a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b8;
    --text-muted: #6c6c80;
    --accent: #e94560;
    --accent-hover: #ff6b81;
    --accent-soft: rgba(233, 69, 96, 0.15);
    --success: #00c853;
    --success-soft: rgba(0, 200, 83, 0.15);
    --warning: #ffc107;
    --warning-soft: rgba(255, 193, 7, 0.15);
    --danger: #ff1744;
    --danger-soft: rgba(255, 23, 68, 0.15);
    --info: #00bcd4;
    --info-soft: rgba(0, 188, 212, 0.15);
    --border: #2a2a40;
    --border-light: #333355;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --top-bar-height: 56px;
    --bottom-nav-height: 64px;
}

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

html {
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/bg-pattern.png');
    background-size: 1100px auto;
    background-repeat: repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.top-bar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

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

.user-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 20px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.sidebar.open {
    pointer-events: all;
    visibility: visible;
}

.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.open .sidebar-overlay { opacity: 1; }

.sidebar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: auto;
    font-size: 1.2rem;
}

.sidebar-section { padding: 8px 0; }

.sidebar-label {
    padding: 8px 20px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.sidebar-link i { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-link-danger { color: var(--danger) !important; }
.sidebar-link-danger:hover { background: var(--danger-soft) !important; }

.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); }

/* =====================================================
   BOTTOM NAV (MOBILE)
   ===================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    transition: color 0.2s;
}

.bottom-nav-item i { font-size: 1.3rem; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--accent); }

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: calc(var(--top-bar-height) + 16px);
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
    padding-left: 16px;
    padding-right: 16px;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.card:hover { border-color: var(--border-light); }

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

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body { }

.card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Stats Card */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* =====================================================
   CHAIR STATUS CARDS
   ===================================================== */
.chair-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.chair-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.chair-card.occupied {
    border-color: var(--success);
    border-left: 4px solid var(--success);
}

.chair-card.free {
    border-color: var(--border);
    opacity: 0.7;
}

.chair-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.chair-barber {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.chair-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-open { background: var(--success-soft); color: var(--success); }
.badge-closed { background: var(--accent-soft); color: var(--accent); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }
.badge-free { background: rgba(108, 108, 128, 0.15); color: var(--text-muted); }
.badge-paid { background: var(--success-soft); color: var(--success); }
.badge-scheduled { background: var(--info-soft); color: var(--info); }

.timer {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--success);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; color: #fff; }

.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { opacity: 0.9; color: #000; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; color: #fff; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; }

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-inline {
    display: flex;
    gap: 8px;
    align-items: end;
}

.form-inline .form-group { margin-bottom: 0; flex: 1; }

.input-error {
    color: var(--danger);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* =====================================================
   TABLES (Mobile-friendly)
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tr:hover td { background: var(--bg-card-hover); }

.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }
.data-table .text-nowrap { white-space: nowrap; }

/* Mobile card list alternative */
.list-items { }

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background 0.2s;
}

.list-item:hover { background: var(--bg-card-hover); }

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.list-item-body { flex: 1; min-width: 0; }

.list-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.list-item-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* =====================================================
   SERVICE PILLS
   ===================================================== */
.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin: 2px;
}

.service-pill .price { color: var(--accent); font-weight: 600; }

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message.success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(0,200,83,0.3); }
.message.error { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(255,23,68,0.3); }
.message.warning { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(255,193,7,0.3); }

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo i {
    font-size: 3rem;
    color: var(--accent);
}

.login-logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 8px;
}

.login-logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.login-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
}

.login-tab.active {
    background: var(--accent);
    color: #fff;
}

.login-tab:hover:not(.active) { color: var(--text-primary); }

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 0.9rem; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-lg { font-size: 1.1rem; }
.text-bold { font-weight: 700; }
.text-mono { font-variant-numeric: tabular-nums; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }
.w-100 { width: 100%; }

/* =====================================================
   BACKGROUND DECORATIONS & EMPTY STATES
   ===================================================== */

/* Silla libre: icono decorativo de fondo */
.chair-card.free {
    position: relative;
    overflow: hidden;
}

.chair-card.free::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 100px;
    height: 80px;
    background-image: url('/img/empty-chair.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

/* Empty state mejorado con imagen */
.empty-state {
    position: relative;
}

.empty-state-img {
    width: 120px;
    height: auto;
    opacity: 0.5;
    margin-bottom: 16px;
}

/* Login decoracion */
.login-body {
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/login-decoration.png');
    background-size: 380px auto;
    background-position: center 85%;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
}

/* Decoracion sutil en cards con patron de tijeras SVG inline */
.chair-card.occupied::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300c853'%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.399l-.244.031.028-.131h2.136z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
}

/* Icono decorativo en stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.3;
    pointer-events: none;
}

/* Top bar glow effect */
.top-bar {
    box-shadow: 0 2px 20px rgba(233, 69, 96, 0.08);
}

/* Sidebar header glow */
.sidebar-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(233, 69, 96, 0.05) 100%);
}

/* Bottom nav con glow sutil */
.bottom-nav {
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

/* Decorative line under page titles */
.page-title {
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: 2px;
}

/* Pulse animation for occupied chairs */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.badge-open i {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Timer glow on active sessions */
.timer {
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

/* Service pill hover lift */
.service-pill {
    transition: transform 0.15s ease;
}

.service-pill:hover {
    transform: translateY(-1px);
}

/* Card subtle gradient overlay */
.card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(22, 33, 62, 0.8) 100%);
}

/* Login card glass effect */
.login-card {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   BACKGROUND DECORATIONS & VISUAL POLISH
   ===================================================== */

/* Silla libre: icono decorativo de fondo */
.chair-card.free {
    position: relative;
    overflow: hidden;
}
.chair-card.free::after {
    content: '';
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 100px;
    height: 80px;
    background-image: url('/img/empty-chair.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

/* Empty state mejorado con imagen */
.empty-state-img {
    width: 120px;
    height: auto;
    opacity: 0.5;
    margin-bottom: 16px;
}

/* Login decoracion de fondo */
.login-body {
    position: relative;
    overflow: hidden;
}
.login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/img/login-decoration.png');
    background-size: 340px auto;
    background-position: center 82%;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.login-container {
    position: relative;
    z-index: 1;
}

/* Stat card decorative circle */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.3;
    pointer-events: none;
}

/* Top bar glow */
.top-bar {
    box-shadow: 0 2px 20px rgba(233, 69, 96, 0.08);
}

/* Sidebar header gradient */
.sidebar-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(233, 69, 96, 0.05) 100%);
}

/* Bottom nav shadow */
.bottom-nav {
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

/* Decorative underline for titles */
.page-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: 2px;
}

/* Pulse for occupied badge */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.badge-open i {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Timer glow */
.timer {
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

/* Service pill hover */
.service-pill { transition: transform 0.15s ease; }
.service-pill:hover { transform: translateY(-1px); }

/* Card gradient overlay */
.card {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(22, 33, 62, 0.8) 100%);
}

/* Login card glass effect */
.login-card {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   SESSION PHASES & NEW FLOW
   ===================================================== */

/* Section title (no underline) */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chair card as link */
.chair-card-link {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chair-card-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.chair-card-actionable {
    opacity: 1 !important;
}

.chair-card.unassigned {
    opacity: 0.5;
    border-style: dashed;
}

.chair-action-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
}

/* Badge checkout */
.badge-checkout {
    background: var(--warning-soft);
    color: var(--warning);
}

/* Btn Sentar Cliente */
.btn-seat {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-seat:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
}

.btn-seat:active {
    transform: scale(0.97);
}

/* Btn Terminé */
.btn-finish {
    background: linear-gradient(135deg, var(--warning) 0%, #ffca28 100%);
    color: #000;
    font-weight: 700;
    padding: 16px 24px;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
}

.btn-finish:hover {
    opacity: 0.9;
    color: #000;
}

/* Session phase cards */
.session-phase-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.phase-active {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.1) 0%, rgba(0, 200, 83, 0.05) 100%);
    border: 2px solid rgba(0, 200, 83, 0.3);
}

.phase-checkout {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.phase-closed {
    background: linear-gradient(135deg, rgba(108, 108, 128, 0.1) 0%, rgba(108, 108, 128, 0.05) 100%);
    border: 2px solid rgba(108, 108, 128, 0.2);
}

.phase-icon {
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 8px;
}

.phase-icon.checkout-icon { color: var(--warning); }
.phase-icon.closed-icon { color: var(--text-muted); }

.phase-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* Big timer (phase 1) */
.timer-big {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--success);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 200, 83, 0.3);
}

.duration-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* Service quick buttons grid */
.service-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

.service-quick-form {
    display: contents;
}

.service-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font);
    min-height: 64px;
}

.service-quick-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-1px);
}

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

.service-quick-name {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
}

.service-quick-price {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

/* Services added list */
.service-added-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.service-added-item:last-child { border-bottom: none; }

.service-added-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-added-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.service-added-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-remove-service {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.btn-remove-service:hover { opacity: 1; }

/* Quick pay buttons */
.quick-pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-pay-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 14px;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font);
    min-height: 80px;
}

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

.quick-pay-btn i {
    font-size: 1.8rem;
}

.quick-pay-cash {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 200, 83, 0.08) 100%);
    border-color: rgba(0, 200, 83, 0.4);
    color: var(--success);
}

.quick-pay-cash:hover {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.25) 0%, rgba(0, 200, 83, 0.12) 100%);
}

.quick-pay-sinpe {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, rgba(0, 188, 212, 0.08) 100%);
    border-color: rgba(0, 188, 212, 0.4);
    color: var(--info);
}

.quick-pay-sinpe:hover {
    border-color: var(--info);
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.25) 0%, rgba(0, 188, 212, 0.12) 100%);
}

.quick-pay-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.quick-pay-amount {
    font-weight: 800;
    font-size: 1.1rem;
}

/* Custom pay details */
.custom-pay-details {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.custom-pay-toggle {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    list-style: none;
}

.custom-pay-toggle::-webkit-details-marker { display: none; }

.custom-pay-toggle:hover { color: var(--text-secondary); }

.custom-pay-body {
    padding: 12px 0;
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 420px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    pointer-events: auto;
    animation: toastIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
}

.toast.toast-success {
    background: rgba(16, 185, 129, 0.95);
}
.toast.toast-error {
    background: rgba(239, 68, 68, 0.95);
}
.toast.toast-warning {
    background: rgba(245, 158, 11, 0.95);
}
.toast.toast-info {
    background: rgba(59, 130, 246, 0.95);
}

.toast i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-msg {
    flex: 1;
    line-height: 1.3;
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* Loading overlay for AJAX */
.ajax-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}
.ajax-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Confirm dialog custom */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
    box-sizing: border-box;
}
.confirm-box {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    max-width: 340px;
    width: 100%;
    text-align: center;
}
.confirm-msg {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.4;
}
.confirm-btns {
    display: flex;
    gap: 10px;
}
.confirm-btns .btn {
    flex: 1;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   MEDIA QUERIES
   ===================================================== */
/* =====================================================
   REPORTS
   ===================================================== */

/* Report link cards */
.report-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.report-link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.report-link-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.report-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.report-link-body { flex: 1; min-width: 0; }

.report-link-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.report-link-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Payment breakdown */
.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.pay-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pay-amount {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Financial summary */
.financial-summary {
    display: flex;
    flex-direction: column;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.fin-row-total {
    padding: 12px 0 4px;
}

.fin-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.fin-value {
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.fin-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Daily sales chart bars */
.daily-chart {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daily-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-bar-label {
    width: 28px;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.daily-bar-track {
    flex: 1;
    height: 22px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.daily-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 4px;
    min-width: 2px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    transition: width 0.6s ease;
}

.daily-bar-value {
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.daily-bar-count {
    width: 22px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 600px) {
    .chair-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .main-content {
        padding-bottom: 32px;
    }
    html { font-size: 16px; }
}

@media (min-width: 1024px) {
    .main-content { max-width: 960px; }
    .chair-grid { grid-template-columns: repeat(3, 1fr); }
}
