@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #108064;
    /* Fresh, lighter forest/teal green */
    --secondary-color: #1e2631;
    /* Dark slate charcoal */
    --accent-color: #85e3a1;
    /* Vibrant light green */
    --bg-light: linear-gradient(135deg, #e8f5e9 0%, #def7e5 100%);
    /* login page light pastel green gradient */
    --bg-pastel: #def7e5;
    /* light pastel green from user's image */
    --card-bg: rgba(255, 255, 255, 0.95);
    /* solid clean card */
    --border-color: rgba(15, 76, 58, 0.08);
    --text-main: #334155;
    /* Softer slate text to avoid harsh dark colors */
    --text-muted: #64748b;
    /* Softer slate gray */
    --font-outfit: 'Poppins', sans-serif;
    font-size: 14px;
    /* Globally scale down all rem-based font sizes */
}

/* ==========================================================================
   Text Size Scaling Settings
   ========================================================================== */
html[data-text-size="s"] {
    font-size: 12px !important;
}

html[data-text-size="m"] {
    font-size: 14px !important;
}

html[data-text-size="l"] {
    font-size: 16px !important;
}

html[data-text-size="xl"] {
    font-size: 18px !important;
}

html,
body {
    font-family: var(--font-outfit), 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-light) fixed;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

a,
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
.btn-link:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(79, 70, 229, 0.15);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    color: #fff;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(2, 132, 199, 0.25);
}

.content {
    padding-top: 1.5rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #10b981;
}

.invalid {
    outline: 1px solid #ef4444;
}

.validation-message {
    color: #ef4444;
}

/* ==========================================================================
   Splash Screen Styles (Light Theme)
   ========================================================================== */
.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-container.fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(2, 132, 199, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.splash-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.decor-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatDecor1 20s ease-in-out infinite;
}

.decor-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: floatDecor2 25s ease-in-out infinite;
}

.decor-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.18) 0%, transparent 70%);
    top: 50%;
    left: -100px;
    transform: translateY(-50%);
    animation: floatDecor3 18s ease-in-out infinite;
}

@keyframes floatDecor1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}

@keyframes floatDecor2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(40px, -30px) scale(1.05);
    }
}

@keyframes floatDecor3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 20px) scale(1.15);
    }
}

.splash-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    width: 90%;
}

.logo-wrapper {
    margin-bottom: 2rem;
}

