/**
 * SweetAlert2 Cyber / Enterprise Dark Theme
 * 100% Offline Standalone Stylesheet
 */

/* Backdrop Container */
.swal2-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 5, 15, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.2s ease;
}

.swal2-backdrop-show {
    opacity: 1;
}

.swal2-backdrop-hide {
    opacity: 0;
}

/* Modal Box */
.swal2-popup.swal2-modal {
    position: relative;
    box-sizing: border-box;
    width: 480px;
    max-width: 95vw;
    padding: 28px 24px;
    background: rgba(9, 14, 33, 0.96);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
    color: #e2e8f0;
    font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    text-align: center;
    animation: swal2Show 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes swal2Show {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.swal2-popup.swal2-hide {
    animation: swal2Hide 0.2s ease forwards;
}

@keyframes swal2Hide {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0; }
}

/* Header & Title */
.swal2-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.swal2-title {
    margin: 12px 0 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Content */
.swal2-content {
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

.swal2-html-container {
    margin-bottom: 12px;
}

.swal2-html-container p {
    margin: 0 0 8px;
}

/* Validation Message */
.swal2-validation-message {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 42, 95, 0.15);
    border: 1px solid #ff2a5f;
    border-radius: 6px;
    color: #ff2a5f;
    font-size: 0.82rem;
}

/* Actions & Buttons */
.swal2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.swal2-actions .btn-cyber {
    min-width: 105px;
    padding: 9px 18px;
    font-size: 0.88rem;
}

.swal2-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s ease;
}

.swal2-close:hover {
    color: #00f0ff;
}

/* Animated Icons */
.swal2-icon {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: default;
    user-select: none;
    display: flex;
    align-items: center;
}

.swal2-icon.swal2-success {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.swal2-icon.swal2-success .swal2-success-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 64px;
    height: 64px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
}

.swal2-icon.swal2-success .swal2-success-line-tip {
    position: absolute;
    left: 14px;
    top: 34px;
    width: 15px;
    height: 4px;
    background-color: #00ff88;
    border-radius: 2px;
    transform: rotate(45deg);
}

.swal2-icon.swal2-success .swal2-success-line-long {
    position: absolute;
    right: 12px;
    top: 29px;
    width: 28px;
    height: 4px;
    background-color: #00ff88;
    border-radius: 2px;
    transform: rotate(-45deg);
}

.swal2-icon.swal2-error {
    border-color: #ff2a5f;
    color: #ff2a5f;
    box-shadow: 0 0 15px rgba(255, 42, 95, 0.3);
}

.swal2-icon.swal2-error .swal2-x-mark {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
    position: absolute;
    top: 15px;
    left: 0;
    width: 34px;
    height: 4px;
    background-color: #ff2a5f;
    border-radius: 2px;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left {
    transform: rotate(45deg);
}

.swal2-icon.swal2-error .swal2-x-mark-line-right {
    transform: rotate(-45deg);
}

.swal2-icon.swal2-warning {
    border-color: #ffb703;
    color: #ffb703;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: monospace;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

.swal2-icon.swal2-info {
    border-color: #00f0ff;
    color: #00f0ff;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: serif;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.swal2-icon.swal2-question {
    border-color: #c77dff;
    color: #c77dff;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(199, 125, 255, 0.3);
}

/* Toast Notification Styles */
.swal2-toast-container {
    position: fixed;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.swal2-top-end {
    top: 24px;
    right: 24px;
    left: auto;
    bottom: auto;
    background: transparent;
}

.swal2-bottom-end {
    bottom: 24px;
    right: 24px;
    top: auto;
    left: auto;
    background: transparent;
}

.swal2-popup.swal2-toast {
    pointer-events: auto;
    width: 360px;
    padding: 12px 16px;
    background: rgba(9, 14, 33, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    position: relative;
    animation: swal2ToastSlide 0.25s ease forwards;
}

@keyframes swal2ToastSlide {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.swal2-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swal2-toast-icon .swal2-icon {
    width: 26px;
    height: 26px;
    margin: 0;
    border-width: 2px;
    font-size: 1rem;
}

.swal2-toast-icon .swal2-icon.swal2-success .swal2-success-line-tip {
    left: 5px;
    top: 14px;
    width: 7px;
    height: 2px;
}

.swal2-toast-icon .swal2-icon.swal2-success .swal2-success-line-long {
    right: 4px;
    top: 11px;
    width: 13px;
    height: 2px;
}

.swal2-toast-icon .swal2-icon.swal2-error .swal2-x-mark {
    width: 16px;
    height: 16px;
}

.swal2-toast-icon .swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-toast-icon .swal2-icon.swal2-error .swal2-x-mark-line-right {
    top: 7px;
    width: 16px;
    height: 2px;
}

.swal2-toast-text {
    flex: 1;
    text-align: left;
}

.swal2-toast .swal2-title {
    margin: 0;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

.swal2-toast .swal2-html-container {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

.swal2-timer-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.swal2-timer-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00f0ff, #00ff88);
}
