/* ==========================================================================
   Painel de Administração - Voar de Parapente
   Design System & Styling (Dark Glassmorphism UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-solid: #111827;
    --bg-card-hover: rgba(31, 41, 55, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-green: #38ef7d;
    --accent-teal: #11998e;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;

    --gradient-primary: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);

    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(56, 239, 125, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 10% 10%, rgba(17, 153, 142, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(56, 239, 125, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Base Layout & Sidebar Container */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--bg-card-solid);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    object-fit: cover;
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(56, 239, 125, 0.1);
    color: var(--accent-green);
    border-left: 3px solid var(--accent-green);
}

.sidebar-user {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Main Content Area */
.admin-main {
    margin-left: 260px;
    flex: 1;
    padding: 32px 40px;
    max-width: 1400px;
}

/* Top Header Bar */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Grid Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 239, 125, 0.3);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-yellow { background: rgba(245, 158, 11, 0.15); color: var(--accent-yellow); }
.icon-green { background: rgba(56, 239, 125, 0.15); color: var(--accent-green); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }

.metric-data h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-data .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Controls & Filter Section */
.content-section {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 10px 16px 10px 40px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(56, 239, 125, 0.1);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
}

.filter-options {
    display: flex;
    gap: 12px;
    align-items: center;
}

.select-custom {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    outline: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.select-custom option {
    background: var(--bg-card-solid);
    color: var(--text-primary);
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.customer-cell {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-weight: 600;
    color: var(--text-primary);
}

.customer-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-confirmed {
    background: rgba(56, 239, 125, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.badge-completed {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Buttons & Actions */
.btn-action {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--transition);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;

    font-size: 0.82rem;
    transition: var(--transition);
}

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

/* Login Screen Styling */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--accent-green);
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(56, 239, 125, 0.15);
}

.alert-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(56, 239, 125, 0.15);
    border: 1px solid rgba(56, 239, 125, 0.3);
    color: #86efac;
}

/* Modal Overlay */
.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;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    font-size: 1.2rem;
}

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

/* Responsive Utilities */
@media (max-width: 900px) {
    .admin-sidebar {
        width: 70px;
        padding: 16px 8px;
    }
    .sidebar-brand span,
    .sidebar-menu a span,
    .user-info {
        display: none;
    }
}

/* Seletor de Idiomas */
.lang-selector-container {
    position: relative;
    display: inline-block;
}

.lang-select-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-select-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-blue, #00A8E8);
}

