/* ============================================
   LOADER STYLES - Novix Website
   ============================================ */

#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2.5px solid var(--border-color);
    border-top: 2.5px solid var(--accent-light);
    border-right: 2.5px solid var(--info);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2.5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--info));
    z-index: 9998;
    transition: width 0.1s;
    box-shadow: 0 0 20px var(--accent-glow);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-3px) scale(1.05);
}

.back-to-top:active {
    transform: scale(0.92);
}

.back-to-top i {
    background: linear-gradient(135deg, var(--accent-light), var(--info));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE - LOADER
   ============================================ */

@media (max-width: 360px) {
    .loader-spinner { width: 36px; height: 36px; border-width: 2px; }
    .back-to-top { width: 38px; height: 38px; bottom: 20px; right: 20px; font-size: 0.85rem; }
}

@media (min-width: 361px) and (max-width: 480px) {
    .loader-spinner { width: 40px; height: 40px; border-width: 2.5px; }
    .back-to-top { width: 42px; height: 42px; bottom: 20px; right: 20px; font-size: 0.9rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .loader-spinner { width: 44px; height: 44px; }
    .back-to-top { bottom: 25px; right: 25px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .back-to-top { bottom: 30px; right: 30px; }
}

@media (min-width: 1025px) {
    .back-to-top { width: 48px; height: 48px; bottom: 35px; right: 35px; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    #loader { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
    .back-to-top { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
} 
