﻿
/* ===============================
   ALERT & LOADING OVERLAY
================================= */

.sa_overlay,
.sa_loading_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.6);
    z-index: 999999;
}

/* ===============================
   ALERT BOX
================================= */

.sa_popup {
    width: 400px;
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: sa_popup_animation .3s ease;
}

/* ===============================
   LOADING BOX
================================= */

.sa_loading_box {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    animation: sa_popup_animation .3s ease;
}

/* ===============================
   ANIMATION
================================= */

@keyframes sa_popup_animation {

    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===============================
   ALERT ICON
================================= */

.sa_icon {
    width: 80px;
    height: 80px;
    margin: auto;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}

.sa_success {
    background: #28a745;
}

.sa_error {
    background: #dc3545;
}

.sa_warning {
    background: #ffc107;
    color: #000;
}

.sa_info {
    background: #0dcaf0;
}

/* ===============================
   TEXT
================================= */

.sa_title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #212529 !important;
    margin: 15px 0 !important;
    line-height: 1.4 !important;
}

.sa_message {
    margin: 15px 0 25px;
    color: #666;
    line-height: 1.5;
}

/* ===============================
   BUTTON
================================= */

.sa_btn {
    border: none;
    background: #0d6efd;
    color: #fff;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

    .sa_btn:hover {
        background: #0b5ed7;
    }

/* ===============================
   LOADER
================================= */

.sa_loader {
    width: 60px;
    height: 60px;
    margin: auto;
    border: 6px solid #e9ecef;
    border-top: 6px solid #0d6efd;
    border-radius: 50%;
    animation: sa_spin 1s linear infinite;
}

@keyframes sa_spin {
    100% {
        transform: rotate(360deg);
    }
}

.sa_loading_text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

/* Demo Buttons */

.demo_btn {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
}
