/* ===============================
   ESTRUCTURA GENERAL
================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fffaf5;
}

#calendarContainer {
    height: calc(100vh - 80px); /* Ajusta según altura de tu navbar + footer */
    padding: 10px;
    box-sizing: border-box;
}

#calendar {
    height: 100% !important;
}

/* ===============================
   FULLCALENDAR LIST VIEW
================================ */
.fc-list-day {
    background: #ffe3c4 !important;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 6px !important;
    font-size: 16px;
    font-weight: bold;
    color: #5a3e23;
}

.fc-list-day-text {
    font-size: 18px;
    font-weight: bold;
}

.fc-list-event {
    background: #fff;
    border-left: 5px solid #ffa45b;
    border-radius: 8px;
    margin: 8px 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===============================
   BOTÓN ELIMINAR EVENTO
================================ */
.delete-btn {
    border: none;
    background: #ff6b6b;
    color: white;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    padding: 4px 7px;
    margin-left: 10px;
    transition: 0.2s ease;
}

.delete-btn:hover {
    background: #e94040;
}

/* ===============================
   MODAL
================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.modal.open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: white;
    margin: 80px auto;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    z-index: 2;
}

/* HEADER DEL MODAL */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

#modalClose {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* BODY MODAL */
.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    padding: 8px;
    background: #f7f1e8;
    margin-bottom: 5px;
    border-radius: 8px;
}

#modalEmpty {
    font-size: 14px;
    text-align: center;
    color: #777;
    margin-top: 10px;
}

/* FOOTER MODAL */
.modal-footer {
    text-align: center;
    margin-top: 10px;
}

#createEventBtn {
    background: #ffa45b;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

#createEventBtn:hover {
    background: #e78b47;
}

/* ===============================
   AJUSTES EXTRA PARA QUE TODO QUEDE BIEN
================================ */
.fc-scroller {
    overflow: auto !important;
}

.fc-theme-standard .fc-list-table td {
    padding: 10px !important;
}

.fc-list-table {
    border: none !important;
}

.fc-list-empty {
    background: #fff3e4 !important;
    padding: 20px !important;
    border-radius: 10px;
}

/* ===============================
   FOOTER FIJO
================================ */
#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #f3e8dd;
    padding: 10px;
    text-align: center;
    border-top: 2px solid #e4d6c8;
}
