/**
 * EjeHair — Premium Brand Theme
 * Paleta: Navy #0F172A + Gold #CBA135
 * Sincronizado con landing page ejehair
 * @version 2.0.0
 */

/* ===================== IMPORT FONTS ===================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Colors (EjeHair Gold) */
    --primary: #CBA135;
    --primary-dark: #A07C20;
    --primary-light: #E8C55A;
    --primary-glow: rgba(203, 161, 53, 0.25);

    /* Deep Navy Palette - Obsidian Dark Mode */
    --navy: #0B0F19; /* Background profundo */
    --navy-mid: #151A28; /* Sidebar/Cards */
    --navy-light: #1F2937; /* Hover */
    --navy-border: rgba(255, 255, 255, 0.08);
    
    /* Text & UI */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --card-bg: rgba(21, 26, 40, 0.6);
    --glass-bg: rgba(15, 23, 42, 0.4);
    
    /* Overriding legacy logic from style.v2.css */
    --light: #0B0F19 !important;
    --dark: #F8FAFC !important;
    --border: rgba(255, 255, 255, 0.08) !important;
    --secondary: #0F172A;
    
    /* Shadows & Effects */
    --shadow-premium: 0 8px 32px rgba(0, 0, 0, 0.5);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ===================== BASE ===================== */
body {
    font-family: var(--font-body);
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Immersive Dark Background with subtle gradient */
    background: radial-gradient(circle at top left, #151A28 0%, #0B0F19 100%);
    background-attachment: fixed;
}


/* ===================== ADMIN LAYOUT ===================== */
.admin-layout {
    display: block;
    /* Removed flex to ensure standard layout flow with fixed sidebar */
    min-height: 100vh;
    position: relative;
}

body.is-login .sidebar {
    display: none;
}

body.is-login .main-content {
    margin-left: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.main-content {
    margin-left: 260px !important;
    /* Force fixed margin on desktop */
    padding: 2.5rem 3rem;
    min-height: 100vh;
    min-width: 0;
    max-width: none;
    overflow-x: hidden;
}

/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem 2.5rem 0.5rem;
    flex-shrink: 0;
}

.sidebar-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: auto;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(203, 161, 53, 0.1);
    border: 1px solid rgba(203, 161, 53, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.08);
}

/* Hide legacy top navbar */
.navbar {
    display: none !important;
}

/* ===================== PAGE HEADERS ===================== */
.page-header h2 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #f8fafc;
    /* overriding navy for dark mode */
    position: relative;
    margin-bottom: 0.25rem;
}

.page-header p.page-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
}

.page-header h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin-top: 6px;
}

/* ===================== BUTTONS ===================== */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 0.6rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--navy);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: var(--primary);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light);
    color: var(--gray);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger-outline {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* ===================== UNIFIED PREMIUM CARDS ===================== */
.metric-card,
.chart-card,
.report-card,
.rule-card,
.login-card,
.card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--navy-border) !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--text-main) !important;
}