.logo-pulse {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.splash-logo {
    width: 150px;
    height: 150px;
    z-index: 5;
    position: relative;
}

/* Outer rotating rings */
.splash-logo .outer-ring {
    stroke: rgba(2, 132, 199, 0.25);
    stroke-width: 2px;
    stroke-dasharray: 40, 20, 10, 20;
    fill: none;
    transform-origin: center;
    animation: rotateClockwise 25s linear infinite;
}

.splash-logo .inner-dashed-ring {
    stroke: rgba(79, 70, 229, 0.22);
    stroke-width: 1.5px;
    stroke-dasharray: 6, 8;
    fill: none;
    transform-origin: center;
    animation: rotateCounterClockwise 18s linear infinite;
}

.splash-logo .hex-bg {
    fill: rgba(255, 255, 255, 0.9);
    stroke: rgba(0, 0, 0, 0.05);
    stroke-width: 1.5px;
    filter: drop-shadow(0 4px 15px rgba(2, 132, 199, 0.08));
}

.splash-logo .pulse-path {
    stroke: url(#logo-grad);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawHeartbeat 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.5));
}

.splash-logo .scan-bar {
    fill: url(#logo-grad);
    filter: drop-shadow(0 0 5px var(--primary-color));
    animation: laserScan 4s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCounterClockwise {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes laserScan {

    0%,
    100% {
        y: 35;
        opacity: 0.1;
    }

    50% {
        y: 162;
        opacity: 0.9;
    }
}

@keyframes drawHeartbeat {
    0% {
        stroke-dashoffset: 400;
    }

    40%,
    60% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -400;
    }
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(2, 132, 199, 0.2);
    opacity: 0;
    z-index: 2;
}

.ring-1 {
    animation: ripple 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.ring-2 {
    animation: ripple 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite 1.5s;
}

@keyframes ripple {
    0% {
        transform: scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(2, 132, 199, 0.1);
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
        box-shadow: 0 0 30px rgba(2, 132, 199, 0);
    }
}

.brand-container {
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
}

.splash-title {
    font-size: 2.4rem;
    /* Down from 3.8rem to accommodate long clinic titles cleanly */
    font-weight: 850;
    margin: 0;
    background: linear-gradient(90deg, #0f172a 0%, #10b981 50%, #0f172a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    /* modern tight letter spacing */
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.15));
    animation: fadeInUp 0.8s ease-out, textShimmer 4s linear infinite;
    line-height: 1.2;
}

.splash-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin: 0.8rem 0 0 0;
    animation: letterSpacingExpand 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    opacity: 0;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes letterSpacingExpand {
    from {
        letter-spacing: 2px;
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        letter-spacing: 5px;
        opacity: 0.8;
        transform: translateY(0);
    }
}

.loader-wrapper-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-container {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
    backdrop-filter: blur(5px);
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #10b981);
    background-size: 300% 100%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    transition: width 0.2s cubic-bezier(0.1, 0.8, 0.2, 1);
    animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.loader-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2px;
}

.loading-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.loading-percentage {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   Splash Screen Dark & Light Theme Styles
   ========================================================================== */
.splash-container.light-theme {
    background: radial-gradient(circle at center, #ffffff 0%, #f1f8f5 100%);
}

.splash-container.dark-theme {
    background: radial-gradient(circle at center, #0a0f1d 0%, #030712 100%);
}

.splash-container.dark-theme .splash-grid-overlay {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
}

.splash-container.dark-theme .decor-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
}

.splash-container.dark-theme .decor-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.splash-container.dark-theme .decor-3 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.splash-container.dark-theme .splash-logo .hex-bg {
    fill: rgba(15, 23, 42, 0.9);
    stroke: rgba(255, 255, 255, 0.08);
    filter: drop-shadow(0 4px 20px rgba(16, 185, 129, 0.15));
}

.splash-container.dark-theme .splash-logo .outer-ring {
    stroke: rgba(16, 185, 129, 0.35);
}

.splash-container.dark-theme .splash-logo .inner-dashed-ring {
    stroke: rgba(59, 130, 246, 0.3);
}

.splash-container.dark-theme .pulse-ring {
    border-color: rgba(16, 185, 129, 0.25);
}

.splash-container.dark-theme .splash-title {
    background: linear-gradient(90deg, #f8fafc 0%, #34d399 50%, #f8fafc 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.2));
}

.splash-container.dark-theme .splash-subtitle {
    color: #94a3b8;
}

.splash-container.dark-theme .loader-container {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.splash-container.dark-theme .loader-bar {
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6, #10b981);
    background-size: 300% 100%;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
}

.splash-container.dark-theme .loading-text {
    color: #cbd5e1;
}

.splash-container.dark-theme .loading-percentage {
    color: #34d399;
}

/* ==========================================================================
   Login & Register Styles (Light Theme & Mobile Responsive)
   ========================================================================== */
.login-page-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #def7e5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    overflow-y: auto;
    padding: 20px;
}

.login-split-card {
    display: flex;
    width: 100%;
    max-width: 980px;
    height: auto;
    min-height: 580px;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 76, 58, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(15, 76, 58, 0.08);
}

.login-left-panel {
    flex: 1;
    background-color: var(--bg-pastel);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(15, 76, 58, 0.05);
}

.onboarding-content {
    max-width: 380px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboarding-svg {
    width: 260px;
    height: 260px;
    margin-bottom: 1.5rem;
}

.onboarding-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.onboarding-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.onboarding-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.onboarding-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 76, 58, 0.15);
    transition: all 0.3s ease;
}

.onboarding-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary-color);
}

/* Onboarding Language Switcher */
.lang-switcher-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.8rem;
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid rgba(15, 76, 58, 0.12);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(15, 76, 58, 0.06);
}

.lang-switcher-label {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(15, 76, 58, 0.05);
}

.lang-btn.lang-active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 76, 58, 0.2);
}

.lang-divider {
    color: #cbd5e1;
    font-size: 0.8rem;
    user-select: none;
}

.login-right-panel {
    flex: 1;
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

.card-header-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    filter: drop-shadow(0 2px 8px rgba(15, 76, 58, 0.15));
    margin-bottom: 0.5rem;
}

.brand-logo-img {
    width: auto;
    height: 64px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(15, 76, 58, 0.12));
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Register mode — slightly smaller logo */
.login-split-card.register-mode .brand-logo-img {
    height: 48px;
    max-width: 140px;
    margin-bottom: 0.2rem;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.brand-name span {
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.3rem 0 0 0;
    font-weight: 400;
}

/* Social Google Sign in styling like in the image */
.social-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.social-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #cbd5e1;
    z-index: 1;
}

.social-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 2;
}

