/* Loading Screen Band */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a1628; 
    z-index: 9999;
    transition: transform 1.2s ease-in-out;
}

#loading-screen.loaded {
    transform: translateY(-150%);
}

/* Loading Gif - Fixed Position */
#loading-gif-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    pointer-events: none;
}

.loading-indicator {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-indicator.fade-out {
    opacity: 0;
}

/* Prevent scrolling when loading screen is active */
html.loading,
body.loading {
    overflow: hidden !important;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Smooth Scrolling Wrappers */
html, body {
    overflow-x: hidden;
}

#smooth-wrapper {
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
}

#smooth-content {
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Error Container */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 2rem;
    text-align: center;
}

.error-container h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.error-container button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 1rem;
}

.error-container button:hover {
    background-color: #2980b9;
}

/* Navigation Active States */
.nav-item.active,
.dropdown-item.active {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Basic Layout */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

main {
    min-height: 80vh;
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-container,
    .error-container {
        min-height: 300px;
        padding: 1rem;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}
