/* ============================================= */
/* ==    HORARIOS.SITE - ADMIN STYLES        == */
/* ==    Panel de Administración v2.0        == */
/* ============================================= */

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

:root {
    --primary: #811313;
    --primary-light: #a51b1b;
    --primary-dark: #5c0e0e;
    --accent: #e6100d;
    --bg-dark: #0a0a0a;
    --bg-card: #141418;
    --bg-elevated: #1a1a1f;
    --bg-hover: #242429;
    --border: rgba(255,255,255,0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-muted: #6b6b75;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-card);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================= */
/* ==              LOGIN SCREEN               == */
/* ============================================= */

.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #15151a 100%);
    padding: 1rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 0.5s ease-out;
}

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

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.login-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 10px 40px rgba(129, 19, 19, 0.4);
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-label i {
    color: var(--primary-light);
    font-size: 0.7rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(129, 19, 19, 0.2);
}

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

/* ============================================= */
/* ==               BUTTONS                   == */
/* ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(129, 19, 19, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 19, 19, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

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

/* ============================================= */
/* ==            DASHBOARD LAYOUT             == */
/* ============================================= */

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

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

@media (min-width: 1024px) {
    .sidebar {
        position: relative;
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.brand-info h1 {
    font-size: 1rem;
    font-weight: 700;
}

.brand-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(129, 19, 19, 0.3);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav-item .badge.pulse {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); background: var(--success); }
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-elevated);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--info), #60a5fa);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 700;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

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

/* ============================================= */
/* ==             MAIN CONTENT                == */
/* ============================================= */

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 0;
    }
}

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

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

.page-title i {
    color: var(--primary-light);
    margin-right: 0.5rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.topbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Live indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Content Area */
.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ============================================= */
/* ==           SERVICE SELECTOR              == */
/* ============================================= */

.service-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 200px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.service-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(129, 19, 19, 0.1), rgba(230, 16, 13, 0.05));
    box-shadow: 0 10px 40px rgba(129, 19, 19, 0.2);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card:nth-child(1) .service-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.service-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

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