.btn-google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 20px;
    font-family: var(--font-outfit);
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-google-signin:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.google-icon {
    width: 18px;
    height: 18px;
}

/* Compact register mode styling overrides */
.login-split-card.register-mode {
    max-width: 1040px;
}

.login-split-card.register-mode .login-right-panel {
    padding: 1rem 2.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    max-height: 90vh;
}

.login-split-card.register-mode .card-header-brand {
    margin-bottom: 0.6rem;
}

.login-split-card.register-mode .brand-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 0.2rem;
}

.login-split-card.register-mode .brand-name {
    font-size: 1.4rem;
}

.login-split-card.register-mode .brand-tagline {
    font-size: 0.72rem;
    margin-top: 0.05rem;
}

.login-split-card.register-mode .auth-form {
    gap: 0.75rem;
}

.login-split-card.register-mode .form-group {
    gap: 0.25rem;
}

.login-split-card.register-mode .form-group label {
    font-size: 0.75rem;
}

.login-split-card.register-mode .form-input {
    padding: 8px 0;
    font-size: 0.85rem;
}

.login-split-card.register-mode .input-wrapper {
    padding: 0 10px;
}

.login-split-card.register-mode .input-icon {
    font-size: 0.9rem;
    margin-right: 8px;
}

.login-split-card.register-mode .country-prefix {
    font-size: 0.85rem;
    margin-right: 6px;
    padding-right: 6px;
}

