/* ============================================
   ATROZ RESTAURANTE - ADMIN PANEL STYLES
   ============================================ */

/* ====== LOGIN SCREEN ====== */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 1rem;
}

.login-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-card h2 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem;
}

.login-card p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.login-form label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: #dc2626;
}

.login-error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #dc2626;
}

/* ====== ADMIN LAYOUT ====== */
.admin-panel {
    display: flex;
    min-height: 100vh;
    background: #0f0f17;
    color: #e0e0e0;
}

/* ====== SIDEBAR ====== */
.admin-sidebar {
    width: 260px;
    background: #13131f;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-logo {
    width: 40px;
    height: auto;
}

.sidebar-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    position: relative;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sidebar-link.active {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border-right: 3px solid #dc2626;
}

.sidebar-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.badge {
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-logout {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    padding: 0.6rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.btn-back-web {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8rem;
    text-align: center;
    transition: color 0.2s;
}

.btn-back-web:hover {
    color: #dc2626;
}

/* ====== MAIN CONTENT ====== */
.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

/* ====== TOPBAR ====== */
.admin-topbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #13131f;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h2 {
    color: #fff;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.notification-bell {
    position: relative;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.3rem;
}

.notif-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ====== SECTIONS ====== */
.admin-section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

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

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

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

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
}

