/* ============================================================
   Appointments Calendar — estilos específicos de la página
   ============================================================ */

.appointments-calendar-section {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px;
}

.calendarTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-weight: bold;
    color: #fafcd6;
}

.calendar-bottom {
    padding: 15px 20px;
    text-align: center;
}

.calendar-exit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0,100,80,.6);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 6px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    transition: all .2s;
}

.calendar-exit:hover {
    background: rgba(0,150,120,.8);
    border-color: #fff;
}

/* --- Paneles superiores --- */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 5px;
}

.article-card {
    background: #ecebeb;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.article-card label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    color: #333;
}

.article-card select,
.article-card input,
.article-card textarea {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 5px;
}

.article-card button {
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.article-card button:hover {
    background: #0056b3;
}

.clienteTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
    font-weight: bold;
    color: #128f18;
}

.form_row {
    margin: 2px 0;
}

/* --- Calendario FullCalendar --- */

#calendar {
    background: rgb(107, 110, 167);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Modales --- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.slot-btn {
    display: inline-block;
    margin: 5px;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.slot-btn:hover {
    background: #218838;
}

.slot-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#slotsModalBody {
    max-height: 400px;
    overflow-y: auto;
}

/* --- Panel "Mis Citas" --- */

#mis-citas-lista {
    max-height: 210px;
    overflow-y: auto;
    padding-right: 4px;
}

#mis-citas-lista::-webkit-scrollbar { width: 5px; }
#mis-citas-lista::-webkit-scrollbar-track { background: #f0e8f8; border-radius: 4px; }
#mis-citas-lista::-webkit-scrollbar-thumb { background: #c48ed4; border-radius: 4px; }

.cita-item {
    border-left: 4px solid #9c3b8f;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #f7f0fb;
    border-radius: 4px;
    font-size: 13px;
}

.cita-item .cita-fecha      { font-weight: bold; color: #333; }
.cita-item .cita-profesional { color: #555; margin: 2px 0; }
.cita-item .cita-motivo     { color: #777; font-style: italic; }

.cita-estado {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 4px;
}

.estado-1 { background: #d4edda; color: #155724; }  /* Agendada   */
.estado-2 { background: #cce5ff; color: #004085; }  /* Atendido   */
.estado-3 { background: #fff3cd; color: #856404; }  /* Reagendada */
.estado-4 { background: #f8d7da; color: #721c24; }  /* Suspendido */
.estado-7 { background: #e2e3e5; color: #383d41; }  /* Cancelado  */

.cita-nueva { animation: highlight-new 2s ease-out; }

@keyframes highlight-new {
    0%   { background: #c8f7c5; border-left-color: #28a745; }
    100% { background: #f7f0fb; border-left-color: #9c3b8f; }
}
