
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}


.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.preloader-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.preloader-dialog {
    position: relative;
    background: #0f172a;
    color: #e5e7eb;
    padding: 24px 24px 20px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 360px;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.preloader-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 18px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.preloader-close:hover {
    background: rgba(148, 163, 184, 0.15);
    color: #f9fafb;
    transform: translateY(-1px);
}

.preloader-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}


.preloader-spinner {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.35);
    border-top-color: #38bdf8;
    animation: spin 0.75s linear infinite;
    box-sizing: border-box;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader-title {
    font-size: 15px;
    font-weight: 600;
}

.preloader-text {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 16px;
}

.preloader-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.preloader-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.25);
}

.preloader-btn:hover {
    background: #0ea5e9;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.4);
}

.preloader-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
}

