/* Modales Admin - Input y No Input */

/* Overlay del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'TT Interfaces', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del modal */
.modal-container {
    background: #ffffff;
    border: 2px solid #333;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Header del modal */
.modal-header {
    background: #242326;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 22px 22px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-title svg {
    margin-top: 15px;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Contenido del modal */
.modal-body {
    padding: 32px 24px;
}

.modal-message {
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

/* Input para respuesta */
.modal-input-container {
    margin-bottom: 24px;
}

.modal-input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    box-shadow: inset 0 0 0 1px #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.modal-input::placeholder {
    color: #bbb;
}

.modal-input:focus {
    border-color: #333;
    outline: none;
    box-shadow: none;
}

/* Botones del modal */
.modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 0px;
    border: 2px solid #242326;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 82px;
    font-family: inherit;
}

.modal-btn-primary {
    background: #242326;
    color: #ffffff;
    border-color: #242326;
}

.modal-btn-primary:hover {
    background: #747374;
    border-color: #747374;
}

.modal-btn-secondary {
    background: #ffffff;
    color: #242326;
    border-color: #242326;
}

.modal-btn-secondary:hover {
    background: #f5f5f5;
}

/* Estados del modal */
.modal-loading {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.modal-error {
    color: #dc2626;
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 16px 20px;
        border-radius: 14px 14px 0 0;
    }
    
    .modal-body {
        padding: 24px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-container {
        border-radius: 12px;
    }
    
    .modal-header {
        border-radius: 10px 10px 0 0;
    }
}

/* Animaciones */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}