/* ==================== LOADER ==================== */
.bg_loader {
    width: 100%;
    height: 100vh;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    top: 0;
    left: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bg_loader.active {
    display: flex;
    opacity: 1;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.loader-dots {
    display: flex;
    gap: 10px;
}

.loader-dots span {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #0066A1 0%, #00D4FF 100%);
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 102, 161, 0.4);
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #4B5563;
    margin: 0;
    letter-spacing: 0.3px;
}

.loader-icon {
    font-size: 64px;
    animation: iconPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loader-icon i {
    background: linear-gradient(135deg, #0066A1 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-icon.icon-success i {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-icon.icon-danger i {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-icon.icon-warning i {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes iconPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== TOOLTIP ==================== */
.tooltip-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(4px);
}

.tooltip-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: #FFFFFF;
    padding: 10px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 280px;
    word-wrap: break-word;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-content::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1F2937;
    transform: rotate(45deg);
    bottom: -4px;
    left: 50%;
    margin-left: -4px;
}

.tooltip-top::before {
    bottom: auto;
    top: -4px;
}

.tooltip-content.tooltip-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.tooltip-content.tooltip-success::before {
    background: #059669;
}

.tooltip-content.tooltip-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.tooltip-content.tooltip-danger::before {
    background: #EF4444;
}

.tooltip-content.tooltip-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.tooltip-content.tooltip-warning::before {
    background: #F59E0B;
}

.tooltip-content.tooltip-info {
    background: linear-gradient(135deg, #0066A1 0%, #00D4FF 100%);
    border-color: rgba(0, 212, 255, 0.3);
}

.tooltip-content.tooltip-info::before {
    background: #0066A1;
}
