:root {
    --primary: #00d3ff;
    --primary-dark: #008eb0;
    --bg-dark: #0f172a;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Shapes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

.shape-3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #00d3ff 0%, transparent 70%);
    opacity: 0.3;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.hidden { display: none !important; }
.active { display: flex !important; }

/* --- LOGIN --- */
.centered-panel {
    width: 100%;
    max-width: 400px;
    margin: 10vh auto;
    padding: 40px;
    flex-direction: column;
    gap: 24px;
}

.login-header h2, .logo h2 {
    font-size: 28px;
    font-weight: 700;
}
.login-header h2 span, .logo h2 span {
    color: var(--primary);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.input-group label {
    font-size: 14px;
    color: var(--text-muted);
}

.input-group input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 211, 255, 0.2);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: auto;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.error-msg {
    color: var(--danger);
    font-size: 14px;
    min-height: 20px;
    margin-bottom: 10px;
}

/* --- DASHBOARD --- */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4px 6px 4px 12px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-meta {
    display: flex;
    align-items: center;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.btn-logout {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.header-filters {
    display: flex;
    gap: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.glass-select, .glass-date {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-select:focus, .glass-date:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 211, 255, 0.2);
}

.glass-select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.kpi-card {
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}
.kpi-card:hover { transform: translateY(-5px); }

.kpi-card h3 {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 12px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}

.kpi-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .charts-row {
        grid-template-columns: 1fr 1fr;
    }
}

.chart-card, .table-card {
    padding: 24px;
}

.chart-card h3, .table-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
}

td { font-size: 14px; }

tbody tr { transition: background 0.2s ease; }
tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

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

.glass-panel {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    z-index: 10;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.tab-btn.active {
    background: var(--primary);
    color: #000;
}

/* View Sections */
.view-section {
    width: 100%;
}
.view-section.hidden {
    display: none !important;
}

/* Monthly Mini KPIs */
.kpi-monthly-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.mini-kpi-card {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px 0 rgba(0, 211, 255, 0.1);
}

.mini-kpi-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
}

/* Calendar Scheduling Styles */
.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.calendar-day.selected {
    background: rgba(0, 211, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 211, 255, 0.2);
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

.calendar-day.has-shift {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: var(--text-main) !important;
}

.calendar-day.has-shift:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: var(--success) !important;
}

.calendar-day.has-shift.draft-shift {
    background: rgba(255, 193, 7, 0.05) !important;
    border: 1px dashed rgba(255, 193, 7, 0.5) !important;
    color: var(--warning) !important;
}

.calendar-day.has-shift.draft-shift:hover {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.8) !important;
}

.calendar-day.has-shift.draft-double-shift {
    background: rgba(168, 85, 247, 0.05) !important;
    border: 1px dashed rgba(168, 85, 247, 0.5) !important;
    color: #a855f7 !important;
}

.calendar-day.has-shift.draft-double-shift:hover {
    background: rgba(168, 85, 247, 0.1) !important;
    border-color: rgba(168, 85, 247, 0.8) !important;
}

.calendar-day.licencia-day {
    background: rgba(14, 165, 233, 0.12) !important;
    border: 1px solid rgba(14, 165, 233, 0.4) !important;
    color: #fff !important;
}

.calendar-day.licencia-day:hover {
    background: rgba(14, 165, 233, 0.2) !important;
    border-color: #38bdf8 !important;
}



