/* UNIDA Gateway Tanzania Premium Product Theme */

html, body {
    min-height: 100%;
}

body {
    position: relative;
}

/* Soft waving Tanzania flag identity across the product */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -9999;
    pointer-events: none;
    opacity: 0.095;
    background:
        linear-gradient(145deg,
            #1eb53a 0 38%,
            #fcd116 38% 42%,
            #000000 42% 58%,
            #fcd116 58% 62%,
            #00a3dd 62% 100%);
    background-size: 230% 230%;
    animation: unidaTzFlagWave 12s ease-in-out infinite;
}

/* Premium white wash so dashboard remains readable */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -9998;
    pointer-events: none;
    background:
        radial-gradient(circle at 85% 8%, rgba(20,181,176,.18), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,.945), rgba(239,249,255,.925), rgba(247,255,251,.94));
}

@keyframes unidaTzFlagWave {
    0% {
        background-position: 0% 45%;
        transform: scale(1) skewY(0deg);
        filter: saturate(1);
    }
    25% {
        background-position: 45% 52%;
        transform: scale(1.018) skewY(-0.55deg);
        filter: saturate(1.06);
    }
    50% {
        background-position: 100% 55%;
        transform: scale(1.012) skewY(0.55deg);
        filter: saturate(1.04);
    }
    75% {
        background-position: 45% 50%;
        transform: scale(1.018) skewY(-0.45deg);
        filter: saturate(1.06);
    }
    100% {
        background-position: 0% 45%;
        transform: scale(1) skewY(0deg);
        filter: saturate(1);
    }
}

/* Keep all major product surfaces readable */
main,
section,
.card,
.panel,
.dashboard-card,
.stat-card,
.content,
.content-wrapper,
.page-content,
.table-wrapper,
.modal-content,
.dropdown-menu,
.form-card,
.auth-card {
    position: relative;
    z-index: 1;
}

/* Premium glass feel for cards without destroying original UI */
.card,
.panel,
.dashboard-card,
.stat-card,
.form-card,
.auth-card {
    background-color: rgba(255,255,255,.92);
    border-color: rgba(215,235,245,.95);
    backdrop-filter: blur(2px);
}

/* Keep navigation above background */
header,
nav,
.navbar,
.sidebar,
.side,
.topbar,
footer {
    position: relative;
    z-index: 5;
}

/* Simple professional logo size control */
.demo-brand-logo,
.brand-logo,
.logo img,
.navbar-brand img {
    max-width: 46px !important;
    max-height: 46px !important;
    object-fit: contain;
}

/* Unified UNIDA Gateway icon across landing, auth, dashboards and modules */
.demo-brand-logo,
.brand-logo,
.logo img,
.navbar-brand img,
.auth-logo img,
.login-logo img,
.register-logo img,
img[src*="favicon"],
img[src*="logo"],
img[src*="unida"] {
    max-width: 46px !important;
    max-height: 46px !important;
    width: 46px !important;
    height: 46px !important;
    object-fit: contain !important;
    border-radius: 14px;
}

/* Auth pages should not show oversized or different icons */
.auth-logo,
.login-logo,
.register-logo,
.logo,
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Final auth logo override */
.auth-logo img,
.login-logo img,
.register-logo img,
.brand img,
.nav img,
header img,
.demo-brand-logo {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain !important;
    border-radius: 12px !important;
}

@import url('/demo-assets/unida-flag-consistent.css');