.metric-card:hover, .chart-card:hover, .report-card:hover {
    transform: translateY(-5px);
    border-color: rgba(203, 161, 53, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.metric-card h3, .chart-card h3, .report-card h3 {
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.75rem !important;
    font-weight: 700 !important;
}

/* Specific Metric Card Accents (Mockup Style) */
.metrics-grid .metric-card:nth-child(1) { border: 1px solid rgba(56, 189, 248, 0.4) !important; box-shadow: 0 0 15px rgba(56, 189, 248, 0.1) !important; }
.metrics-grid .metric-card:nth-child(2) { border: 1px solid rgba(251, 146, 60, 0.4) !important; box-shadow: 0 0 15px rgba(251, 146, 60, 0.1) !important; }
.metrics-grid .metric-card:nth-child(3) { border: 1px solid rgba(74, 222, 128, 0.4) !important; box-shadow: 0 0 15px rgba(74, 222, 128, 0.1) !important; }
.metrics-grid .metric-card:nth-child(4) { border: 1px solid rgba(167, 139, 250, 0.4) !important; box-shadow: 0 0 15px rgba(167, 139, 250, 0.1) !important; }

.metric-card {
    padding: 1.25rem !important; /* Más compacto */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metric-card h3 {
    margin: 0 0 0.5rem 0 !important;
    font-size: 0.7rem !important;
    opacity: 0.8;
}

.metric-card .metric-value {
    margin: 0 !important;
    line-height: 1 !important;
}

/* Deep Navy Palette Refinement & Glassmorphism */
:root {
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --navy-border: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --primary-glow: rgba(203, 161, 53, 0.15);
}

.card, .metric-card, .chart-card, .report-card, .rule-card, .login-card, .table-container, .mobile-nav-card {
    background: var(--card-bg) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid var(--navy-border) !important;
    border-radius: 16px !important; /* Mockup has slightly sharper corners than 20px */
    box-shadow: var(--shadow-glass) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    color: var(--text-main) !important;
    padding: 1.5rem; /* Default for non-metric cards */
}

.card:hover, .metric-card:hover, .chart-card:hover, .report-card:hover, .mobile-nav-card:hover {
    background: var(--card-hover-bg) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow) !important;
    transform: translateY(-5px);
}

body {
    background: radial-gradient(circle at top left, #1E293B 0%, #0B0F19 100%) !important;
    background-attachment: fixed !important;
    color: var(--text-main);
}

.btn-back-dashboard {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-back-dashboard:hover {
    background: rgba(255,255,255,0.1);
}

.table-container {
    background: var(--card-bg);
    border: 1px solid var(--navy-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent !important;
}

.data-table thead th {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 1rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--navy-border);
}

.data-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--navy-border);
    color: var(--text-main) !important;
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Alineación de acciones en tabla */
.table-actions {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border) !important;
}

.table-actions .btn-sm {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.btn-edit {
    background: rgba(203, 161, 53, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(203, 161, 53, 0.3) !important;
}

.btn-edit:hover {
    background: var(--primary) !important;
    color: var(--navy) !important;
}

.table-actions .btn-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.table-actions .btn-danger:hover {
    background: #ef4444 !important;
    color: white !important;
}

.data-table tr:hover td {
    background: rgba(203, 161, 53, 0.05);
}

/* ===================== BADGES ===================== */
/* ===================== BADGES (Premium Style) ===================== */
.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-info {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.2);
}

.badge-gold {
    background: rgba(203, 161, 53, 0.15);
    color: var(--primary-dark);
}

/* ===================== FORMS ===================== */
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.4rem;
    display: block;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ===================== MODALS ===================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
}

/* ===================== CALENDAR overrides ===================== */
#calendar {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(15, 23, 42, 0.4);
    --fc-neutral-text-color: #94a3b8;
    --fc-border-color: rgba(255, 255, 255, 0.08);
    --fc-button-text-color: #f8fafc;
    --fc-button-bg-color: rgba(15, 23, 42, 0.6);
    --fc-button-border-color: rgba(255, 255, 255, 0.1);
    --fc-button-hover-bg-color: var(--primary);
    --fc-button-hover-border-color: var(--primary);
    --fc-button-hover-text-color: var(--navy);
    --fc-button-active-bg-color: var(--primary);
    --fc-button-active-border-color: var(--primary);
    --fc-button-active-text-color: var(--navy);
    --fc-today-bg-color: rgba(203, 161, 53, 0.08);
    background: transparent !important;
}

.fc .fc-toolbar-title {
    color: #f8fafc;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem !important;
}

.fc-theme-standard {
    background: transparent !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
}

.fc .fc-view-harness {
    background: transparent !important;
}

/* Header Cells */
.fc-col-header-cell {
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 0.75rem 0 !important;
}

.fc-col-header-cell-cushion {
    color: #94A3B8 !important;
    /* var(--gray) */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Time labels (Left col) */
.fc .fc-timegrid-slot-label-cushion {
    color: #94A3B8 !important;
    font-size: 0.8rem;
    padding-right: 0.5rem;
}

/* Day Numbers */
.fc .fc-daygrid-day-number {
    color: #94A3B8 !important;
    font-weight: 600;
    padding: 0.5rem !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: #f8fafc !important;
    background: var(--primary);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
}

.fc .fc-timegrid-col.fc-day-today {
    background: rgba(203, 161, 53, 0.03) !important;
    /* Subtle gold tint for today */
}

/* Events */
.fc-event {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    padding: 3px 6px !important;
}

/* Modifiers for AgendaPro pastels -> Dark Neon */
.fc-event.pastel-blue {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #38bdf8 !important;
    border-left: 3px solid #38bdf8 !important;
}

.fc-event.pastel-green {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border-left: 3px solid #4ade80 !important;
}

.fc-event.pastel-purple {
    background: rgba(168, 85, 247, 0.15) !important;
    color: #c084fc !important;
    border-left: 3px solid #c084fc !important;
}

.fc-event.pastel-orange {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fb923c !important;
    border-left: 3px solid #fb923c !important;
}

.fc-event-title {
    white-space: normal !important;
    font-weight: 600;
    color: #f8fafc !important;
}

.fc-event-time {
    color: #f8fafc !important;
    font-weight: 700;
}

.fc-event .fc-event-main,
.fc-event .fc-event-main * {
    color: #f8fafc !important;
    font-weight: 500;
}

/* Buttons */
.fc .fc-button-primary {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: none !important;
    transition: all 0.2s;
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--navy) !important;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--danger);
}