/* Media Queries para Adaptabilidad Móvil */
@media (max-width: 900px) {
    .header-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .tab-navigation {
        justify-content: center;
    }
    
    .header-filters {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 650px) {
    .header-top {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .header-filters {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-group select, .filter-group input {
        flex: 1;
        max-width: 200px;
    }
    
    .tab-navigation {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 4px 8px;
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none; /* Oculta barra para mantener elegancia */
    }
}

/* Estilos de input dentro de tablas (inline editing) */
.table-input {
    width: 100%;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.table-input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(0, 211, 255, 0.1);
}

/* --- DETALLE EMPLEADO MODAL --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 760px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    padding: 24px;
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-header h2 span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
    color: #fff;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Scrollbar para modal body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Stats Summary Row */
.stats-summary-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-badge-card {
    flex: 1;
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.stat-badge-card.puntual { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.05); }
.stat-badge-card.tarde { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.05); }
.stat-badge-card.ausente { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.05); }
.stat-badge-card.penalizado { border-color: rgba(249, 115, 22, 0.4); background: rgba(249, 115, 22, 0.05); }
.stat-badge-card.licencia { border-color: rgba(14, 165, 233, 0.4); background: rgba(14, 165, 233, 0.05); }

.stat-badge-card .label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.stat-badge-card.puntual .label { color: #34d399; }
.stat-badge-card.tarde .label { color: #fbbf24; }
.stat-badge-card.ausente .label { color: #f87171; }
.stat-badge-card.penalizado .label { color: #fb923c; }
.stat-badge-card.licencia .label { color: #38bdf8; }

.stat-badge-card .value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Horas Stats Card */
.hours-summary-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
}

.hours-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.hours-stat .label {
    font-size: 12px;
    color: var(--text-muted);
}

.hours-stat .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.hours-stat.diferencia .value.pos {
    color: var(--success);
}

.hours-stat.diferencia .value.neg {
    color: var(--danger);
}

.hours-stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Calendar Section */
.modal-calendar-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-calendar-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.modal-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.modal-calendar-days-header span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.modal-day-cell {
    aspect-ratio: 1.1;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    cursor: help;
    transition: all 0.2s ease;
}

.modal-day-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-day-cell .num {
    font-size: 12px;
    align-self: flex-start;
}

.modal-day-cell .indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    align-self: flex-end;
}

/* Modal Calendar States */
.modal-day-cell.day-empty {
    background: transparent !important;
    border: none !important;
    cursor: default;
    box-shadow: none !important;
    transform: none !important;
}

.modal-day-cell.day-sin-turno {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.25);
}

.modal-day-cell.day-sin-turno:hover {
    background: rgba(255, 255, 255, 0.05);
}

.modal-day-cell.day-puntual {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #fff;
}
.modal-day-cell.day-puntual .num { color: #34d399; }

.modal-day-cell.day-tarde {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fff;
}
.modal-day-cell.day-tarde .num { color: #fbbf24; }

.modal-day-cell.day-ausente {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fff;
}
.modal-day-cell.day-ausente .num { color: #f87171; }

.modal-day-cell.day-penalizado {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: #fff;
}
.modal-day-cell.day-penalizado .num { color: #fb923c; }

.modal-day-cell.day-licencia {
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #fff;
}
.modal-day-cell.day-licencia .num { color: #38bdf8; }

/* Tooltips for Calendar Days */
.day-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    width: max-content;
    max-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-main);
}

.modal-day-cell:hover .day-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.day-tooltip .tooltip-title {
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.day-tooltip .tooltip-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.day-tooltip .tooltip-row span {
    font-weight: 400;
    color: var(--text-muted);
}

.day-tooltip .tooltip-row strong {
    font-weight: 600;
}

/* Adaptabilidad para el modal */
@media (max-width: 768px) {
    .hours-summary-card {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .hours-stat:nth-child(2) {
        border-right: none;
    }
    .hours-stat:nth-child(even) {
        border-right: none;
    }
    .modal-day-cell {
        aspect-ratio: 1;
        padding: 4px;
        font-size: 11px;
    }
    .modal-day-cell .num {
        font-size: 10px;
    }
}

/* Planificador Semanal Custom Styles */
.weekly-cell {
    padding: 8px !important;
    border-bottom: 1px solid var(--glass-border) !important;
    border-right: 1px solid var(--glass-border) !important;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
    background: rgba(0, 0, 0, 0.05);
}
.weekly-cell:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}
.weekly-cell.blocked-licencia {
    cursor: not-allowed !important;
}
.weekly-cell.blocked-licencia:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
.weekly-cell-box {
    border-radius: 6px;
    padding: 6px;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}
/* Borrador: Punteado */
.weekly-cell-box.draft {
    border: 1px dashed rgba(255, 193, 7, 0.6) !important;
    background: rgba(255, 193, 7, 0.08) !important;
    color: var(--warning) !important;
}
/* Confirmado/Publicado: Color sólido de fondo */
.weekly-cell-box.published {
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
}
/* Licencia: Celeste */
.weekly-cell-box.licencia {
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.15) !important;
    color: #38bdf8 !important;
}
/* Vacío */
.weekly-cell-box.empty {
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-muted);
}
.palette-item {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
.palette-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.palette-item.active {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 211, 255, 0.2);
}
.palette-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.hdr-date {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: var(--text-muted);
}
/* Transición suave entre semanas en Planificador Semanal */
#weekly-grid-table {
    transition: opacity 0.25s ease-in-out;
}
#weekly-grid-table.weekly-loading {
    opacity: 0.45;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 4px #10b981; }
    50% { opacity: 0.6; transform: scale(1.2); box-shadow: 0 0 12px #10b981; }
}





