/* Estilos para Modais Customizados */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    animation: fadeIn 0.2s ease-out;
}

.custom-modal-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 3px solid #d4af37;
    border-radius: 8px;
    padding: 0;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    font-family: 'Cinzel', serif;
    animation: modalSlideIn 0.3s ease-out;
}

.custom-modal-header {
    background: linear-gradient(to bottom, #461111, #2c0b0b);
    color: #f1c40f;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #d4af37;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-modal-icon {
    font-size: 20px;
    font-weight: bold;
}

.custom-modal-body {
    padding: 20px;
    color: #ecf0f1;
    font-size: 14px;
    line-height: 1.6;
}

.custom-modal-body p {
    margin: 0 0 15px 0;
}

.custom-modal-input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #5a4a35;
    color: white;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.custom-modal-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.custom-modal-buttons {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid #5a4a35;
}

.custom-modal-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.custom-modal-btn-confirm {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 1px solid #1e8449;
}

.custom-modal-btn-confirm:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.custom-modal-btn-cancel {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    border: 1px solid #5a6268;
}

.custom-modal-btn-cancel:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    box-shadow: 0 4px 12px rgba(127, 140, 141, 0.4);
    transform: translateY(-2px);
}

.custom-modal-btn-ok {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: 1px solid #1f5a8a;
}

.custom-modal-btn-ok:hover {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.custom-modal-btn:active {
    transform: scale(0.98);
}

/* Variações de cores para diferentes tipos */
.custom-modal-success .custom-modal-header {
    background: linear-gradient(135deg, #1e5631 0%, #2d7a3a 100%);
    border-color: #27ae60;
}

.custom-modal-success {
    border-color: #27ae60;
}

.custom-modal-error .custom-modal-header {
    background: linear-gradient(135deg, #5a1a1a 0%, #7a2a2a 100%);
    border-color: #c0392b;
}

.custom-modal-error {
    border-color: #c0392b;
}

.custom-modal-warning .custom-modal-header {
    background: linear-gradient(135deg, #5a3d1a 0%, #7a5a2a 100%);
    border-color: #f39c12;
}

.custom-modal-warning {
    border-color: #f39c12;
}

.custom-modal-info .custom-modal-header {
    background: linear-gradient(135deg, #1a3a5a 0%, #2a5a7a 100%);
    border-color: #3498db;
}

.custom-modal-info {
    border-color: #3498db;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
