/* Custom SweetAlert2 popup styling for a professional look */
.custom-swal-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9fafb !important;
}

.custom-swal-title {
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem;
}

.custom-swal-input {
    height: 44px !important;
    font-size: 1rem !important;
    border: 1.5px solid #ced4da !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-swal-input:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4) !important;
}

.custom-swal-confirm-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-size: 1.1rem !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5) !important;
    transition: background-color 0.3s ease;
}

.custom-swal-confirm-btn:hover {
    background-color: #2563eb !important;
}

.custom-swal-cancel-btn {
    background-color: #6b7280 !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-size: 1.1rem !important;
    border: none !important;
    margin-left: 12px !important;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.5) !important;
    transition: background-color 0.3s ease;
}

.custom-swal-cancel-btn:hover {
    background-color: #4b5563 !important;
}

/* Custom styling for success alert */
.custom-success-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: #d4edda !important; */
    color: #155724 !important;
    padding: 20px 24px !important;
}

.custom-success-title {
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    color: #155724 !important;
    margin-bottom: 0.5rem;
}

.custom-success-msg {
    font-weight: 500 !important;
    font-size: 1.5rem !important;
    color: #155724 !important;
    margin-bottom: 0.5rem;
}

.custom-success-icon {
    font-size: 48px !important;
    color: #28a745 !important;
    margin-bottom: 12px;
}

/* Custom styling for error alert */
.custom-error-popup {
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: #f8d7da !important; */
    color: #721c24 !important;
    padding: 20px 24px !important;
    text-align: center;
}

.custom-error-title {
    font-weight: 700 !important;
    font-size: 1.8rem !important;
    color: #721c24 !important;
    margin-bottom: 0.5rem;
}

.custom-error-msg {
    font-weight: 700 !important;
    font-size: 1.2rem !important;
    color: #dc3545 !important;
    margin-bottom: 0.5rem;
}

.custom-error-icon {
    font-size: 48px !important;
    color: #dc3545 !important;
    margin-bottom: 12px;
}

/* Custom styling for Try Again popup buttons */
.try-again-confirm-btn {
    background-color: #2563eb !important; /* Slightly darker blue */
    color: white !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 14px 30px !important;
    font-size: 1.15rem !important;
    border: none !important;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.6) !important;
    transition: background-color 0.3s ease;
}

.try-again-confirm-btn:hover {
    background-color: #1e40af !important;
}

.try-again-cancel-btn {
    background-color: #dc3545 !important; /* Bootstrap danger red */
    color: white !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 14px 30px !important;
    font-size: 1.15rem !important;
    border: none !important;
    margin-left: 14px !important;
    box-shadow: 0 5px 14px rgba(220, 53, 69, 0.6) !important;
    transition: background-color 0.3s ease;
}

.try-again-cancel-btn:hover {
    background-color: #9a2a31 !important;
}

.swal2-backdrop-show {
    backdrop-filter: blur(50px); /* This creates the "frosted glass" blur on the page behind the popup */
    background: rgba(15, 23, 42, 0.7) !important; /* This creates the dark semi-transparent tint */
}
