/**
 * Estilos para el modal de detalles de cita
 * Archivo: assets/css/modal-detalle-cita.css
 */

/* Modal Container */
.sac-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

/* Modal Overlay */
.sac-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Modal Content */
.sac-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: sacModalFadeIn 0.3s ease-out;
    z-index: 10000;
    overflow: hidden;
}

/* Modal Header */
.sac-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sac-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.sac-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sac-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Modal Body */
.sac-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 160px); /* Ajustar según altura de header y footer */
}

/* Modal Footer */
.sac-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Detalles de la cita */
.sac-detalle-cita {
    font-size: 15px;
}

.sac-detalle-grupo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sac-detalle-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sac-detalle-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-detalle-valor {
    color: #333;
    font-size: 16px;
}

.sac-detalle-descripcion {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Estados */
.sac-estado-pendiente {
    color: #f39c12;
    font-weight: 500;
}

.sac-estado-confirmada {
    color: #27ae60;
    font-weight: 500;
}

.sac-estado-cancelada {
    color: #e74c3c;
    font-weight: 500;
}

.sac-estado-completada {
    color: #95a5a6;
    font-weight: 500;
}

/* Botones */
.sac-btn {
    padding: 10px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sac-btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.sac-btn-secondary:hover:not(:disabled) {
    background-color: #d0d0d0;
}

.sac-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.sac-btn-danger:hover:not(:disabled) {
    background-color: #c0392b;
}

/* Cargando */
.sac-cargando {
    text-align: center;
    padding: 40px 20px;
}

.sac-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: sacSpin 1s linear infinite;
}

/* Alertas */
.sac-alerta {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sac-alerta-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Animaciones */
@keyframes sacModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes sacSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hacer los eventos del calendario clickeables */
.fc-event,
.evento-calendario {
    cursor: pointer !important;
    transition: opacity 0.2s ease;
}

.fc-event:hover,
.evento-calendario:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
    .sac-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        top: 5vh;
        transform: translateX(-50%);
    }
    
    .sac-modal-header {
        padding: 16px 20px;
    }
    
    .sac-modal-body {
        padding: 20px;
        max-height: calc(90vh - 140px);
    }
    
    .sac-detalle-item {
        gap: 2px;
    }
    
    .sac-detalle-label {
        font-size: 12px;
    }
    
    .sac-detalle-valor {
        font-size: 15px;
    }
}
/**
 * Estilos para el modal de detalles de cita
 * Archivo: assets/css/modal-detalle-cita.css
 */

/* Modal Container */
.sac-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

/* Modal Overlay */
.sac-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Modal Content */
.sac-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: sacModalFadeIn 0.3s ease-out;
    z-index: 10000;
    overflow: hidden;
}

/* Modal Header */
.sac-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sac-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.sac-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sac-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Modal Body */
.sac-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    max-height: calc(85vh - 160px); /* Ajustar según altura de header y footer */
}

/* Modal Footer */
.sac-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Detalles de la cita */
.sac-detalle-cita {
    font-size: 15px;
}

.sac-detalle-grupo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sac-detalle-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sac-detalle-label {
    font-weight: 600;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-detalle-valor {
    color: #333;
    font-size: 16px;
}

.sac-detalle-descripcion {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    margin-top: 4px;
}

/* Botones de enlaces en la descripción */
.sac-btn-enlace {
    display: inline-block;
    padding: 1px 6px;  /* Aumentado el ancho (padding horizontal) de 3px a 6px (+100% ≈ 10% más ancho visual) */
    margin: 0 1px;
    background-color: #007cba;
    color: white !important;
    text-decoration: none !important;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: none;
    cursor: pointer;
    vertical-align: baseline;
    line-height: 0.8; /* REDUCIDO: Altura reducida significativamente (era 1.1) */
    white-space: nowrap;
    opacity: 0.9;
    height: auto; /* Permitir que la altura se ajuste al line-height */
}

.sac-btn-vacante {
    background-color: #28a745 !important;
    color: white !important;
}

.sac-btn-vacante:hover {
    background-color: #218838 !important;
}

.sac-btn-candidato {
    background-color: #6c757d !important;
    color: white !important;
}

.sac-btn-candidato:hover {
    background-color: #5a6268 !important;
}

/* Enlaces simples en la descripción */
.sac-enlace-simple {
    color: #3498db;
    text-decoration: underline;
    font-size: 13px; /* Tamaño normal para enlaces simples */
}

.sac-enlace-simple:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Iconos SVG dentro de los botones */
.sac-btn-enlace svg {
    width: 7px !important;   /* Reducido para la nueva altura */
    height: 7px !important;  /* Reducido para la nueva altura */
    margin-right: 1px !important;
    vertical-align: 0px !important;
}

/* Estados */
.sac-estado-pendiente {
    color: #f39c12;
    font-weight: 500;
}

.sac-estado-confirmada {
    color: #27ae60;
    font-weight: 500;
}

.sac-estado-cancelada {
    color: #e74c3c;
    font-weight: 500;
}

.sac-estado-completada {
    color: #95a5a6;
    font-weight: 500;
}

/* Botones */
.sac-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sac-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sac-btn-secondary {
    background-color: #e0e0e0;
    color: #333;
}

.sac-btn-secondary:hover:not(:disabled) {
    background-color: #d0d0d0;
}

.sac-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.sac-btn-danger:hover:not(:disabled) {
    background-color: #c0392b;
}

/* Cargando */
.sac-cargando {
    text-align: center;
    padding: 40px 20px;
}

.sac-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: sacSpin 1s linear infinite;
}

/* Alertas */
.sac-alerta {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sac-alerta-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* Animaciones */
@keyframes sacModalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes sacSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hacer los eventos del calendario clickeables */
.fc-event,
.evento-calendario {
    cursor: pointer !important;
    transition: opacity 0.2s ease;
}

.fc-event:hover,
.evento-calendario:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 600px) {
    .sac-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        top: 5vh;
        transform: translateX(-50%);
    }
    
    .sac-modal-header {
        padding: 16px 20px;
    }
    
    .sac-modal-body {
        padding: 20px;
        max-height: calc(90vh - 140px);
    }
    
    .sac-detalle-item {
        gap: 2px;
    }
    
    .sac-detalle-label {
        font-size: 12px;
    }
    
    .sac-detalle-valor {
        font-size: 15px;
    }
}
.sac-btn-enlace:hover {
    background-color: #005a87;
    color: white !important;
    text-decoration: none !important;
    transform: none; /* Quitar el efecto de elevación */
    box-shadow: none; /* Quitar sombra */
    opacity: 1; /* Opacidad completa al hover */
}

.sac-btn-enlace:focus {
    outline: 1px solid #0073aa;
    outline-offset: 1px;
}
.sac-detalle-descripcion p {
    margin: 0 0 10px 0;
}
/* Responsive para pantallas pequeñas */
@media (max-width: 480px) {
    .sac-btn-enlace {
        display: inline-block;
        margin: 1px 2px;
        padding: 1px 7px; /* Mantener el ancho aumentado en móvil */
        font-size: 10px;
        line-height: 0.9; /* Altura ligeramente mayor en móvil para facilitar el toque */
    }
    
    .sac-btn-enlace svg {
        width: 8px !important;
        height: 8px !important;
    }
}
.sac-btn-enlace:active {
    transform: none;
}
.sac-detalle-descripcion > * {
    margin-bottom: 4px;
}

.sac-detalle-descripcion > *:last-child {
    margin-bottom: 0;
}

