/* Custom Alert & Confirm Modal Styles */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
}

.custom-modal-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.custom-modal-overlay.show .custom-modal-container {
    transform: scale(1);
}

.custom-modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.custom-modal-icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: block;
}

.custom-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.custom-modal-body {
    padding: 25px 30px;
}

.custom-modal-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: center;
}

.custom-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-modal-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.custom-modal-btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.custom-modal-btn-cancel:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.custom-modal-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.custom-modal-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Type-specific styling */
.modal-success .custom-modal-icon {
    color: #28a745;
}

.modal-success .custom-modal-btn-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.modal-success .custom-modal-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.modal-error .custom-modal-icon {
    color: #dc3545;
}

.modal-error .custom-modal-btn-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.modal-error .custom-modal-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.modal-warning .custom-modal-icon {
    color: #ffc107;
}

.modal-warning .custom-modal-btn-confirm {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.modal-warning .custom-modal-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.modal-info .custom-modal-icon {
    color: #17a2b8;
}

.modal-info .custom-modal-btn-confirm {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.modal-info .custom-modal-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(23, 162, 184, 0.4);
}

.modal-confirm .custom-modal-icon {
    color: #6c757d;
}

.modal-confirm .custom-modal-btn-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.modal-confirm .custom-modal-btn-confirm:hover {
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* Animation for modal entrance */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-modal-overlay.show .custom-modal-container {
    animation: modalFadeIn 0.3s ease;
}
