/* ========================================
   SKIN STUDIO - PANEL ADMIN
   Ultra Premium con Alto Contraste
   ======================================== */

:root {
    /* Colores Premium - Alto Contraste */
    --gold: #FFD700;
    --gold-light: #FFE44D;
    --gold-dark: #CC9900;
    --gold-glow: rgba(255, 215, 0, 0.5);
    
    /* Fondos con más contraste */
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-card: #1A1A1A;
    --bg-elevated: #242424;
    
    /* Texto con alto contraste */
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8E8;
    --text-muted: #AAAAAA;
    
    /* Estados con colores vibrantes */
    --success: #00FF7F;
    --success-bg: rgba(0, 255, 127, 0.15);
    --error: #FF4757;
    --error-bg: rgba(255, 71, 87, 0.15);
    --warning: #FFC107;
    --warning-bg: rgba(255, 193, 7, 0.15);
    --info: #00BFFF;
    --info-bg: rgba(0, 191, 255, 0.15);
    
    /* Tipografía */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espaciado */
    --header-height: 70px;
    --safe-bottom: env(safe-area-inset-bottom, 0);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   PANTALLA DE LOGIN
   ======================================== */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(255, 71, 87, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #0A0A0A 0%, #1A0A10 50%, #0A0A0A 100%);
}

.login-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
}

.login-logo {
    margin-bottom: 40px;
}

.logo-icon-admin {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(145deg, var(--gold-light), var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px var(--gold-glow);
}

.logo-icon-admin i {
    font-size: 40px;
    color: var(--bg-primary);
}

.login-logo h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
}

.input-group > i:first-child {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 20px 55px;
    border-radius: 16px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-muted);
}

.input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.toggle-password:hover {
    color: var(--gold);
}

.login-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.3);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.4);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--gold);
}

/* ========================================
   PANEL DE ADMINISTRACIÓN
   ======================================== */
.admin-panel {
    min-height: 100vh;
    background: var(--bg-primary);
}

.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn-admin {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--gold);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.back-btn-admin:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.header-title h1 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
}

.header-title p {
    font-size: 12px;
    color: var(--text-muted);
}

.logout-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--error);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--error);
    color: white;
}

/* ========================================
   TABS
   ======================================== */
