/* -------------------- Body -------------------- */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

body.theme-dark {
    background-color: #111;
}

/* -------------------- Preloader -------------------- */
.preloader {
    position: fixed;
    inset: 0; /* top:0; bottom:0; left:0; right:0 */
    display: grid;
    place-items: center;
    background-color: #fff;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.theme-dark .preloader {
    background-color: #111;
    color: #FFF;
}

/* Preloader container */
.preloader-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* GIF styling */
.preloader-gif {
    width: 150px;
    height: auto;
    animation: bounce 3s ease-in-out infinite;
}

/* Simple bounce for GIF */
@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Loader placeholders (optional shimmer effect) */
.loader-placeholder {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.placeholder {
    height: 10px;
    width: 50px;
    background-color: #F5F5F5;
    border-radius: 0.3rem;
}

.theme-dark .placeholder {
    background-color: #555;
}

.placeholder-wide {
    width: 200px;
}

/* -------------------- Header -------------------- */
.header {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 100%;
    z-index: 1000;
}

.theme-dark .header {
    background-color: #222;
    color: #FFF;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.28rem 1.6rem;
    background-color: #fff;
    box-shadow: 0px 6px 12px -3px rgba(4, 97, 165, 0.1);
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
}

.theme-dark .header-container {
    background-color: #222;
    color: #FFF;
}

.header .logo {
    max-height: 30px;
}

/* -------------------- Flex Utilities -------------------- */
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-column { flex-direction: column; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1199px) {
    .header { display: none; }
}