.login-split-card.register-mode .btn-submit {
    padding: 10px 16px;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.login-split-card.register-mode .switch-mode-footer {
    margin-top: 0.8rem;
    font-size: 0.75rem;
}

.login-split-card.register-mode .switch-link-btn {
    font-size: 0.75rem;
}

/* Hide mobile lang switcher on desktop (left panel is visible there) */
.mobile-lang-switcher {
    display: none;
}

/* Responsiveness for split panels */
@media (max-width: 900px) {
    .login-left-panel {
        display: none;
    }

    .login-split-card {
        max-width: 460px;
        min-height: auto;
    }

    .login-right-panel {
        padding: 2rem 2rem 3rem 2rem;
    }

    /* Show language switcher on mobile inside the right panel (bottom) */
    .mobile-lang-switcher {
        display: inline-flex;
        align-self: center;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 14px;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    background: #ffffff;
}

.input-wrapper.dob-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
    background: #fff5f5 !important;
}

.dob-error-msg {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #dc2626;
    margin-top: 4px;
    padding-left: 2px;
}

.input-icon {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.country-prefix {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
    border-right: 1px solid #e2e8f0;
    padding-right: 10px;
    line-height: 1.8;
}

.form-input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 13px 0;
    font-family: var(--font-outfit);
}

.form-input::placeholder {
    color: #94a3b8;
}

.phone-input {
    letter-spacing: 1px;
    font-weight: 500;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 10px center/10px;
    padding-right: 28px !important;
    cursor: pointer;
    color: var(--text-main);
    flex-grow: 1;
    width: 100%;
    text-align: center;
    text-align-last: center;
}

select.form-input option {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
}

input[type="date"].form-input {
    color: var(--text-main);
    cursor: pointer;
}

.otp-input {
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Custom Checkbox */
.form-group-checkbox {
    display: flex;
    align-items: center;
    margin: 0.2rem 0;
    text-align: left;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    user-select: none;
    line-height: 1.4;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(15, 76, 58, 0.2);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit Button */
.btn-submit {
    background: var(--secondary-color);
    border: none;
    outline: none;
    color: #ffffff !important;
    font-family: var(--font-outfit);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(30, 38, 49, 0.25);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0.5rem;
}

.btn-submit:hover {
    box-shadow: 0 12px 25px rgba(30, 38, 49, 0.35);
    transform: translateY(-2px);
    filter: brightness(1.1);
    color: #ffffff !important;
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* OTP Verification UI */
.otp-verification-section {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.otp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.otp-sent-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    text-align: left;
    max-width: 75%;
}

.otp-sent-info strong {
    color: var(--text-main);
}

.edit-phone-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(2, 132, 199, 0.05);
    transition: all 0.2s ease;
}

.edit-phone-btn:hover {
    background: rgba(2, 132, 199, 0.12);
}

.resend-container {
    text-align: center;
    margin-top: 0.5rem;
}

.countdown-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.countdown-text strong {
    color: var(--primary-color);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.resend-btn:hover {
    color: var(--secondary-color);
}

/* Alerts */
.alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
}

.alert-icon {
    font-size: 1.1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #059669;
}

/* Simulated OTP Notification Toast */
.otp-toast-notification {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(2, 132, 199, 0.25);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 99999;
}

.otp-toast-icon {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary-color);
    padding: 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-toast-icon span {
    font-size: 1.1rem;
}

.otp-toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.otp-toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.otp-toast-body {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
}

.otp-toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.otp-toast-close:hover {
    color: #0f172a;
}

/* Custom styles for global Toast Types */
.otp-toast-notification.toast-success {
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.otp-toast-notification.toast-error {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.otp-toast-notification.toast-warning {
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.otp-toast-notification.toast-info {
    border-color: rgba(2, 132, 199, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.otp-toast-icon.icon-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.otp-toast-icon.icon-error {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.otp-toast-icon.icon-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #f59e0b;
}

.otp-toast-icon.icon-info {
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary-color);
}

/* ── Premium Guide Toast Panel ─────────────────────────────── */
.guide-toast-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid rgba(15, 76, 58, 0.18);
    box-shadow: 0 20px 40px -8px rgba(15, 76, 58, 0.18),
                0 8px 16px -4px rgba(0, 0, 0, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 100001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Step progress dots row */
.guide-toast-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 0;
}

.guide-toast-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    background: #f8fafc;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.guide-toast-dot.active {
    background: #0f4c3a;
    border-color: #0f4c3a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.35);
    transform: scale(1.12);
}

.guide-toast-dot.done {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #059669;
}

/* Content row */
.guide-toast-body-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px 4px;
}

.guide-toast-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.guide-toast-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(15, 76, 58, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #0f4c3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(15, 76, 58, 0.12);
}

.guide-toast-step-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.guide-toast-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.guide-toast-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.guide-toast-msg {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.45;
}

.guide-toast-close-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.guide-toast-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Footer with Next button */
.guide-toast-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 16px 12px;
}

.guide-toast-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0f4c3a 0%, #176b53 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.3);
    letter-spacing: 0.2px;
}

.guide-toast-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 76, 58, 0.4);
    filter: brightness(1.08);
}

.guide-toast-next-btn:active {
    transform: translateY(0);
}

.guide-toast-next-btn .bi-arrow-right {
    transition: transform 0.2s ease;
}

.guide-toast-next-btn:hover .bi-arrow-right {
    transform: translateX(3px);
}

/* Animated progress bar at the bottom */
.guide-toast-progress-bar {
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #0f4c3a 100%);
    border-radius: 0 0 0 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* Mobile */
@media (max-width: 576px) {
    .guide-toast-panel {
        left: 12px;
        right: 12px;
        top: 12px;
        width: auto;
    }
}

/* Animations */
.fade-in-animation {
    animation: fadeIn 0.4s ease-out forwards;

}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-down-animation {
    animation: slideDown 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shake-animation {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* ==========================================================================
   Authenticated Dashboard Styles & Shell Overrides (Light Theme & Mobile Responsive)
   ========================================================================== */
.user-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 0.95rem;
}

.welcome-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.welcome-name {
    color: var(--primary-color);
    font-weight: 700;
}

.logout-btn {
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-outfit);
    border: 1px solid #fee2e2;
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Main layouts adaptation for light mode theme */
.page {
    background: transparent;
    min-height: 100vh;
}

.sidebar {
    background-color: #ffffff;
    background-image: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid #e2e8f0;
}

.top-row {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-row a,
.top-row .btn-link {
    color: #334155;
}

.top-row a:hover,
.top-row .btn-link:hover {
    color: var(--primary-color);
}

/* Form switch mode link footer styles */
.switch-mode-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.switch-link-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-outfit);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.switch-link-btn:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Dashboard Page Elements (Light Theme & Mobile Responsive overrides)
   ========================================================================== */
.date-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card-gradient-blue {
    border-left: 5px solid var(--primary-color);
}

.card-gradient-purple {
    border-left: 5px solid var(--secondary-color);
}

.card-gradient-green {
    border-left: 5px solid var(--accent-color);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    font-size: 1.4rem;
}

.card-gradient-blue .card-icon-wrapper {
    color: var(--primary-color);
    background: rgba(2, 132, 199, 0.05);
}

.card-gradient-purple .card-icon-wrapper {
    color: var(--secondary-color);
    background: rgba(79, 70, 229, 0.05);
}

.card-gradient-green .card-icon-wrapper {
    color: var(--accent-color);
    background: rgba(13, 148, 136, 0.05);
}

.card-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.card-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Reports Table Responsive */
.reports-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    -webkit-overflow-scrolling: touch;
}

.custom-dashboard-table {
    margin: 0;
    color: var(--text-main);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 800px;
    /* Forces scroll bar on small screens instead of squishing columns */
}

.custom-dashboard-table th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-dashboard-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    font-size: 0.9rem;
}

.custom-dashboard-table tr:last-child td {
    border-bottom: none;
}

.scan-id {
    font-family: monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.test-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.test-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.btn-action-view {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action-view:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-action-download {
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action-download:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--primary-color);
}

/* ==========================================================================
   Media Queries for Responsiveness (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 0 4px;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .date-badge {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 11px 0;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .otp-toast-notification {
        top: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}
{
align-items: center;
gap: 6px;
margin-top: 1.5rem;
font-size: 0.85rem;
},

.switch-link-btn {
    background: none;
    border: none;
    outline: none;
    color: var(--primary-color);
    font-weight: 600;
    font-family: var(--font-outfit);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.switch-link-btn:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   Dashboard Page Elements (Light Theme & Mobile Responsive overrides)
   ========================================================================== */
.date-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.card-gradient-blue {
    border-left: 5px solid var(--primary-color);
}

.card-gradient-purple {
    border-left: 5px solid var(--secondary-color);
}

.card-gradient-green {
    border-left: 5px solid var(--accent-color);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    font-size: 1.4rem;
}

.card-gradient-blue .card-icon-wrapper {
    color: var(--primary-color);
    background: rgba(2, 132, 199, 0.05);
}

.card-gradient-purple .card-icon-wrapper {
    color: var(--secondary-color);
    background: rgba(79, 70, 229, 0.05);
}

.card-gradient-green .card-icon-wrapper {
    color: var(--accent-color);
    background: rgba(13, 148, 136, 0.05);
}

.card-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.card-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Reports Table Responsive */
.reports-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    -webkit-overflow-scrolling: touch;
}

.custom-dashboard-table {
    margin: 0;
    color: var(--text-main);
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    min-width: 800px;
    /* Forces scroll bar on small screens instead of squishing columns */
}

.custom-dashboard-table th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-dashboard-table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    font-size: 0.9rem;
}