.stat-icon {
    font-size: 2rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.stat-today { border-left: 3px solid #3b82f6; }
.stat-pending { border-left: 3px solid #f59e0b; }
.stat-week { border-left: 3px solid #10b981; }
.stat-guests { border-left: 3px solid #8b5cf6; }

/* ====== DASHBOARD GRID ====== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dash-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.dash-card h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 1rem;
    font-family: 'Playfair Display', serif;
}

.empty-state {
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 2rem;
    font-style: italic;
}

/* ====== UPCOMING/PENDING LIST ====== */
.upcoming-item, .pending-item, .reminder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 0.8rem;
}

.upcoming-item:last-child, .pending-item:last-child, .reminder-item:last-child {
    border-bottom: none;
}

.reservation-info {
    flex: 1;
}

.reservation-info .res-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.reservation-info .res-details {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.reservation-actions {
    display: flex;
    gap: 0.4rem;
}

/* ====== CALENDAR ====== */
.calendar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    min-width: 200px;
    text-align: center;
    margin: 0;
}

.cal-nav {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.cal-nav:hover {
    background: rgba(255,255,255,0.15);
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.green { background: #10b981; }
.legend-dot.yellow { background: #f59e0b; }
.legend-dot.red { background: #ef4444; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.03);
    border-radius: 0.75rem;
    overflow: hidden;
}

.cal-day-header {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    padding: 0.6rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cal-day {
    background: rgba(255,255,255,0.02);
    min-height: 80px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.cal-day:hover {
    background: rgba(255,255,255,0.06);
}

.cal-day.today {
    border: 2px solid #dc2626;
}

.cal-day.other-month {
    opacity: 0.3;
}

.cal-day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.3rem;
}

.cal-day-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.cal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cal-dot.confirmada { background: #10b981; }
.cal-dot.pendiente { background: #f59e0b; }
.cal-dot.cancelada { background: #ef4444; }

.calendar-day-detail {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.calendar-day-detail h4 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 1rem;
}

/* ====== RESERVATIONS — CANAL OLÍMPICO STYLE ====== */

/* Header bar */
.res-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.res-section-title {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.res-count {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.res-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Search bar */
.res-search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.res-search-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e0e0e0;
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.res-search-input:focus {
    outline: none;
    border-color: #dc2626;
    background: rgba(255,255,255,0.08);
}

.res-search-input::placeholder {
    color: rgba(255,255,255,0.35);
}

/* Filter tabs */
.res-filter-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.res-tab {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.res-tab:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.res-tab.active {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.4);
}

/* --- Keep shared styles --- */
.reservations-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select, .filter-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: #dc2626;
}

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

.reservations-table-wrap {
    overflow-x: auto;
}

/* Table row styling */
.res-table-row {
    cursor: pointer;
    transition: background 0.15s;
}

.res-table-row:hover td {
    background: rgba(220, 38, 38, 0.06) !important;
}

.res-cell-id .res-number {
    font-family: 'Sora', monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
}

.res-cell-client .client-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.res-cell-client .client-phone {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.res-cell-date .date-main {
    color: #fff;
    font-size: 0.85rem;
}

.res-cell-date .date-time {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.res-cell-guests {
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.res-cell-table {
    font-family: 'Sora', monospace;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

.res-cell-location {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.res-view-btn {
    background: transparent;
    color: #dc2626;
    border: 1px solid rgba(220,38,38,0.3);
    padding: 0.35rem 0.9rem;
    border-radius: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.res-view-btn:hover {
    background: #dc2626;
    color: #fff;
}

/* ====== RESERVATION DETAIL VIEW ====== */
.detail-back-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.detail-back-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.detail-back-btn:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: #dc2626;
}

.detail-header-info {
    flex: 1;
}

.detail-header-name {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 800;
}

.detail-header-sub {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.detail-header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Detail body layout */
.detail-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .detail-body {
        grid-template-columns: 1fr;
    }
}

/* Main info card */
.detail-main-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.detail-main-card h4 {
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.detail-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.detail-info-row .detail-label {
    width: 130px;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-info-row .detail-value {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-meta {
    margin: 1rem 0 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* Side panels */
.detail-side-panels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-panel {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 1.2rem;
}

.detail-panel h4 {
    margin: 0 0 0.6rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.detail-panel-desc {
    margin: 0 0 0.8rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.detail-email-warning {
    color: #f59e0b;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
}

/* Status change buttons */
.detail-status-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.status-btn {
    padding: 0.45rem 1rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.status-btn.pendiente { border-color: rgba(245,158,11,0.3); color: #f59e0b; }
.status-btn.confirmada { border-color: rgba(16,185,129,0.3); color: #10b981; }
.status-btn.cancelada { border-color: rgba(239,68,68,0.3); color: #ef4444; }

.status-btn.active {
    color: #fff !important;
}

.status-btn.active.pendiente { background: #f59e0b; }
.status-btn.active.confirmada { background: #10b981; }
.status-btn.active.cancelada { background: #ef4444; }

.status-btn:hover {
    opacity: 0.8;
}

.detail-email-btns, .detail-action-btns {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-email-btns .btn, .detail-action-btns .btn,
.detail-email-btns .btn-small, .detail-action-btns .btn-small {
    text-align: left;
    justify-content: flex-start;
}

.reservations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.reservations-table th {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    padding: 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.reservations-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    white-space: nowrap;
}

.reservations-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pendiente {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.confirmada {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.cancelada {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.nueva {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ====== BUTTONS ====== */
.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-small.btn-confirm {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-small.btn-confirm:hover {
    background: #10b981;
    color: #fff;
}

.btn-small.btn-cancel-res {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-small.btn-cancel-res:hover {
    background: #ef4444;
    color: #fff;
}

.btn-small.btn-edit {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-small.btn-edit:hover {
    background: #3b82f6;
    color: #fff;
}

.btn-small.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-small.btn-whatsapp:hover {
    background: #25d366;
    color: #fff;
}

.btn-small.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-small.btn-delete:hover {
    background: #ef4444;
    color: #fff;
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-danger:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* ====== REMINDERS ====== */
.reminders-info {
    margin-bottom: 1.5rem;
}

.reminders-info h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem;
}

.reminders-info p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.reminders-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    overflow: hidden;
}

.reminder-item {
    padding: 1rem;
}

/* ====== SETTINGS ====== */
.settings-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.settings-card h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.settings-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.settings-group:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.settings-group h4 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.settings-desc {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.settings-card .form-group {
    margin-bottom: 1rem;
}

.settings-card label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.settings-card input[type="text"],
.settings-card input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.4rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.settings-card input:focus {
    outline: none;
    border-color: #dc2626;
}

.help-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.input-with-btn input {
    flex: 1;
}

.settings-status {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    min-height: 1.2rem;
}

.settings-status.success { color: #10b981; }
.settings-status.error { color: #ef4444; }

.settings-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.instructions-list {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 1.2rem;
}

.instructions-list code {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

/* ====== MODAL ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.modal-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #dc2626;
}

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

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.4rem;
    color: #e0e0e0;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #dc2626;
}

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

.modal-actions {
    display: flex;
    gap: 0.8rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ====== DETAIL MODAL ====== */
.detail-row {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.detail-label {
    color: rgba(255,255,255,0.5);
    width: 120px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.detail-value {
    color: #fff;
    font-size: 0.95rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

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

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-section {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .reservations-toolbar, .res-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        flex-direction: column;
        width: 100%;
    }

    .filter-select, .filter-input {
        width: 100%;
    }

    .toolbar-actions, .res-toolbar-actions {
        width: 100%;
    }

    .detail-body {
        grid-template-columns: 1fr;
    }

    .detail-back-bar {
        flex-wrap: wrap;
    }

    .detail-header-right {
        width: 100%;
        margin-top: 0.5rem;
    }

    .modal-content .form-row {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        font-size: 0.8rem;
    }

    .cal-day {
        min-height: 50px;
        padding: 0.3rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        padding: 0.8rem 1rem;
    }

    .calendar-header {
        flex-wrap: wrap;
    }
}

/* ====== FOOTER ADMIN LINK ====== */
.admin-access-link {
    color: rgba(255,255,255,0.2) !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    transition: color 0.3s;
    margin-left: 0.5rem;
}

.admin-access-link:hover {
    color: #dc2626 !important;
}

/* ====== EMAIL BUTTON ====== */
.btn-small.btn-email {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-small.btn-email:hover {
    background: #3b82f6;
    color: #fff;
}

/* ====== CONTACTS ====== */
.contacts-header {
    margin-bottom: 1.5rem;
}

.contacts-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem;
}

.contacts-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.contacts-toolbar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
}

.contacts-toolbar .filter-input {
    flex: 1;
    min-width: 200px;
}

.contacts-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.contact-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.contact-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.contact-stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.contacts-table-wrap {
    overflow-x: auto;
}

/* ====== REVIEWS ====== */
.reviews-header {
    margin-bottom: 1.5rem;
}

.reviews-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem;
}

.reviews-header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.reviews-toolbar {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.reviews-config {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviews-config .form-group label {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.reviews-config .filter-input {
    padding: 0.7rem 1rem;
}

.reviews-config .help-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.4rem;
}

/* ====== REMINDERS ACTIONS BAR ====== */
.reminders-actions-bar {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

/* ====== MESAS - PLANO VISUAL ====== */
.tables-header {
    margin-bottom: 1.5rem;
}

.tables-header h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    margin: 0 0 1rem;
}

.tables-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.tables-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.tables-legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.tables-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.table-summary-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.summary-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.tables-zones {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.zone-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.5rem;
}

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

.zone-header h4 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.zone-capacity {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.zone-tables {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.zone-tables.interior-layout {
    display: grid;
    grid-template-columns: auto repeat(4, 1fr) auto;
    gap: 0.8rem;
    align-items: start;
}

/* Individual table card */
.table-card {
    background: rgba(16, 185, 129, 0.08);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    padding: 0.8rem 1rem;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.table-card.occupied {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}

.table-card.combined {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.table-card.combined::after {
    content: '🔗';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.75rem;
    background: #1a1a2e;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-card .table-id {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.2rem;
}

.table-card .table-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
}

.table-card .table-capacity {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.table-card .table-capacity .extra {
    color: rgba(245, 158, 11, 0.7);
    font-size: 0.65rem;
}

.table-card .table-reservation {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}

.table-card .table-reservation .res-name {
    font-weight: 600;
    color: #f59e0b;
}

.table-card .table-reservation .res-detail {
    color: rgba(255,255,255,0.4);
}

/* Edit panel */
.table-edit-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: #1a1a2e;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

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

.table-edit-header h4 {
    color: #fff;
    margin: 0;
}

.table-edit-panel .edit-field {
    margin-bottom: 1rem;
}

.table-edit-panel .edit-field label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.table-edit-panel .edit-field input,
.table-edit-panel .edit-field select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
}

.table-edit-panel .edit-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.table-edit-panel .assigned-reservation {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.table-edit-panel .assigned-reservation h5 {
    color: #f59e0b;
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
}

.table-edit-panel .assigned-info {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tables-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    .zone-tables.interior-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    .table-edit-panel {
        width: 100%;
    }
}

/* ====== CONTACT MODAL ====== */
.contact-modal-content {
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
}

.contact-detail-section {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-detail-section:last-child {
    border-bottom: none;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-info-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.contact-info-value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-row:hover {
    background: rgba(255,255,255,0.04) !important;
}

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