.lang-select-btn .arrow {
    font-size: 0.65rem;
    margin-left: 2px;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 165px;
    padding: 6px 0;
    display: none;
    z-index: 10000;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.lang-option.active {
    font-weight: 700;
    color: var(--accent-green, #38ef7d);
    background: rgba(56, 239, 125, 0.1);
}

/* Seletor de Idiomas Segmentado (Pill Bar) */
.lang-switch-pill {
    display: inline-flex;
    align-items: center;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 3px 4px;
    border-radius: 40px;
    gap: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.lang-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-pill-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-pill-btn.active {
    background: #3B82F6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.45);
}

.lang-pill-btn .flag {
    font-size: 1rem;
    line-height: 1;
}

/* Botão de Toggle de Tema (Dark Mode) */
.theme-toggle-btn {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffd000;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(59, 130, 246, 0.2);
    border-color: #3B82F6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

/* Botão de Edição de Perfil (Lápis) */
.btn-edit-profile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-edit-profile:hover {
    background: rgba(56, 239, 125, 0.25);
    border-color: var(--accent-green);
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(56, 239, 125, 0.4);
}

/* Wrapper e Botão de Olho para Senha (Posicionamento no Canto Direito do Campo) */
.password-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.password-wrapper .form-control {
    width: 100% !important;
    padding-right: 45px !important;
    box-sizing: border-box !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    font-size: 1.15rem !important;
    color: #94a3b8 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
    user-select: none !important;
    z-index: 10 !important;
    line-height: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.password-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* ==========================================================================
   CALENDÁRIO DE RESERVAS NO ESTILO DARK COMPACTO (ESTILO APPLE/LUNAR CALENDAR)
   ========================================================================== */
.calendar-container {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 18px 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #8b949e;
    letter-spacing: 1px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 4px;
    margin-top: 14px;
}

.calendar-day-cell {
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 6px 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
    border: 1px solid transparent;
}

.calendar-day-cell:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.05);
}

.calendar-day-cell.other-month {
    opacity: 0.2;
    cursor: default;
}

.calendar-day-cell.other-month:hover {
    background: transparent;
    transform: none;
}

.calendar-day-number {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #f0f6fc;
}

.calendar-day-subtext {
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 3px;
    color: #8b949e;
    text-align: center;
    white-space: nowrap;
}

/* Dia Atual (Destaque Azul estilo iOS/Lunar do print do usuário) */
.calendar-day-cell.is-today {
    background: #0070f3 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(0, 112, 243, 0.5) !important;
}

.calendar-day-cell.is-today .calendar-day-number,
.calendar-day-cell.is-today .calendar-day-subtext {
    color: #ffffff !important;
}

/* Destaque de Cores de Reserva diretamente sob o número */
.calendar-day-cell.has-booking-confirmed {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.calendar-day-cell.has-booking-confirmed .calendar-day-number {
    color: #38ef7d;
}

.calendar-day-cell.has-booking-confirmed .calendar-day-subtext {
    color: #38ef7d;
    font-weight: 700;
}

.calendar-day-cell.has-booking-pending {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

.calendar-day-cell.has-booking-pending .calendar-day-number {
    color: #fbbf24;
}

.calendar-day-cell.has-booking-pending .calendar-day-subtext {
    color: #fbbf24;
    font-weight: 700;
}

.calendar-day-cell.has-booking-completed {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.5);
}

.calendar-day-cell.has-booking-completed .calendar-day-number {
    color: #60a5fa;
}

.calendar-day-cell.has-booking-completed .calendar-day-subtext {
    color: #60a5fa;
    font-weight: 700;
}

/* Tag de Etiqueta Destacada */
.calendar-label-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 3px;
    line-height: 1;
    display: inline-block;
}

.tag-confirmed {
    background: #10b981;
    color: #000000;
}

.tag-pending {
    background: #f59e0b;
    color: #000000;
}

.tag-completed {
    background: #3b82f6;
    color: #ffffff;
}

/* ==========================================================================
   SISTEMA DE MODO ESCURO E CLARO (DARK / LIGHT THEME SYSTEM)
   ========================================================================== */

/* Tema Escuro Ativo (Padrão ou data-theme="dark") */
html[data-theme="dark"],
body[data-theme="dark"],
.dark-mode {
    --bg-main: #0b0f19 !important;
    --bg-card: rgba(17, 24, 39, 0.85) !important;
    --bg-card-solid: #111827 !important;
    --bg-card-hover: rgba(31, 41, 55, 0.9) !important;
    --border-color: rgba(255, 255, 255, 0.1) !important;
    --border-light: rgba(255, 255, 255, 0.05) !important;

    --text-primary: #f9fafb !important;
    --text-secondary: #9ca3af !important;
    --text-muted: #6b7280 !important;
}

html[data-theme="dark"] body,
body.dark-mode {
    background-color: #0b0f19 !important;
    color: #f9fafb !important;
}

html[data-theme="dark"] .admin-sidebar,
body.dark-mode .admin-sidebar {
    background: #111827 !important;
    border-right-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .content-section,
body.dark-mode .content-section,
html[data-theme="dark"] .login-card,
body.dark-mode .login-card,
html[data-theme="dark"] .stat-card,
body.dark-mode .stat-card {
    background: rgba(17, 24, 39, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f9fafb !important;
}

html[data-theme="dark"] .theme-toggle-btn,
body.dark-mode .theme-toggle-btn {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    color: #ffd000 !important;
}

/* Tema Claro Ativo (data-theme="light") */
html[data-theme="light"],
body[data-theme="light"] {
    --bg-main: #f0f4f9 !important;
    --bg-card: #ffffff !important;
    --bg-card-solid: #ffffff !important;
    --bg-card-hover: #f8fafc !important;
    --border-color: #e2e8f0 !important;
    --border-light: #cbd5e1 !important;

    --text-primary: #0f172a !important;
    --text-secondary: #475569 !important;
    --text-muted: #64748b !important;
}

html[data-theme="light"] body {
    background-color: #f0f4f9 !important;
    background-image: 
        radial-gradient(at 10% 10%, rgba(164, 194, 244, 0.25) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(112, 151, 209, 0.15) 0px, transparent 50%) !important;
    color: #0f172a !important;
}

html[data-theme="light"] .admin-sidebar {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
}

html[data-theme="light"] .sidebar-brand {
    color: #0f172a !important;
}

html[data-theme="light"] .sidebar-menu a {
    color: #475569 !important;
}

html[data-theme="light"] .sidebar-menu a:hover,
html[data-theme="light"] .sidebar-menu a.active {
    background: rgba(17, 153, 142, 0.1) !important;
    color: #0d9488 !important;
}

html[data-theme="light"] .content-section,
html[data-theme="light"] .login-card,
html[data-theme="light"] .stat-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .page-title,
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 {
    color: #0f172a !important;
}

html[data-theme="light"] .page-subtitle,
html[data-theme="light"] p {
    color: #475569 !important;
}

html[data-theme="light"] table,
html[data-theme="light"] th,
html[data-theme="light"] td {
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] th {
    background: #f8fafc !important;
    color: #334155 !important;
}

html[data-theme="light"] .form-control {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .theme-toggle-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .lang-select-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .lang-dropdown-menu {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .lang-option {
    color: #334155 !important;
}

html[data-theme="light"] .lang-option:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
}

html[data-theme="light"] .pix-box {
    background: rgba(17, 153, 142, 0.08) !important;
}

html[data-theme="light"] .pix-code {
    background: #0f172a !important;
    color: #38ef7d !important;
}

/* ==========================================================================
   RESPONSIVIDADE MÓVEL PARA PAINEL DO CLIENTE E ADMIN (MOBILE & TABLETS)
   ========================================================================== */

@media (max-width: 968px) {
    .admin-wrapper {
        flex-direction: column !important;
    }

    .admin-sidebar {
        width: 100% !important;
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 16px !important;
    }

    .sidebar-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .sidebar-menu li {
        margin-bottom: 0 !important;
        flex: 1 1 auto !important;
    }

    .sidebar-menu a {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }

    .admin-content {
        padding: 16px !important;
    }

    .booking-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .booking-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    /* Modal Overlay em Telas de Celular */
    .modal-overlay {
        padding: 10px !important;
    }

    .modal-card {
        padding: 20px 14px !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    /* Formulários e Linhas com Grids em Telas de Celular */
    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .login-card {
        margin: 20px 12px !important;
        padding: 24px 16px !important;
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
    }

    /* Tabelas com rolagem horizontal em dispositivos móveis */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}