/* ============================================= */
/* ==              STATS GRID                 == */
/* ============================================= */

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

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

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.stat-icon.info {
    background: linear-gradient(135deg, var(--info), #2563eb);
    color: white;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ============================================= */
/* ==              CARD COMPONENT             == */
/* ============================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.card-title i {
    color: var(--primary-light);
}

.card-body {
    padding: 1.25rem;
}

/* ============================================= */
/* ==              CALENDAR LEGEND            == */
/* ============================================= */

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: 999px;
    border: 1px solid var(--border);
}

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

.legend-dot.available {
    background: var(--success);
}

.legend-dot.reserved {
    background: var(--danger);
}

.legend-dot.pending {
    background: var(--warning);
}

.legend-dot.expired {
    background: var(--text-muted);
}

/* ============================================= */
/* ==            WEEK NAVIGATION              == */
/* ============================================= */

.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.week-nav-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.week-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.week-range {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
}

/* ============================================= */
/* ==            CALENDAR TABLE               == */
/* ============================================= */

.calendar-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.calendar-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.calendar-table th:last-child,
.calendar-table td:last-child {
    border-right: none;
}

.calendar-table tr:last-child td {
    border-bottom: none;
}

.calendar-table th {
    background: var(--bg-elevated);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem;
}

.calendar-table th:first-child {
    width: 70px;
}

.calendar-table th.today {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.calendar-table td.today {
    background: rgba(129, 19, 19, 0.08);
}

.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.day-name {
    font-size: 0.6rem;
    opacity: 0.7;
}

.day-date {
    font-size: 0.85rem;
    font-weight: 700;
}

.time-cell {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.calendar-table td {
    height: 50px;
    vertical-align: middle;
    padding: 2px;
}

.calendar-table td.available {
    background: rgba(34, 197, 94, 0.1);
}

.calendar-table td.reserved {
    background: rgba(239, 68, 68, 0.1);
}

.calendar-table td.pending-reservation {
    background: rgba(245, 158, 11, 0.15);
}

.calendar-table td.expired {
    background: rgba(75, 75, 80, 0.2);
}

.calendar-table td.empty {
    background: transparent;
}

/* ============================================= */
/* ==          MULTI-SLOT (MULTI-CANCHA)      == */
/* ============================================= */
/* ============================================= */
/* ==       MINI-SLOT CON ACCIONES            == */
/* ============================================= */

.mini-slot.with-actions {
    flex-direction: column;
    padding: 2px;
    min-height: 40px;
    height: auto;
}

.mini-slot-actions {
    display: flex;
    gap: 2px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.mini-action-btn {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    transition: all 0.2s;
    color: white;
}

.mini-action-btn.confirm {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.mini-action-btn.cancel {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.mini-action-btn.delete {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.mini-action-btn:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* Ajustar altura de celdas para acomodar botones */
.calendar-table td {
    height: 55px;
    vertical-align: middle;
    padding: 2px;
}

/* Hacer el mini-slot más alto cuando tiene acciones */
.mini-slot.pending.with-actions,
.mini-slot.reserved.with-actions {
    min-width: 50px;
    padding: 4px 2px;
}

/* Responsive: en pantallas pequeñas, hacer botones más pequeños */
@media (max-width: 1200px) {
    .mini-action-btn {
        width: 18px;
        height: 18px;
        font-size: 0.45rem;
    }
    
    .mini-slot.with-actions {
        min-width: 45px;
    }
}

@media (max-width: 900px) {
    .mini-action-btn {
        width: 16px;
        height: 16px;
        font-size: 0.4rem;
    }
    
    .mini-slot-actions {
        gap: 1px;
    }
    
    .calendar-table td {
        height: 50px;
    }
}
.multi-slot-container {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 4px;
}

.mini-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.6rem;
    transition: all 0.2s;
}

.mini-slot.available {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.mini-slot.reserved {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.mini-slot.pending {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.mini-slot.empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.mini-slot.expired {
    background: rgba(75, 75, 80, 0.2);
    border: 1px solid rgba(75, 75, 80, 0.3);
}

.mini-slot-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    transition: all 0.2s;
    color: white;
}

.mini-slot-btn.add {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.mini-slot-btn.remove {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.mini-slot-btn:hover {
    transform: scale(1.15);
}

.mini-slot-icon {
    font-size: 0.7rem;
}

.mini-slot-icon.reserved {
    color: var(--danger);
}

.mini-slot-icon.pending {
    color: var(--warning);
}

.mini-slot-icon.expired {
    color: var(--text-muted);
}

/* ============================================= */
/* ==           RESERVATIONS LIST             == */
/* ============================================= */

.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reservation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reservation-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.reservation-item.new-reservation {
    animation: newReservation 1s ease;
    border-color: var(--success);
}

@keyframes newReservation {
    0%, 100% { background: var(--bg-elevated); }
    50% { background: rgba(34, 197, 94, 0.2); }
}

.reservation-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.reservation-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.reservation-details {
    flex: 1;
    min-width: 0;
}

.reservation-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.reservation-time {
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
}

.reservation-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

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

.status-badge.confirmed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

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

.action-btns {
    display: flex;
    gap: 0.35rem;
}

.action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    color: white;
}

.action-btn.confirm {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.action-btn.cancel {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.action-btn.delete {
    background: linear-gradient(135deg, var(--danger), #dc2626);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* ============================================= */
/* ==             EMPTY STATE                 == */
/* ============================================= */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================= */
/* ==               LOADING                   == */
/* ============================================= */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ============================================= */
/* ==          TOAST NOTIFICATIONS            == */
/* ============================================= */

.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.success i {
    color: var(--success);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info {
    border-color: rgba(59, 130, 246, 0.3);
}

.toast.info i {
    color: var(--info);
}

/* ============================================= */
/* ==               OVERLAY                   == */
/* ============================================= */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
}

.sidebar-overlay.show {
    display: block;
}

/* ============================================= */
/* ==            QUICK ACTIONS                == */
/* ============================================= */

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary);
}

.quick-action-btn i {
    font-size: 0.8rem;
}

/* ============================================= */
/* ==              RESPONSIVE                 == */
/* ============================================= */

@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .service-selector {
        flex-direction: column;
    }
    
    .service-card {
        min-width: 100%;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ============================================= */
/* ==              ANIMATIONS                 == */
/* ============================================= */

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

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