/* Fullscreen loader container */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e, #333);
    display: flex;
    align-content: center;
    align-items:center;
    justify-content: center;
    z-index: 9999;
}

/* Loader content (centered) */
.loader-content {
    text-align: center;
    color: white;
    font-family: CenturyGothicBold;
    font-size: 20px;
}

.loader-header {
    background-color: rgb(62, 118, 152);
    width: 100%;
    height: 35px;
}

#loader-icon {
    border: 5px solid rgb(190, 232, 241);
    padding: 5px;
    border-radius: 5px;
}

#loader-minitext {
    text-align: left;
    position:absolute;
    bottom: 0px;
    left:0px;
    padding: 5px;
    line-height: 12px;
}

/* Spinner */
#spinner {
    position: absolute;
    border: 8px solid rgb(62, 118, 152, 0.3);
    border-top: 8px solid rgb(190, 232, 241);
    border-radius: 50%;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    height: 60px;
    width: 60px;
    margin-left: auto;
    margin-right: auto;
    animation: spin 1s linear infinite;
}

#spinner-container {
    position: absolute;
    top:0;
    left:0;
    height: 50svh;
    width: 100%;
    background-color:rgb(0, 0, 0, 0.3);
}

/* Progress bar container */
.progress-container {
    width: 80%;
    max-width: 600px;
    height: 15px;
    background-color: rgb(62, 118, 152);
    border: rgb(190, 232, 241);
    border-radius: 5px;
    overflow: hidden;
    margin: auto;
}

/* Actual progress bar */
.progress-bar {
    height: 100%;
    width: 0%;
    background-color: rgb(190, 232, 241);
    transition: width 0.3s ease;
    border-radius: 5px;
}

/* Keyframes for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}