/* Estilos para el calendario de citas */
.citas-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

#calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 600px;
}

/* Forzar visibilidad del calendario */
.fc {
    width: 100%;
    height: auto;
}

.fc-view-harness {
    height: 600px !important;
}

/* Mejorar la visualización de las celdas de tiempo */
.fc-timegrid-slot {
    height: 50px !important;
}

.fc-timegrid-slot-label {
    vertical-align: middle;
}

/* Hacer las celdas clickeables más visibles */
.fc-timegrid-col {
    cursor: pointer;
}

.fc-timegrid-col:hover {
    background-color: #f0f8ff;
}

/* Estilos para los eventos reservados */
.fc-event {
    cursor: not-allowed !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.fc-event:hover {
    background-color: #218838 !important;
}

/* Estilos para fines de semana (aunque están ocultos) */
.fc-day-sat,
.fc-day-sun {
    background-color: #f8f9fa !important;
}

/* Asegurar que los botones se vean bien */
.fc-button {
    padding: 8px 15px !important;
    background-color: #007bff !important;
    border: none !important;
    border-radius: 4px !important;
}

.fc-button:hover {
    background-color: #0056b3 !important;
}

.fc-button-active {
    background-color: #0056b3 !important;
}

/* Estilos del modal */
.cita-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cita-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cita-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.cita-close:hover,
.cita-close:focus {
    color: #000;
}

.cita-modal-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
}

.cita-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cita-btn:hover {
    background-color: #0056b3;
}

.cita-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mensajes */
.cita-message {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cita-message.success {
    background-color: #28a745;
    color: white;
}

.cita-message.error {
    background-color: #dc3545;
    color: white;
}

/* Estilos del dashboard admin */
.citas-admin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.citas-admin-wrapper h2 {
    margin-bottom: 20px;
    color: #333;
}

.citas-filters {
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    margin-right: 10px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #f8f9fa;
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Tabla de citas */
.citas-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cita-card {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.cita-card:last-child {
    border-bottom: none;
}

.cita-card:hover {
    background-color: #f8f9fa;
}

.cita-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cita-nombre {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cita-estado {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cita-estado.pendiente {
    background-color: #ffc107;
    color: #000;
}

.cita-estado.aprobada {
    background-color: #28a745;
    color: white;
}

.cita-estado.rechazada {
    background-color: #dc3545;
    color: white;
}

.cita-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.cita-info-item {
    font-size: 14px;
    color: #666;
}

.cita-info-item strong {
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.cita-interes {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cita-interes strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.cita-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.action-btn.approve {
    background-color: #28a745;
    color: white;
}

.action-btn.approve:hover {
    background-color: #218838;
}

.action-btn.reject {
    background-color: #ffc107;
    color: #000;
}

.action-btn.reject:hover {
    background-color: #e0a800;
}

.action-btn.delete {
    background-color: #dc3545;
    color: white;
}

.action-btn.delete:hover {
    background-color: #c82333;
}

.no-citas {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Estilos para FullCalendar */
.fc-day-sat,
.fc-day-sun {
    background-color: #f8f9fa !important;
}

.fc-event {
    cursor: not-allowed !important;
}

.fc-timegrid-slot {
    height: 50px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cita-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .cita-info {
        grid-template-columns: 1fr;
    }
    
    .cita-actions {
        flex-direction: column;
    }
    
    .filter-btn {
        margin-bottom: 10px;
    }
}