/* ===================== LOGIN & AUTH STATES ===================== */
.is-login .sidebar,
.is-login .mobile-header {
    display: none !important;
}

.is-login .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
}

/* ===================== LOGIN ===================== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    background: linear-gradient(135deg, #0F172A 0%, #1E1438 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203, 161, 53, 0.1), transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-card {
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    border-top: 3px solid var(--primary);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
}

.login-logo h2 span {
    color: var(--primary);
}

.login-logo p {
    font-size: 0.88rem;
    color: var(--gray);
    margin-top: 0.3rem;
}

/* ===================== LOYALTY RULES ===================== */
.rule-card {
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.rule-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.rule-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
}

.highlight-text {
    color: var(--primary);
    font-weight: 700;
}



/* ===================== CHARTS ===================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    padding: 1.5rem;
    border-radius: 14px;
}

.chart-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(203, 161, 53, 0.15);
}

/* ===================== REPORTS ===================== */
.report-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.report-section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.report-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===================== SERVICES ===================== */
.service-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(203, 161, 53, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
    }

    /* Minimalist header for mobile when sidebar is hidden */
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background: #0F172A;
        /* Solid navy for mobile header */
        margin-bottom: 1rem;
        border-radius: 12px;
        position: relative;
        z-index: 10;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .nav-toggle span {
        width: 24px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
    }

    .table-container {
        overflow-x: auto;
    }

    .modal-content {
        width: 95%;
        margin: 0.5rem;
        padding: 1.5rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem;
    }
}

/* ===================== EMPLEADOS (STAFF) ===================== */
.empleados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.empleado-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empleado-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
    transform: translateY(-2px);
}

.emp-inactivo {
    opacity: 0.55;
    filter: grayscale(0.5);
}

.emp-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.emp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.emp-info {
    flex: 1;
}

.emp-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--navy);
}

.emp-role {
    font-size: 0.78rem;
    color: var(--gray);
    margin-top: 0.1rem;
}

.emp-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.emp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    background: #f8f9fc;
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.emp-stat-val {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--navy);
}

.emp-stat-lab {
    font-size: 0.68rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.emp-schedule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
}

.page-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin: 0;
}

@media (max-width: 768px) {
    .page-header h2 {
        font-size: 1.5rem;
    }
}

.emp-wa {
    font-size: 0.78rem;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}

.emp-wa:hover {
    text-decoration: underline;
}

.emp-actions {
    display: flex;
    gap: 0.5rem;
}

