/* =========================================================
   Site-wide SweetAlert theme (SweetAlert 1 + SweetAlert 2)
   Custom modal classes keep their own page-specific styling.
   ========================================================= */

.swal-overlay {
    background-color: rgba(15, 32, 54, .5) !important;
}

/* SweetAlert 1 defaults */
.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) {
    width: 440px;
    max-width: calc(100% - 32px);
    padding-top: 2px;
    overflow: hidden;
    border: 1px solid #e3ebf4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 32, 54, .22);
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon {
    margin: 26px auto 16px;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-title {
    margin: 0;
    padding: 0 26px;
    color: #0f2036;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-title:not(:last-child) {
    margin-bottom: 12px;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-text {
    display: block;
    max-width: none;
    padding: 0 26px;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-footer {
    margin-top: 24px;
    padding: 16px 24px;
    border-top: 1px solid #e8eff6;
    background: #f8fbff;
    text-align: center;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button-container {
    margin: 0;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button:not(.btn) {
    min-height: 42px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--confirm:not(.btn) {
    border: 1px solid #1565c0;
    background: #1565c0;
    color: #fff;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--confirm:not(.btn):hover {
    border-color: #0d4f9e;
    background: #0d4f9e;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--cancel:not(.btn) {
    border: 1px solid #dbe6f1;
    background: #fff;
    color: #546e7a;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--cancel:not(.btn):hover {
    background: #edf2f7;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--danger:not(.btn) {
    border: 1px solid #bb4352;
    background: #bb4352;
    color: #fff;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button--danger:not(.btn):hover {
    border-color: #9f2f3e;
    background: #9f2f3e;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-button:focus {
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .18);
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--success {
    border-color: #4ade80;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--success__ring {
    border-color: rgba(22, 163, 74, .3);
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--success__line {
    background: #16a34a;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--error {
    border-color: #edb5b5;
    background: #fff5f5;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--error__line {
    background: #c04c4c;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--warning__body,
.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--warning__dot {
    background: #b77a17;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--info {
    border-color: #90caf9;
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--info__ring {
    border-color: rgba(21, 101, 192, .25);
}

.swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-icon--info__line {
    background: #1565c0;
}

@media (max-width: 479.98px) {
    .swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-title {
        padding: 0 18px;
        font-size: 20px;
    }

    .swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-text {
        padding: 0 20px;
    }

    .swal-modal:not([class*="epita-"]):not(.course-grade-minimum-alert) .swal-footer {
        padding: 16px 18px;
    }
}

/* SweetAlert 2 defaults */
body .swal2-container.swal2-backdrop-show {
    background: rgba(15, 32, 54, .5) !important;
}

body .swal2-container .swal2-popup:not(.att-swal) {
    width: 440px;
    max-width: calc(100% - 32px);
    padding: 24px 24px 20px;
    border: 1px solid #e3ebf4;
    border-radius: 18px;
    background: #fff;
    color: #546e7a;
    box-shadow: 0 24px 60px rgba(15, 32, 54, .22);
    font-family: 'Inter', 'Roboto', 'Segoe UI', Arial, sans-serif;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-title {
    padding: 0;
    color: #0f2036;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-html-container,
body .swal2-container .swal2-popup:not(.att-swal) .swal2-content {
    margin: 12px 0 0;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.65;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-actions {
    width: 100%;
    margin-top: 22px;
    gap: 10px;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-actions .swal2-confirm {
    margin: 0;
    padding: 10px 24px !important;
    border: 1px solid #1565c0 !important;
    border-radius: 10px !important;
    background: #1565c0 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-actions .swal2-confirm:hover {
    border-color: #0d4f9e !important;
    background: #0d4f9e !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-actions .swal2-cancel {
    margin: 0;
    padding: 10px 24px !important;
    border: 1px solid #dbe6f1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #546e7a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-actions .swal2-deny {
    margin: 0;
    padding: 10px 24px !important;
    border: 1px solid #bb4352 !important;
    border-radius: 10px !important;
    background: #bb4352 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-icon.swal2-success {
    border-color: #4ade80 !important;
    color: #16a34a !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-success-ring {
    border-color: rgba(22, 163, 74, .3) !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-success-line-tip,
body .swal2-container .swal2-popup:not(.att-swal) .swal2-success-line-long {
    background-color: #16a34a !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-icon.swal2-error {
    border-color: #f3b4b4 !important;
    color: #dc2626 !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-x-mark-line-left,
body .swal2-container .swal2-popup:not(.att-swal) .swal2-x-mark-line-right {
    background-color: #dc2626 !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-icon.swal2-warning {
    border-color: #fcd34d !important;
    color: #d97706 !important;
}

body .swal2-container .swal2-popup:not(.att-swal) .swal2-icon.swal2-info {
    border-color: #90caf9 !important;
    color: #1e88e5 !important;
}
body .swal2-container.epita-delete-confirm.swal2-backdrop-show {
    background: transparent !important;
}

