.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--loader-background, #0a0a0a);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
}

.loading-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(40, 40, 40, 0.3) 0%, rgba(0, 0, 0, 0.8) 70%);
    z-index: -1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.07;
    z-index: -1;
    background-color: var(--loader-background, #0a0a0a);
    animation: bg-animate 30s linear infinite;
}

@keyframes bg-animate {
    0% { background-position: 0 0; }
    100% { background-position: 500px 500px; }
}

.loading-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 600px;
    box-sizing: border-box;
}

.app-logo {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 40px;
}

.app-logo-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    box-sizing: border-box;
}

.app-logo-circle:nth-child(1) {
    border-top-color: var(--loader-primary, #ff3b3f);
    border-right-color: rgba(255, 59, 63, 0.3);
    animation: spin 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.app-logo-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-bottom-color: var(--loader-secondary, #07c8f9);
    border-left-color: rgba(7, 200, 249, 0.3);
    animation: spin 3s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite reverse;
}

.app-logo-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-left-color: var(--loader-accent, #e6c84f);
    border-bottom-color: rgba(230, 200, 79, 0.3);
    animation: spin 4s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, 
                rgba(255, 59, 63, 0.2) 0%, 
                rgba(7, 200, 249, 0.1) 50%, 
                transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

.app-logo-inner {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.app-logo-inner i {
    font-size: 36px;
    background: linear-gradient(45deg, 
                var(--loader-primary, #ff3b3f), 
                var(--loader-secondary, #07c8f9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.icon-container {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 22px;
    color: var(--loader-icon, rgba(255, 255, 255, 0.7));
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.2));
    opacity: 0;
    animation: floatAndFade 8s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 25%;
    right: 20%;
    animation-delay: 0.8s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1.6s;
}

.floating-icon:nth-child(4) {
    bottom: 25%;
    right: 15%;
    animation-delay: 2.4s;
}

.floating-icon:nth-child(5) {
    top: 45%;
    left: 10%;
    animation-delay: 3.2s;
}

.floating-icon:nth-child(6) {
    top: 45%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes floatAndFade {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.1);
        opacity: 1;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
}

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

.app-name {
    font-size: 38px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.app-name::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
                var(--loader-primary, #ff3b3f), 
                var(--loader-secondary, #07c8f9));
    border-radius: 3px;
}

.app-description {
    color: var(--loader-text, #b0b0b0);
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    max-width: 450px;
    line-height: 1.6;
}

.loading-bar-container {
    width: 240px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}

.loading-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, 
                var(--loader-primary, #ff3b3f), 
                var(--loader-secondary, #07c8f9));
    animation: loading 2.5s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(7, 200, 249, 0.5);
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5));
    filter: blur(5px);
    animation: loading 2.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

.loading-text {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 13px;
    color: var(--loader-text, #d0d0d0);
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    margin-top: 5px;
}

/* Additional service type indicators */
.service-indicators {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    opacity: 0.7;
}

.service-indicator {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--loader-text, #d0d0d0);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-indicator i {
    margin-right: 6px;
    font-size: 14px;
    color: var(--loader-secondary, #07c8f9);
}

/* Theme switcher styles */
.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    z-index: 10000;
}

.theme-switch {
    display: inline-block;
    height: 26px;
    position: relative;
    width: 50px;
    border-radius: 20px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(255, 255, 255, 0.2);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: rgba(0, 0, 0, 0.2);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #222;
}

.theme-switch-wrapper .theme-icon {
    margin: 0 10px;
    font-size: 18px;
    color: var(--loader-text, #d0d0d0);
} 