.emp-actions .btn {
    flex: 1;
    font-size: 0.78rem;
}

.btn-success-outline {
    background: transparent;
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

.btn-success-outline:hover {
    background: #dcfce7;
    border-color: #22c55e;
}

.color-chip {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
}

.color-chip:hover {
    transform: scale(1.2);
}

.color-chip.selected {
    border-color: var(--navy);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--navy);
}

.emp-summary {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .empleados-grid {
        grid-template-columns: 1fr;
    }

    .emp-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ────────── ESTILISTA FILTER PILLS (Calendario) ────────── */
.estilista-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    border: 1.5px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.estilista-pill:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.estilista-pill.active {
    background: var(--navy);
    color: var(--primary);
}

/* ────────── FOTOS ANTES/DESPUÉS (Clientes) ────────── */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.foto-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f1f5f9;
    cursor: pointer;
}

.foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.foto-thumb:hover img {
    transform: scale(1.05);
}

.foto-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.foto-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.foto-thumb:hover .foto-del {
    display: flex;
}

/* ===================== FULLCALENDAR RESOURCE (AGENDAPRO) STYLES ===================== */
/* Column headers for each employee/stylist */
.fc-resource-timeline-divider,
.fc-datagrid-cell-frame {
    background: var(--navy-mid) !important;
}

.fc .fc-resource-group-cell {
    background: var(--navy-mid) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Resource label column (employee name header) */
.fc .fc-col-header-cell.fc-resource {
    background: var(--navy-mid) !important;
    border-bottom: 2px solid var(--primary) !important;
    text-align: center;
    padding: 8px 4px !important;
}

.fc .fc-col-header-cell.fc-resource .fc-col-header-cell-cushion {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Avatar circle per employee (auto-generated from first letter) */
.fc-resource-label-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #0B0F19;
    margin: 0 auto 2px;
    background: var(--primary);
}

/* Time grid lanes (rows) in resource mode */
.fc .fc-timegrid-cols td {
    border-color: var(--navy-border) !important;
}

/* Subtle column separator between employees */
.fc .fc-timegrid-col {
    border-right: 1px solid rgba(203, 161, 53, 0.12) !important;
}

/* Event pill style in resource mode */
.fc-timegrid-event {
    border-radius: 6px !important;
    border-left-width: 3px !important;
    padding: 2px 5px !important;
    font-size: 0.78rem !important;
}

/* ===================== MOBILE NAV GRID (DASHBOARD v2.1) ===================== */
.mobile-nav-grid {
    display: none; /* Oculto por defecto en Escritorio */
}

/* Tarjeta individual */
.mobile-nav-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid var(--navy-border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Efecto hover/tap suave */
.mobile-nav-card:active, .mobile-nav-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Fondo decorativo pastel suave */
/* .mobile-nav-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(203,161,53,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.mnc-icon {
    font-size: 2rem;
    line-height: 1;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mnc-info {
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mnc-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #F8FAFC !important;
    font-weight: 700;
}

.mnc-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted) !important;
    line-height: 1.2;
}

/* Media Queries para activar el Grid Móvil */
@media (max-width: 768px) {
    /* Ocultar barra lateral y toggle antiguo por completo */
    .sidebar {
        display: none !important;
    }
    
    .nav-toggle.is-mobile-only {
        display: none !important;
    }

    /* Ajustar content */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 1rem !important;
    }

    /* Mostrar Mobile Nav Grid en el Dashboard */
    .mobile-nav-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    /* Optimizar metrics-grid para mobile (2 columnas) */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* Dashboard Desktop Grid Fix */
@media (min-width: 769px) {
    .metrics-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 380px) {
    /* En pantallas hiper pequeñas (iPhone SE), tal vez 1 columna o 2 más apretadas */
    .mobile-nav-grid {
        gap: 0.75rem; 
    }
    .mobile-nav-card {
        padding: 1rem 0.75rem;
    }
    .mnc-icon {
        font-size: 1.75rem;
    }
    .mnc-info h4 {
        font-size: 0.9rem;
    }
}