﻿/* =========================================================
   CV.MobileUI — Global / Common Styles
   Applies to all Mobile UI views
   ========================================================= */

/* ---------- BRAND TOKEN BRIDGE (RUNTIME INJECTED) ---------- */
/* Root Variables */
:root {
    --primary-color: var(--brand-color-primary);
    --text-primary: var(--brand-color-text-primary);
    --text-muted: var(--brand-color-text-muted);
    --primary-bg-color: var(--brand-bg-color);
    /* Derived accents (brand-safe) */
    --accent-color: color-mix(in srgb, var(--brand-color-primary) 80%, black 20%);
    --accent-soft: color-mix(in srgb, var(--brand-color-primary) 15%, white 85%);
    /* Bootstrap bridge */
    --bs-primary: var(--brand-color-primary);
    --spinner-color-start: var(--brand-color-light); /*  #1f6fe0; accent blue */
    --spinner-color-end: #05367a; /* var(--brand-color-primary) #0a2540; deep navy */
}

/* Fonts */

@font-face {
    font-family: 'Aptos';
    src: url('/fonts/aptos/Aptos-Regular.woff2') format('woff2');
    font-weight: 400;
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos';
    src: url('/fonts/aptos/Aptos-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'AptosDisplay';
    src: url('/fonts/aptos-display/Aptos-Display-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AptosDisplay';
    src: url('/fonts/aptos-display/Aptos-Display-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AptosLight';
    src: url('/fonts/aptos/Aptos-Light.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'AptosLight';
    src: url('/fonts/aptos/Aptos-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: var(--brand-font-primary);
    font-size: 12px;
    font-weight: normal;
    color: var(--text-primary);
    background-color: var(--primary-bg-color) !important;
    /*letter-spacing: 0.1em;*/
    /*    #f8f9fa !important;*/
    margin: 0;
    padding: 0;
}

.txt-primary {
    color: var(--primary-color);
}

.custom-spinner.spinner-border {
    border-width: 0.45em;
    border-style: solid;
    border-radius: 50%;
    color: var(--brand-spinner-color);
    border-color: currentColor transparent transparent transparent;
    border-top-color: var(--spinner-color-start);
    border-right-color: var(--spinner-color-end);
    animation: spinner-border 0.75s linear infinite;
}

.loader-container {
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1050 !important;
}

.footer-bottom{
    position:absolute;
    bottom:0px;
}

.footer-font {
    font-size: 9px;
}

/* Set container max width limit*/
/*@media (min-width: 1200px) {
    .container,
    .container-fluid {
        max-width: 1140px;
    }
}*/
/* Full width to support tablet size */
@media (min-width: 576px) and (max-width: 991.98px) {
    .container, .container-md, .container-sm {
        max-width: 100%;
    }
}
/* Mobile UI CSS*/
body {
    min-height: 100dvh;
    /*    display: flex;*/
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

/* =====================================================
   Utility page centering (below logo)
   ===================================================== */

.utility-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.error-card {
    max-width: 560px;
    margin: 1rem;
    border: 0;
    box-shadow: 0 16px 24px #80808029; /*0 0.25rem 1rem rgba(0,0,0,0.5);*/
}

.splash-card {
    max-width: 560px;
    margin: 1rem;
    border: 0;
    background-color: transparent;
}

.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*    background: color-mix(in srgb, var(--primary-color) 15%, white 85%);
    color: var(--primary-color);*/
    background: rgba(255,193,7,0.15);
    color: #b58105;
    margin-bottom: 0.75rem;
}

.icon-wrap-success {
    /*    background: rgba(25,135,84,0.15);
    color: #198754;*/
    background: color-mix(in srgb, var(--primary-color) 20%, white 80%);
    color: var(--primary-color);
}

/* ---------- BUTTONS ---------- */

.btn-primary,
.btn-success {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-success {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

    .btn-outline-success:hover {
        background-color: var(--primary-color) !important;
        color: #ffffff !important;
    }

.brand-logo-light {
    display: inline-block;
}

.brand-logo-dark {
    display: none;
}

.text-primary {
    color: var(--text-primary) !important;
}

.custom-box {
    max-width: 460px !important;
}

.btn-logout {
    display: none;
}

