/* Modern Modal Popup Styles */

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px);
}

.modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #8B1E1E 0%, #691515 100%);
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 25px;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 30px 25px;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 20px 25px;
    background-color: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

/* Alert Modal Styles */
.alert-modal-danger .modal-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.alert-modal-danger .icon-wrapper {
    color: #dc3545;
}

.alert-modal-success .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.alert-modal-success .icon-wrapper {
    color: #28a745;
}

.alert-modal-warning .modal-header {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.alert-modal-warning .icon-wrapper {
    color: #ffc107;
}

.alert-modal-info .modal-header {
    background: linear-gradient(135deg, #17a2b8 0%, #0c5460 100%);
}

.alert-modal-info .icon-wrapper {
    color: #17a2b8;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 32px;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-modal-primary {
    background-color: #8B1E1E;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal-primary:hover {
    background-color: #691515;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 30, 30, 0.4);
    color: white;
}

.btn-modal-primary:active {
    transform: translateY(0);
}

.btn-modal-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    color: white;
}

.modal-body strong {
    color: #8B1E1E;
    display: block;
    margin-bottom: 10px;
}

/* Error Message List */
.error-list {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.error-list ul {
    margin: 0;
    padding-left: 20px;
}

.error-list li {
    margin-bottom: 8px;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 576px) {
    .modal-content {
        margin: 15px;
        border-radius: 15px;
    }

    .modal-header {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

    .btn-modal-primary, .btn-modal-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}