.custom-dashboard-table tr:last-child td {
    border-bottom: none;
}

.scan-id {
    font-family: monospace;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.test-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.test-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.btn-action-view {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action-view:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-action-download {
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.15);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-action-download:hover {
    background: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.3);
    color: var(--primary-color);
}

/* ==========================================================================
   Media Queries for Responsiveness (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
    .dashboard-wrapper {
        padding: 0 4px;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }

    .date-badge {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 11px 0;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .otp-toast-notification {
        top: 15px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}

/* ==========================================================================
   Dynamic Slide Themes (Accented Color morphing for the Right-Side Form Card)
   ========================================================================== */
/* Background Theme Gradients */
.login-page-wrapper.theme-slide-0 .auth-form-panel {
    background-color: #f0f9ff;
    /* Light Sky Blue Tint */
}

.login-page-wrapper.theme-slide-1 .auth-form-panel {
    background-color: #f0fdfa;
    /* Light Teal Tint */
}

.login-page-wrapper.theme-slide-2 .auth-form-panel {
    background-color: #f5f3ff;
    /* Light Violet Tint */
}

/* Glassmorphic Card Accent Tint & Glass Border Morphing */
.login-page-wrapper.theme-slide-0 .login-card {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(2, 132, 199, 0.22);
}

.login-page-wrapper.theme-slide-1 .login-card {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(13, 148, 136, 0.22);
}

.login-page-wrapper.theme-slide-2 .login-card {
    background: rgba(255, 255, 255, 0.48);
    border: 1px solid rgba(139, 92, 246, 0.22);
}

/* Aurora Mesh Glow Dynamic Color Morphing */
/* Theme 0 (Sky Blue, Indigo, Cyan) */
.login-page-wrapper.theme-slide-0 .bub-1 {
    background-color: rgba(14, 165, 233, 0.35);
    /* Sky blue */
}

.login-page-wrapper.theme-slide-0 .bub-2 {
    background-color: rgba(99, 102, 241, 0.25);
    /* Indigo */
}

.login-page-wrapper.theme-slide-0 .bub-3 {
    background-color: rgba(6, 182, 212, 0.2);
    /* Cyan */
}

/* Theme 1 (Teal, Emerald, Lime/Mint) */
.login-page-wrapper.theme-slide-1 .bub-1 {
    background-color: rgba(20, 184, 166, 0.35);
    /* Teal */
}

.login-page-wrapper.theme-slide-1 .bub-2 {
    background-color: rgba(16, 185, 129, 0.25);
    /* Emerald */
}

.login-page-wrapper.theme-slide-1 .bub-3 {
    background-color: rgba(132, 204, 22, 0.2);
    /* Lime/Mint */
}

/* Theme 2 (Purple, Pink, Indigo) */
.login-page-wrapper.theme-slide-2 .bub-1 {
    background-color: rgba(139, 92, 246, 0.35);
    /* Purple */
}

.login-page-wrapper.theme-slide-2 .bub-2 {
    background-color: rgba(236, 72, 153, 0.25);
    /* Pink */
}

.login-page-wrapper.theme-slide-2 .bub-3 {
    background-color: rgba(99, 102, 241, 0.2);
    /* Indigo */
}

/* ==========================================================================
   Premium Patient Portal Dashboard Styles
   ========================================================================== */
.welcome-card-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, #16533f 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 76, 58, 0.15);
}

