﻿/* Custom SweetAlert Styling */
.sweetalert-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
}

.sweetalert-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 400px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.sweetalert-container:hover .sweetalert-box {
    transform: scale(1.05);
}

.sweetalert-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    margin: 10px auto;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

/* Different Alert Colors */
.success {
    background-color: #28a745;
}

.error {
    background-color: #dc3545;
}

.warning {
    background-color: #ffc107;
    color: #333;
}

.info {
    background-color: #007bff;
}

/* Title */
.sweetalert-title {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

/* Message */
.sweetalert-message {
    font-size: 16px;
    margin-top: 5px;
    color: #555;
}

/* OK Button */
.sweetalert-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: all 0.3s ease-in-out;
}

    .sweetalert-btn:hover {
        background: #0056b3;
        box-shadow: 0px 4px 10px rgba(0, 91, 255, 0.3);
    }

/* Close Button */
.sweetalert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s ease-in-out;
}

    .sweetalert-close:hover {
        color: #000;
    }

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
