﻿/* Kill horizontal scrollbars app-wide */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* or: overflow-x: clip; (modern browsers) */
}

/* Common culprits protection */
img, svg, video, canvas, iframe, table {
    max-width: 100%;
}

/* If you used 100vw anywhere, prefer these to avoid scrollbar-width overflow */
.full-viewport {
    width: 100%; /* instead of 100vw */
    /* or, modern & correct: width: 100dvw; */
}

body {
    background: white;
    /*font-size: 20px;*/
    line-height: 1.5; /* not sure about this one. */
    color: #3b3c3f;
    /*font-family: 'Open Sans', sans-serif;*/
}

/* Default values (for larger screens or as fallback) */
:root {
    --header-height: 50px;
    --header-gap: 20px;
}

/* Adjust values for small screens in portrait (vertical) orientation */
@media (max-width: 768px) and (orientation: portrait) {
    :root {
        --header-height: 90px; /* header grows when text wraps */
        --header-gap: 20px; /* slightly smaller gap for vertical view */
    }
}

/* Adjust values for small screens in landscape (horizontal) orientation */
@media (max-width: 768px) and (orientation: landscape) {
    :root {
        --header-height: 70px; /* header remains compact in landscape */
        --header-gap: 20px; /* even smaller gap for horizontal view */
    }
}

.accessEmail {
    border: 1px solid #dadce0;
    display: inline-block;
    text-decoration: none;
    padding: 5px 10px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    color: #3b3c3f;
    position: relative;
}

    .accessEmail.enabled:hover {
        text-decoration: none;
        background-color: #dadce0;
        color: #3b3c3f;
    }

.personEmail {
    display: inline;
    text-decoration: none;
    color: #3b3c3f;
    margin: 0 5px;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    vertical-align: middle;
}
@keyframes spinner-border { to { transform: rotate(360deg); } }

.header-area-branded {
    position: relative;
    height: auto;
    padding: 20px 25px;
    text-align: center;
}

.logo {
    width: 350px;
    height: auto;
    margin-top: 30px;
    margin-bottom: 10px;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    height: 100%; /* Adjust if needed */
}

.no-underline-link {
    text-decoration-line: none !important;
}

/* Make only the icon change color on hover */
.copy-button {
    border: none; /* Remove button border */
    background: none; /* Remove button background */
    padding: 5px; /* Reduce padding */
}

.copy-icon {
    font-size: 25px;
    transition: color 0.2s ease-in-out;
}

.copy-button:hover .copy-icon {
    color: #007bff; /* Change to blue (Bootstrap primary color) */
}

html {
    font-family: 'Inter', sans-serif;
}

@supports (font-variation-settings: normal) {
    html {
        font-family: 'Inter var', sans-serif;
    }
}

body {
    font-family: 'Inter' /*, sans-serif*/; /* body will now inherit your html font */
}

/* TODO: Move to separate css file */
html, body {
    height: 100%;
    width: 100%;
    background-color: #eff1f6;
    /* border: solid 3px pink; */
}

.dropdown-item {
    display: flex;
    align-items: center; /* Align icon and text vertically */
    font-size: 0.85rem; /* Make text smaller */
    padding: 0.35rem 0.75rem; /* Reduce padding */
}

    .dropdown-item i {
        margin-right: 6px; /* Reduce space between icon and text */
        width: 16px; /* Ensure icons are uniformly spaced */
        text-align: center;
    }

.user-button-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eff1f6; /* Light gray background */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page title */
.page-title {
    /*font-size: clamp(1.25rem, 2.5vw, 1.75rem);*/
    color: var(--Neutral-850, #1C2230);
    font-feature-settings: 'liga' off, 'clig' off;
    /* Heading-3/Semi-Bold */
    font-family: Poppins;
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px; /* 133.333% */
}

.content-title {
    color: var(--Neutral-850, #1C2230);
    font-feature-settings: 'liga' off, 'clig' off;
    /* Paragraph/Semi-bold/None */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

.content-sub-title {
    color: var(--Neutral-850, #1C2230);
    font-feature-settings: 'liga' off, 'clig' off;
    /* Paragraph/Regular/None */
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

.input-label-bold {
    overflow: hidden;
    color: var(--Neutral-850, #1C2230);
    font-feature-settings: 'liga' off, 'clig' off;
    text-overflow: ellipsis;
    /* UI/Semi-bold/None */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
}

.bold-hyperlink {
    text-decoration: none !important;
    /*font-weight: bold;*/
    color: var(--primary-blue-560, #0265DC);
    font-feature-settings: 'liga' off, 'clig' off;
    /* UI/Semi-bold/None */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 142.857% */
}


.responsive-box {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    width: auto; /* shrink-wrap */
    max-width: 600px;
    min-width: 300px;
    margin: 0 auto;
}

.twofactor-dialog {
    
    max-width: 500px;
}

.twofactor-modal-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.twofactor-modal-header,
.twofactor-modal-footer {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

    .twofactor-modal-header .modal-title {
        font-size: 1rem;
        font-weight: 600;
    }

.twofactor-ok-btn {
    
    font-size: 1rem;
    border-radius: 6px;
    min-width:75px;
}

.stacked-box {
    max-width: 600px;
    min-width: 300px;
    width: 100%;
}

.alert-box {
    position: fixed;
    top: calc(var(--header-height) + var(--header-gap));
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height) - var(--header-gap) - 20px);
    width: auto; /*let it shrink‑wrap */
    max-width: 600px; /*but no wider than 600px */
    min-width: 300px; /*and no narrower than 300px*/
}

/*
    /Textbox
*/
/* Wrapper to position the button inside the input */
.input-button-wrapper {
    position: relative;
    width: auto; /* adjust as needed */
}

    /* The readonly input */
    .input-button-wrapper .form-control {
        padding-right: 2.5rem; /* space for the button */
    }

    /* The copy button inside the input */
    .input-button-wrapper .copy-button {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 2.5rem;
        border: none;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000; /* black icon */
        transition: color .15s ease;
    }

        .input-button-wrapper .copy-button:hover {
            color: var(--bs-primary); /* primary hover */
            cursor: pointer;
        }

/*
    Hyperlinks
*/


a.disabled {
    color: var(--bs-secondary) !important; /* gray text */
    cursor: not-allowed; /* disabled cursor */
    text-decoration: none !important;
}

/*
    Latest - orignally from Website
*/
.verification-feature {
    position: relative;
    height: auto;
    max-width: 600px;
}

    .verification-feature ul {
        list-style: none;
        padding: 10px 0 0 20px;
        margin: 0;
    }

        .verification-feature ul li:before {
            display: none;
        }

        .verification-feature ul li {
            overflow: hidden;
            height: auto;
            margin: 0 0 25px 0;
            padding-left: 0;
        }

.vf-thumb {
    float: left;
    width: 80px;
    height: auto;
}

.vf-content {
    margin-left: 140px;
    height: auto;
}

.label-ov {
    border-radius: .25rem;
}

input:disabled + .label-ov {
    background-color: #e9ecef;
    opacity: 1;
}

.footer-area {
    padding: 5px 5px 5px 5px;
}

.inner-footer-area {
    text-align: center;
}

    .inner-footer-area p {
        min-width: 0px;
        text-align: right;
        display: inline-block;
    }

input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 9999s ease-out;
    color: #000 !important;
}