.welcome-card-content {
    z-index: 2;
    max-width: 70%;
}

.welcome-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0;
}

.welcome-meta-info {
    font-size: 0.85rem;
}

.welcome-meta-info .meta-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.welcome-illustration-wrapper {
    z-index: 2;
    flex-shrink: 0;
    margin-left: 2rem;
}

.welcome-shield-svg {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .welcome-card-premium {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
    }

    .welcome-card-content {
        max-width: 100%;
    }

    .welcome-illustration-wrapper {
        display: none;
    }
}

/* Stat Cards Custom overrides */
.stat-card-custom {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.stat-card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 76, 58, 0.05);
}

.card-gradient-green .card-icon-wrapper {
    color: var(--primary-color);
    background: rgba(15, 76, 58, 0.08);
}

.card-gradient-charcoal .card-icon-wrapper {
    color: var(--secondary-color);
    background: rgba(30, 38, 49, 0.08);
}

.card-gradient-mint .card-icon-wrapper {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
}

.card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Detail Panel Cards */
.detail-panel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.panel-title-custom {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

/* Appointment Alert Box */
.appointment-alert-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
}

.doc-avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-pastel);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(15, 76, 58, 0.1);
}

.doc-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.doc-specialty {
    font-size: 0.8rem;
}

.appointment-meta-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--text-main);
}

