/* External CSS file to replace inline styles for CSP compliance */

/* Critical CSS moved from HTML inline styles */
body {
    font-family: 'JIMS', 'Inter', Arial, sans-serif;
    background: #fff;
    color: #232323;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

/* FUSE Splash Screen CSS */
body #fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #111827;
    color: #F9FAFB;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body #fuse-splash-screen img {
    width: 150px;
    max-width: 150px;
}

#spinner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    width: 56px;
}

#spinner > div {
    width: 12px;
    height: 12px;
    background-color: #1E96F7;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
    animation: fuse-bouncedelay 1s infinite ease-in-out both;
}

#spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

#spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes fuse-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes fuse-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}

/* Toolbar background styles */
.toolbar-background {
    background-color: var(--toolbar-bg-color, #ffffff);
}

/* User menu styles */
.user-menu-container {
    overflow: hidden;
}

.user-menu-button {
    margin-right: -8px;
    min-height: 56px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name-container {
    min-width: auto;
    max-width: 300px;
}

.user-name-text {
    font-size: 13px;
    color: #333;
    min-width: auto;
    max-width: 300px;
    overflow: hidden;
    text-align: left;
    display: flex;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.user-role-text {
    color: #333;
    font-size: 12px !important;
    min-width: auto;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    display: flex;
}

.citizen-name-link {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.citizen-name-span {
    color: #1f1f1f;
    font-size: 13px;
    text-transform: capitalize;
}

/* Menu item styles */
.menu-item-padding {
    padding: 12px 16px;
}

/* Logo and branding styles */
.apsfl-logo {
    object-fit: contain;
    max-width: 100%;
}

.logo-badge {
    width: 150px;
}

.crda-text {
    color: #ffffff;
}

/* Navigation styles */
.nav-language-en {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.nav-language-tel {
    font-size: 20px;
    font-weight: 400;
    color: #fff;
}

.navigation-container {
    padding-top: 40px;
}

/* Navbar toggle button */
.navbar-toggle-icon {
    fill: #000000;
}

/* Accessibility toolbar */
.accessibility-toolbar {
    margin-bottom: 6px;
    z-index: 10;
}

/* Footer styles */
.footer-background {
    background-color: var(--footer-bg-color, #ffffff);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .user-name-container,
    .user-name-text {
        max-width: 200px;
    }
    
    .user-role-text {
        max-width: 150px;
    }
}

/* CSS Custom Properties for dynamic theming */
:root {
    --toolbar-bg-color: #ffffff;
    --footer-bg-color: #ffffff;
}