.tabs-container {
    display: flex;
    padding: 15px 15px 0;
    gap: 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 12px;
    background: transparent;
    border: none;
    border-radius: 14px 14px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab i {
    font-size: 20px;
}

.tab.active {
    background: var(--bg-card);
    color: var(--gold);
}

.tab:hover:not(.active) {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-badge {
    position: absolute;
    top: 8px;
    right: 15px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   CONTENIDO ADMIN
   ======================================== */
.admin-content {
    padding: 20px 15px calc(20px + var(--safe-bottom));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Filtro Dropdown */
.filter-dropdown select {
    padding: 12px 35px 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Botón Añadir */
.add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

/* ========================================
   LISTA DE CITAS
   ======================================== */
.citas-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cita-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cita-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.2);
}

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

.cita-folio {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}

.cita-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cita-status.pendiente {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.cita-status.confirmada {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(0, 191, 255, 0.3);
}

.cita-status.completada {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.cita-status.cancelada {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.cita-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cita-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.cita-row i {
    width: 20px;
    color: var(--gold);
    opacity: 0.7;
    font-size: 14px;
}

.cita-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cita-total-label {
    font-size: 13px;
    color: var(--text-muted);
}

.cita-total-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold);
}

/* ========================================
   LISTA DE SERVICIOS
   ======================================== */
.servicios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.servicio-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.servicio-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 20px;
    flex-shrink: 0;
}

.servicio-info {
    flex: 1;
    min-width: 0;
}

.servicio-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.servicio-category {
    font-size: 12px;
    color: var(--text-muted);
}

.servicio-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    margin-right: 10px;
}

.servicio-actions {
    display: flex;
    gap: 8px;
}

.servicio-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-btn.edit {
    background: rgba(0, 191, 255, 0.15);
    color: var(--info);
}

.servicio-btn.edit:hover {
    background: var(--info);
    color: white;
}

.servicio-btn.delete {
    background: rgba(255, 71, 87, 0.15);
    color: var(--error);
}

.servicio-btn.delete:hover {
    background: var(--error);
    color: white;
}

.servicio-inactive {
    opacity: 0.5;
}

/* ========================================
   CALENDARIO ADMIN
   ======================================== */
.calendar-admin-container {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 25px;
}

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

.cal-nav-admin {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--gold);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-nav-admin:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.calendar-admin-header > span {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-weekdays-admin {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
}

.calendar-weekdays-admin span {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    padding: 10px 0;
}

.calendar-days-admin {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day-admin {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.calendar-day-admin:not(.empty):not(.disabled):hover {
    background: rgba(255, 215, 0, 0.2);
}

.calendar-day-admin.selected {
    background: var(--gold);
    color: var(--bg-primary);
    font-weight: 700;
}

.calendar-day-admin.has-appointments::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--info);
}

.calendar-day-admin.fully-blocked {
    background: rgba(255, 71, 87, 0.2);
    color: var(--error);
}

.calendar-day-admin.partially-blocked {
    background: rgba(255, 193, 7, 0.15);
}

.calendar-day-admin.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.calendar-day-admin.empty {
    cursor: default;
}

/* ========================================
   GESTIÓN DE HORARIOS
   ======================================== */
.time-management {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    margin-bottom: 25px;
}

.time-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.time-management-header h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-management-header h3 span {
    color: var(--gold);
}

.bulk-actions {
    display: flex;
    gap: 10px;
}

.bulk-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.bulk-btn.block {
    background: rgba(255, 71, 87, 0.15);
    color: var(--error);
}

.bulk-btn.block:hover {
    background: var(--error);
    color: white;
}

.bulk-btn.unblock {
    background: rgba(0, 255, 127, 0.15);
    color: var(--success);
}

.bulk-btn.unblock:hover {
    background: var(--success);
    color: var(--bg-primary);
}

.time-grid-admin {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot-admin {
    padding: 14px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot-admin:hover:not(.occupied) {
    border-color: var(--gold);
}

.time-slot-admin.available {
    background: rgba(0, 255, 127, 0.1);
    border-color: rgba(0, 255, 127, 0.3);
    color: var(--success);
}

.time-slot-admin.blocked {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--error);
}

.time-slot-admin.occupied {
    background: rgba(0, 191, 255, 0.15);
    border-color: rgba(0, 191, 255, 0.3);
    color: var(--info);
    cursor: not-allowed;
}

/* Leyenda */
.legend-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-dot.available {
    background: rgba(0, 255, 127, 0.3);
    border: 1px solid var(--success);
}

.legend-dot.blocked {
    background: rgba(255, 71, 87, 0.3);
    border: 1px solid var(--error);
}

.legend-dot.occupied {
    background: rgba(0, 191, 255, 0.3);
    border: 1px solid var(--info);
}

/* ========================================
   MODALES ADMIN
   ======================================== */
.modal-admin {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-admin.active {
    display: flex;
}

.modal-overlay-admin {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content-admin {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpAdmin 0.3s ease;
}

@keyframes slideUpAdmin {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.modal-header-admin h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header-admin h2 i {
    color: var(--gold);
}

.close-btn-admin {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn-admin:hover {
    background: var(--error);
    color: white;
}

.modal-body-admin {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.modal-footer-admin {
    display: flex;
    gap: 12px;
    padding: 20px 22px;
    padding-bottom: calc(20px + var(--safe-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   FORMULARIOS
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 215, 0, 0.15);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

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

/* Checkbox personalizado */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: var(--bg-card);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: bold;
}

/* Botones */
.btn-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    flex: 1;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #00CC66);
    color: var(--bg-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #CC3344);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #0099CC);
    color: white;
}

/* ========================================
   DETALLE DE CITA EN MODAL
   ======================================== */
.cita-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cita-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.cita-detail-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.cita-detail-label i {
    color: var(--gold);
    width: 20px;
}

.cita-detail-value {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    text-align: right;
    max-width: 55%;
}

.cita-detail-value.total {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
}

.cita-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.cita-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cita-action-btn.confirm {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(0, 191, 255, 0.3);
}

.cita-action-btn.confirm:hover {
    background: var(--info);
    color: white;
}

.cita-action-btn.complete {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(0, 255, 127, 0.3);
}

.cita-action-btn.complete:hover {
    background: var(--success);
    color: var(--bg-primary);
}

.cita-action-btn.cancel {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.cita-action-btn.cancel:hover {
    background: var(--error);
    color: white;
}

/* ========================================
   ESTADOS VACÍOS
   ======================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 60px;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ========================================
   LOADING
   ======================================== */
.loading-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    gap: 15px;
}

.loading-spinner-admin {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   TOASTS
   ======================================== */
#toastContainerAdmin {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

.toast-admin {
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: toastIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

.toast-admin.info { background: rgba(0, 191, 255, 0.95); color: white; }
.toast-admin.success { background: rgba(0, 255, 127, 0.95); color: #000; }
.toast-admin.warning { background: rgba(255, 193, 7, 0.95); color: #000; }
.toast-admin.error { background: rgba(255, 71, 87, 0.95); color: white; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (min-width: 500px) {
    .time-grid-admin {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) {
    .admin-content {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .modal-content-admin {
        border-radius: 28px;
        margin: auto;
        max-height: 85vh;
    }
}