.alert-divider {
    margin: 1.2rem 0;
    border-color: #e2e8f0;
}

.btn-submit-charcoal {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.btn-submit-charcoal:hover {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(30, 38, 49, 0.15);
}

.btn-link-custom {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0;
    border: none;
    background: transparent;
}

.btn-link-custom:hover {
    color: #16533f;
    text-decoration: underline;
}

/* Global Page Header Block */
.page-header-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(15, 76, 58, 0.08);
    padding-bottom: 12px;
}

.page-header-block .header-title-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    letter-spacing: -0.2px;
}

.page-header-block .header-title-info p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* ── Global Premium Modal Backdrop & Animations ── */
.premium-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.fade-in {
    animation: fadeInOverlay 0.25s ease forwards;
}

.scale-up {
    animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleUpModal {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(15px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ==========================================================================
   Light / White Theme (Bright Option) Overrides
   ========================================================================== */
.light-theme {
    --bg-light: #f1f5f9;
    /* Soft light grey background */
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
    --text-main: #1e293b;
    --text-muted: #64748b;
    background: var(--bg-light) !important;
}

/* Sidebar structure overrides in light theme */
.light-theme .sidebar {
    border-right: 1px solid #e2e8f0 !important;
}

/* Nav menu container overrides */
.light-theme .nav-container-wrapper {
    background-color: #ffffff !important;
    color: #475569 !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04) !important;
}

/* Profile card overrides */
.light-theme .sidebar-profile-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .sidebar-profile-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.light-theme .profile-name {
    color: #0f172a !important;
}

.light-theme .profile-mobile {
    color: #64748b !important;
}

.light-theme .online-indicator {
    border-color: #ffffff !important;
}

/* Nav links overrides */
.light-theme .nav-item .nav-link {
    color: #475569 !important;
}

.light-theme .nav-item .nav-link:hover {
    background-color: rgba(15, 76, 58, 0.05) !important;
    color: var(--primary-color) !important;
}

.light-theme .nav-item .nav-link:hover .nav-icon {
    color: var(--primary-color) !important;
}

.light-theme .nav-item a.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.light-theme .nav-item a.active .nav-icon {
    color: var(--accent-color) !important;
}

/* Account Switcher overrides */
.light-theme .account-switch-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme .account-switch-btn:hover {
    background: rgba(15, 76, 58, 0.05) !important;
    border-color: rgba(15, 76, 58, 0.15) !important;
    color: var(--primary-color) !important;
}

.light-theme .account-switch-btn:hover .switch-btn-icon {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.light-theme .switch-btn-title {
    color: #0f172a !important;
}

.light-theme .switch-btn-subtitle {
    color: #64748b !important;
}

.light-theme .account-switch-btn-collapsed {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--primary-color) !important;
}

.light-theme .account-switch-btn-collapsed:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Language Switcher overrides */
.light-theme .lang-row-expanded {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .nav-lang-label {
    color: #64748b !important;
}

.light-theme .nav-lang-buttons {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .nav-lang-btn {
    color: #64748b !important;
}

.light-theme .nav-lang-btn:hover {
    color: var(--primary-color) !important;
}

.light-theme .nav-lang-btn.nav-lang-active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.light-theme .nav-lang-btn-collapsed {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme .nav-lang-btn-collapsed:hover {
    background: rgba(15, 76, 58, 0.05) !important;
    color: var(--primary-color) !important;
}

/* Theme Switcher overrides */
.light-theme .theme-row-expanded {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .nav-theme-label {
    color: #64748b !important;
}

.light-theme .nav-theme-toggle-btn {
    background: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
}

.light-theme .nav-theme-toggle-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.light-theme .nav-theme-toggle-btn .toggle-slider {
    background: #ffffff !important;
}

.light-theme .nav-theme-btn-collapsed {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme .nav-theme-btn-collapsed:hover {
    background: rgba(15, 76, 58, 0.05) !important;
    color: var(--primary-color) !important;
}

/* Text Size Switcher overrides */
.light-theme .size-row-expanded {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .nav-size-icon {
    color: #475569 !important;
}

.light-theme .nav-size-label {
    color: #64748b !important;
}

.light-theme .nav-size-buttons {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.light-theme .nav-size-btn {
    color: #64748b !important;
}

.light-theme .nav-size-btn:hover {
    color: var(--primary-color) !important;
}

.light-theme .nav-size-btn.nav-size-active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.light-theme .nav-size-btn-collapsed {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.light-theme .nav-size-btn-collapsed:hover {
    background: rgba(15, 76, 58, 0.05) !important;
    color: var(--primary-color) !important;
}

.light-theme .nav-size-div {
    color: #cbd5e1 !important;
}

/* Language Switcher divider override */
.light-theme .nav-lang-div {
    color: #cbd5e1 !important;
}

/* Profile Switch Account Button overrides */
.light-theme .profile-switch-account-btn {
    background: rgba(16, 128, 100, 0.05) !important;
    border: 1px solid rgba(16, 128, 100, 0.1) !important;
    color: var(--primary-color) !important;
}

.light-theme .profile-switch-account-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(16, 128, 100, 0.2) !important;
}

/* Switch button non-hover state icon override */
.light-theme .switch-btn-icon {
    background: rgba(16, 128, 100, 0.08) !important;
    color: var(--primary-color) !important;
}

/* Logout button hover overrides */
.light-theme .nav-item .logout-nav-btn:hover {
    background-color: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
}

.light-theme .nav-item .logout-nav-btn:hover .logout-icon {
    color: #dc2626 !important;
}

/* Collapse Toggle Button overrides */
.light-theme .collapse-toggle-btn-floating {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.light-theme .collapse-toggle-btn-floating:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 4px 2px 14px rgba(15, 76, 58, 0.2) !important;
}

/* Mobile responsive light theme overrides */
@media (max-width: 640.98px) {
    .light-theme .mobile-nav-header {
        background-color: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .light-theme .mobile-brand-name {
        color: #0f172a !important;
    }

    .light-theme .mobile-brand-subtitle {
        color: var(--primary-color) !important;
    }

    .light-theme .navbar-toggler-btn {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
    }

    .light-theme .navbar-toggler-btn .toggler-bar {
        background: #475569 !important;
    }

    .light-theme .navbar-toggler-btn.is-open {
        background: rgba(15, 76, 58, 0.05) !important;
        border-color: var(--primary-color) !important;
    }

    .light-theme .navbar-toggler-btn.is-open .toggler-bar {
        background: var(--primary-color) !important;
    }

    /* Mobile navigation panel dropdown overrides for light theme */
    .light-theme .nav-scrollable {
        background-color: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    }

    .light-theme .nav-container-wrapper .nav-scrollable .sidebar-profile-card {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    .light-theme .nav-container-wrapper .nav-scrollable .profile-tag {
        color: var(--primary-color) !important;
    }

    .light-theme .nav-container-wrapper .nav-scrollable .tag-dot {
        background-color: var(--primary-color) !important;
    }

    .light-theme .nav-container-wrapper .nav-scrollable .mobile-brand-avatar {
        border-color: rgba(16, 128, 100, 0.2) !important;
    }
}


/* ==========================================================================
   Mic / Voice Input – Notes & Symptoms
   ========================================================================== */
.mic-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.mic-input-wrapper .input-custom {
    flex: 1;
    min-width: 0;
}

.mic-btn {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(15, 76, 58, 0.2);
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(15, 76, 58, 0.06);
}

.mic-btn:hover:not(:disabled) {
    background: rgba(15, 76, 58, 0.06);
    color: var(--primary-color);
    border-color: rgba(15, 76, 58, 0.3);
}

.mic-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Active / Listening state */
.mic-btn.mic-active {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    animation: micGlow 1.6s ease-in-out infinite;
}

@keyframes micGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
    50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08); }
}

/* Pulsing ring that expands outward while listening */
.mic-pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.5);
    animation: micRingExpand 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    pointer-events: none;
}

@keyframes micRingExpand {
    0%   { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.mic-unsupported-msg {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: #ef4444;
}