/* Calendar Modal Styles */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.calendar-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f0e6d2;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    font-family: 'Courier New', monospace;
}

/* Desktop Dropdown Styles */
.calendar-dropdown {
    display: none;
    position: absolute;
    z-index: 2000;
    background-color: #f0e6d2;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #333;
    box-shadow: 3px 3px 0 #333;
    font-family: 'Courier New', monospace;
    width: 350px;
    top: calc(100% + 5px);
    left: 0;
}

.calendar-modal h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-dropdown h3 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Retro Minimalista Calendar Styles */
.calendario-container {
    background-color: #fff;
    border: 1px solid #333;
    box-shadow: 3px 3px 0 #333;
    padding: 15px;
    margin-bottom: 20px;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

.calendario-title {
    font-weight: bold;
    color: #333;
}

.nav-btn {
    background: none;
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    padding: 2px 8px;
}

.nav-btn:hover {
    background-color: #333;
    color: #fff;
}

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 12px;
}

.dias-mes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.dia {
    text-align: center;
    padding: 6px 0;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 12px;
}

.dia:hover {
    border: 1px solid #333;
}

.dia.inactivo {
    color: #aaa;
    cursor: default;
}

.dia.inactivo:hover {
    border: 1px solid transparent;
}

.dia.pasado {
    color: #ccc;
    cursor: default;
}

.dia.pasado:hover {
    border: 1px solid transparent;
}

.dia.seleccionado {
    background-color: #333;
    color: #fff;
}

.dia.rango {
    background-color: #ddd;
}

.botones-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

.btn-accion {
    background: none;
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    padding: 4px 8px;
    flex: 1;
    font-size: 11px;
}

.btn-accion:hover {
    background-color: #333;
    color: #fff;
}

.texto-seleccion {
    margin-top: 15px;
    padding: 8px;
    border: 1px solid #333;
    text-align: center;
    font-size: 11px;
    min-height: 15px;
    background-color: #fff;
}

.calendar-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.calendar-btn {
    background: none;
    border: 1px solid #333;
    color: #333;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    padding: 8px 15px;
    text-transform: uppercase;
}

.calendar-btn:hover {
    background-color: #333;
    color: #fff;
}

.calendar-btn.primary {
    background-color: #333;
    color: #fff;
}

.calendar-btn.primary:hover {
    background-color: #555;
}

.calendar-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

/* Dropdown specific styles */
.calendar-dropdown .calendar-btn {
    padding: 6px 12px;
    font-size: 11px;
}

.calendar-dropdown .botones-container {
    margin-top: 10px;
}

.calendar-dropdown .texto-seleccion {
    margin-top: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .calendar-dropdown {
        display: none !important;
    }
}

/* Position dropdown relative to from-today-container */
.from-today-container {
    position: relative;
}

.from-today-container .calendar-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
}
