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

body {
    font-family: 'Inter', 'Manrope', 'Poppins', Arial, sans-serif;
    background: linear-gradient(135deg, #F9F871 0%, #E0BBE4 100%);
    min-height: 100vh;
    margin: 0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

#vacationDaysTotal,
#vacationDaysUsed + span {
    display: none;
}

.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.sidebar {
    background: linear-gradient(135deg, #C7CEEA 0%, #B5D0FE 100%);
    width: 280px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 16px 16px;
    border-radius: 0 32px 32px 0;
    box-shadow: 2px 0 20px 0 rgba(180, 160, 255, 0.10);
}

.sidebar-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.sidebar-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px #e0bbe4a6;
}

.sidebar-avatar h2 {
    font-size: 1.2em;
    font-weight: 700;
    color: #7c6ae6;
    margin: 0;
}

.sidebar-nav {
    width: 100%;
    margin-bottom: 24px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section {
    font-weight: 600;
    color: #6b54b3;
    margin-bottom: 6px;
    padding: 8px 0 4px 8px;
}

.sidebar-sub {
    margin: 0 0 8px 16px;
    padding: 0;
}

.sidebar-sub li {
    padding: 4px 0 4px 10px;
    border-radius: 10px;
    margin-bottom: 2px;
    font-size: 0.97em;
    color: #4e3c7e;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-sub li.active, .sidebar-sub li:hover {
    background: #e0bbf4;
    color: #6b54b3;
}

.sidebar-add-btn {
    margin-top: auto;
    background: linear-gradient(90deg, #F9F871 0%, #B5FFF8 100%);
    color: #7c6ae6;
    border: none;
    border-radius: 18px;
    font-size: 1.1em;
    font-weight: 700;
    padding: 16px 32px;
    box-shadow: 0 4px 16px #b5d0fe44;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-add-btn:hover {
    background: linear-gradient(90deg, #E0BBE4 0%, #C7CEEA 100%);
    color: #fff;
    box-shadow: 0 6px 24px #b5d0fe66;
    transform: translateY(-2px);
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.main-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
}

.kpi-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.kpi-card {
    background: linear-gradient(120deg, #B5FFF8 0%, #E0BBE4 100%);
    border-radius: 14px;
    box-shadow: 0 4px 16px #b5d0fe33;
    padding: 16px 24px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
    flex: 1;
}

.kpi-title {
    font-size: 1em;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 1.8em;
    font-weight: 700;
    margin: 4px 0;
    color: #4e3c7e;
}

.kpi-label {
    font-size: 0.8em;
    color: #718096;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.kpi-remaining {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-size: 0.85em;
    color: #5a5a5a;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.kpi-remaining #remainingDays,
.kpi-remaining #vacationDaysRemaining {
    font-weight: 700;
    color: #4f46e5;
    font-size: 1.1em;
}

.kpi-remaining #remainingDays,
.kpi-remaining #vacationDaysRemaining {
    font-weight: 700;
    margin-left: 4px;
    color: #2c7be5;
    background: rgba(44, 123, 229, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

/* Para el contador de vacaciones */
#vacationDaysRemaining {
    color: #00a854;
    background: rgba(0, 168, 84, 0.1) !important;
}

/* Efecto hover sutil */
.kpi-card:hover .kpi-remaining {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* Space for future progress bar styling if needed */
.kpi-alert {
    background: linear-gradient(120deg, #F9F871 0%, #FFD6E0 100%);
}

.kpi-alert-text {
    color: #e57373;
    font-weight: 700;
    font-size: 1.15em;
}

.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.alert::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

.alert.info {
    background: #e3f2fd;
    color: #0d47a1;
}

.alert.info::after {
    background: #2196f3;
}

.alert.error {
    background: #ffebee;
    color: #b71c1c;
}

.alert.error::after {
    background: #f44336;
}

.alert.success {
    background: #e8f5e9;
    color: #1b5e20;
}

.alert.success::after {
    background: #4caf50;
}

.alert.warning {
    background: #fff8e1;
    color: #e65100;
}

.alert.warning::after {
    background: #ff9800;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.alert-card {
    background: linear-gradient(90deg, #FFFDE4 0%, #B5FFF8 100%);
    color: #7c6ae6;
    border-radius: 14px;
    box-shadow: 0 4px 16px #b5d0fe33;
    padding: 18px 32px;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.7s;
}

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

.stats-section {
    display: flex;
    gap: 18px;
    margin: 24px 0 16px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: linear-gradient(120deg, #C7CEEA 0%, #B5FFF8 100%);
    border-radius: 14px;
    box-shadow: 0 2px 12px #b5d0fe22;
    padding: 18px 26px;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.05em;
    color: #4e3c7e;
}

.stat-card i {
    font-size: 1.6em;
    margin-bottom: 6px;
    color: #7c6ae6;
}

/* Pills para días marcados */
.pill {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 16px;
    font-size: 0.95em;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 2px 8px #b5d0fe33;
    margin: 2px 0;
}

.pill-oficina { background: linear-gradient(90deg, #B5FFF8 0%, #7c6ae6 100%); color: #4e3c7e; }
.pill-vacaciones { background: linear-gradient(90deg, #E0BBE4 0%, #F9F871 100%); color: #7c6ae6; }
.pill-festivo { background: linear-gradient(90deg, #C7CEEA 0%, #FFD6E0 100%); color: #e57373; }
.pill-weekend { background: linear-gradient(90deg, #B5D0FE 0%, #B5FFF8 100%); color: #6b54b3; }

/* Calendario anual */
.calendar-section {
    margin-bottom: 24px;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #e0bbf433;
    padding: 10px 24px;
    margin-bottom: 16px;
}

.calendar-navigation button {
    padding: 10px 24px;
    font-size: 1.1em;
    border-radius: 8px;
    border: none;
    background: linear-gradient(90deg, #C7CEEA 0%, #B5D0FE 100%);
    color: #7c6ae6;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
    box-shadow: 0 2px 8px #b5d0fe22;
}

.calendar-navigation button:hover {
    background: linear-gradient(90deg, #B5FFF8 0%, #E0BBE4 100%);
    color: #fff;
    transform: translateY(-2px);
}

#currentYear {
    font-size: 1.7em;
    font-weight: 700;
    color: #4e3c7e;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 10px 0;
}

.month {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px #b5d0fe22;
    padding: 12px 8px 16px 8px;
    transition: transform 0.2s;
}

.month:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px #b5d0fe44;
}

.month h3 {
    font-size: 1.2em;
    color: #7c6ae6;
    margin: 0 0 8px 0;
    font-weight: 600;
}

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

.day-name {
    font-weight: 600;
    background: #F9F871;
    color: #7c6ae6;
    border-radius: 3px;
    padding: 2px 0;
    font-size: 0.7em;
    text-align: center;
}

.day {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
}

/* Data management */
.data-management {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}

.data-button {
    background: linear-gradient(90deg, #B5FFF8 0%, #E0BBE4 100%);
    color: #7c6ae6;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    box-shadow: 0 2px 8px #b5d0fe22;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1em;
}

.data-button:hover {
    background: linear-gradient(90deg, #F9F871 0%, #B5FFF8 100%);
    color: #fff;
}

/* Modal y overlay */
.modal {
    display: none; /* Mostrar con JS */
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 40px;
    width: 100%;
    max-width: 700px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Botón de cierre */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #9e9e9e;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.close-button:hover {
    background: #f5f5f5;
    color: #757575;
    transform: rotate(90deg);
}

/* Contenedor de botones */
.modal-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Estilos para los botones del modal */
.modal-button {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #4e3c7e;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95em;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Iconos de los botones */
.modal-button i {
    font-size: 1.6em;
    margin-bottom: 6px;
}

/* Estilos específicos para cada tipo de botón */
.modal-button.office { 
    background: linear-gradient(135deg, #B5FFF8 0%, #7c6ae6 100%);
    color: #4e3c7e;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-button.vacation { 
    background: linear-gradient(135deg, #E0BBE4 0%, #F9F871 100%);
    color: #7c6ae6;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-button.holiday { 
    background: linear-gradient(135deg, #C7CEEA 0%, #FFD6E0 100%);
    color: #e57373;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-button.clear { 
    background: linear-gradient(135deg, #FFD6E0 0%, #f8bbd0 100%);
    color: #e57373;
    border: 1px solid rgba(255, 255, 255, 0.3);
    grid-column: 1 / -1; /* Ocupa todas las columnas */
    width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Efecto hover para todos los botones */
.modal-button:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
    filter: brightness(1.05);
}

/* Efecto activo al hacer clic */
.modal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Efecto de onda al hacer clic */
.modal-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.6) 10%, transparent 10.01%) no-repeat 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.modal-button:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* Efecto de onda al hacer clic */
.modal-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 10%, transparent 10.01%) no-repeat 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.modal-button:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.modal-overlay {
    display: none; /* Mostrar con JS */
    position: fixed;
    z-index: 1999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Animación de entrada del modal */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.4s ease-out forwards;
}

.modal-overlay.show {
    display: block;
    opacity: 1;
}

/* Estilos para el título del modal */
.modal h2 {
    color: #4e3c7e;
    margin: 0 0 24px 0;
    font-size: 1.6em;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
    width: 100%;
}

.modal h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #7c6ae6 0%, #B5FFF8 100%);
    border-radius: 4px;
}

/* Mejoras de accesibilidad */
.modal-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 106, 230, 0.4);
}

/* Transiciones suaves */
.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for office and vacation stats */
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background-color: #f0f8ff; /* Light blue background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-item i {
    font-size: 3em; /* Larger icons */
    margin-bottom: 10px;
    color: #007bff; /* Blue icon color */
}

.stat-item p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #333;
}

.stat-item span {
    font-weight: bold;
    color: #0056b3; /* Darker blue for numbers */
}

.stat-item input[type="number"] {
    width: 45px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
    margin: 0 2px;
}

.stat-item input[type="number"]::-webkit-outer-spin-button,
.stat-item input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stat-item input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.office-stats i {
    color: #28a745; /* Green for office icon */
}

.office-stats span {
    color: #1e7e34; /* Darker green for office numbers */
}

.vacation-stats i {
    color: #ffc107; /* Amber for vacation icon */
}

.vacation-stats span {
    color: #d39e00; /* Darker amber for vacation numbers */
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}



.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #f8f9fa; /* Light background for navigation */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calendar-navigation button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff; /* Primary blue */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}

.calendar-navigation button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

.calendar-navigation button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

#currentYear {
    font-size: 1.8em;
    color: #343a40; /* Dark grey for year text */
    font-weight: bold;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    padding: 8px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.month {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    background-color: #fefefe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
    min-width: 0;
    font-size: 0.9em;
}

.month:hover {
    transform: translateY(-5px);
}

.month h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

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

.day-name {
    font-weight: bold;
    background-color: #e0f7fa; /* Light blue for day names */
    padding: 8px 0;
    font-size: 0.9em;
    border-radius: 4px;
    color: #00796b;
}

.day {
    padding: 10px 0;
}

/* Data management styles */
/* (Ya incluido en la sección anterior, se puede eliminar o dejar como backup) */
.data-management {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.data-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.data-button.export {
    background-color: #28a745;
    color: #7c6ae6;
}

.data-button.export:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.data-button.import {
    background-color: #007bff;
    color: #7c6ae6;
}

.data-button.import:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Modal Styles - Versión mejorada */

.day {
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1em;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.day:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.day.current-month {
    background-color: #ffffff;
}

.day.other-month {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

/* Estilos del calendario */
.calendar-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-navigation h2 {
    margin: 0;
    color: #4a4a4a;
    font-size: 1.5em;
}

.calendar-navigation button {
    background: #7c6ae6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.calendar-navigation button:hover {
    background: #6a5acd;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.month {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.month h3 {
    text-align: center;
    color: #4a4a4a;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.1em;
}

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

.day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.8em;
    color: #7c6ae6;
    padding: 4px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
    position: relative;
}

.day.current-month {
    color: #333;
}

.day.other-month {
    color: #ccc;
    cursor: default;
}

.day.today {
    font-weight: bold;
    color: #7c6ae6;
    position: relative;
}

.day.today::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(124, 106, 230, 0.1);
    z-index: -1;
}

.day.office {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.day.vacation {
    background-color: #e3f2fd;
    color: #1565c0;
}

.day.holiday {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.day:hover:not(.other-month) {
    background-color: #f5f5f5;
}

.day.selected-office {
    background-color: #4CAF50; /* Green for office days */
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.4);
}

.day.selected-vacation {
    background-color: #FFC107; /* Amber for vacation days */
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(255, 193, 7, 0.4);
}

.day.today {
    border: 2px solid #2196F3; /* Blue for today */
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.6);
    background-color: #e3f2fd; /* Lighter blue background for today */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
        width: 90%;
    }
    
    .modal h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .modal-buttons {
        gap: 10px;
    }
    
    .modal-button {
        padding: 10px 16px;
        font-size: 0.9em;
        min-width: 80px;
    }
    
    .modal-button i {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 28px 16px;
        width: 95%;
    }
    
    .modal h2 {
        font-size: 1.3em;
        margin-bottom: 16px;
    }
    
    .modal-buttons {
        gap: 8px;
    }
    
    .modal-button {
        padding: 8px 12px;
        font-size: 0.85em;
        min-width: 70px;
    }
    
    .modal-button i {
        font-size: 1.1em;
    }
    
    .close-button {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }
}

.month {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
}

.month h3 {
    margin: 0 0 6px 0;
    color: #555;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    text-align: center;
}

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

.day-name {
    font-weight: bold;
    background-color: #eee;
    padding: 5px 0;
    font-size: 0.8em;
}

.day {
    padding: 2px 0;
    border: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
}

.day:hover {
    background-color: #e2e2e2;
}

.day.current-month {
    background-color: #fff;
}

.day.other-month {
    background-color: #f0f0f0;
    color: #ccc;
}

.day.selected-office {
    background-color: #A7D9A7; /* Verde pastel */
    color: #333;
    border-radius: 50%;
}

.day.selected-vacation {
    background-color: #FFFACD; /* Amarillo pastel */
    color: #333;
    border-radius: 50%;
}

.day.weekend {
    background-color: #E0E0E0; /* Gris claro pastel para fines de semana */
}

.day.holiday {
    background-color: #ff6b6b;
    color: white;
}

.day.office-preview {
    background-color: #e0f8e0; /* Verde muy claro para días de previsión */
    color: #1a531b; /* Texto oscuro para mejor contraste */
    font-weight: bold;
    border: 2px dashed #4caf50; /* Borde verde más oscuro */
    opacity: 0.9;
}



/* Estilo para días temporalmente seleccionados durante el arrastre */
.day.temp-selected {
    background-color: #b3d9ff !important; /* Azul claro para selección temporal */
    border: 2px dashed #007bff;
    color: #333;
    font-weight: bold;
}

/* Mejorar la experiencia de arrastre */
.day {
    user-select: none; /* Prevenir selección de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.forecast-stats {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    border: 2px solid #6c757d;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.forecast-stats h3 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #495057;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 8px;
}

.forecast-stats p {
    margin: 8px 0;
    font-size: 1em;
    color: #212529;
}

.status-indicator {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.95em;
    display: inline-block;
    margin-left: 5px;
    border: 2px solid;
}

.status-ahead {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.status-ontime {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.status-behind {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

/* Mejorar legibilidad de números importantes */
.forecast-stats span:not(.status-indicator) {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

/* Ajustar grid para 3 columnas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
/* Estilos para la selección de días de la semana */
/* Estilos para la selección de días de la semana - Rediseño estético "Juntos" */
.weekdays-selection {
    display: flex;
    justify-content: center;
    gap: 4px; /* Pequeño espacio entre botones */
    background: #f0f2f5;
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
    margin: 0 auto 24px auto;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.weekdays-selection label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    position: relative;
    font-size: 0.95em;
}

.weekdays-selection label:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: #495057;
}

/* Estado seleccionado usando :has() */
.weekdays-selection label:has(input:checked) {
    background-color: #fff;
    color: #7c6ae6;
    box-shadow: 0 2px 8px rgba(124, 106, 230, 0.2);
    transform: translateY(-1px);
}

/* Ocultar el checkbox nativo pero mantener accesibilidad */
.weekdays-selection input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Añadir un indicador visual (punto) para los seleccionados */
.weekdays-selection label:has(input:checked)::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #7c6ae6;
    margin-right: 6px;
}

/* Ajustes específicos para los botones de acción del modal de selección masiva */
#bulkSelectionModal .modal-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

#bulkSelectionModal .modal-button {
    min-width: 160px; /* Ancho consistente */
}

/* Estilo para el botón de días recurrentes */
.data-button.bulk {
    background: linear-gradient(90deg, #FFD6E0 0%, #C7CEEA 100%);
    color: #4e3c7e;
}

.data-button.bulk:hover {
    background: linear-gradient(90deg, #E0BBE4 0%, #FFD6E0 100%);
    color: #4e3c7e;
    transform: translateY(-2px);
}
