* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; 
}

:root {
    --dual-text: #0e7490;
    --top-bg: #F1F5F9; 
    --muted: #475569; 
    --border: #F1F5F9;
    --std-bg: transparent;
    --fw-medium: 500;
    --low: #FFFBEB;
    --moderate: #FEF0E0;
    --high: #FEE9E9;
    --list-max-width: 640px;
    --side-global-padding: 1.5rem;
    --main-side-padding: 10rem;

    --nav-height: 0rem;

    --btn-border: #E2E8F0;
    --br-button: 0.5rem;
    --footer-font-size: clamp(0.85rem, 1vw + 0.4rem, 0.9rem);
    --notice-font-size: 0.9rem;
    --notice-font-color: #64748B;
    --footer-color: #475569;
    --general-border-color: #CBD5E1;
    --signature-color: #003595;
    --signature-pale-blue: #EEF2FF;
    --rare-color: #999999;
    --show-less-color: #94A3B8;
    --color-icon: #475569;

    --table-border: 1px solid #e5e7eb;
    --table-line: 0.5px solid #eee;

    --text-primary-color: #5b616b;   
    --text-secondary-color: #A3A3A3;   
    --text-muted-color: #8d8d8d;   
    --card-count-color: #94A3B8;
    --card-count-bg: #F1F5F9;

    --muted-ing-name: #0A0A0ABF;
    --muted-bg: #f5f7f9;
    --unselect-btn: #f4f6f9;
    
    --ing-name-font-size: 0.97rem;
    --pos-font-opacity: 0.45;

    --local-text-lg: 1.2rem;
    --local-text-md: 1.06rem;
    --local-text-base: 0.97rem;
    --local-text-sm: 0.9rem;
    --local-text-xs: 0.8rem;
    
    --footnote-text: 0.78rem;

    --input-focus-border: 1px solid #cbd5e1;
    --input-border: 1px solid #e2e8f0;
    --input-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --input-focus-transition: border-color 0.2s, box-shadow 0.2s;

    --custom-img: #cbd5e1;
}

h1 {
    font-family: var(--heading-font);
    font-size: clamp(1.07rem, 8vw, 1.13rem);
    line-height: 1.1;
    font-weight: 600;
    padding-bottom: 0.25rem;
}

h2 {
    font-size: clamp(0.96rem, 5vw, 1.03rem);
    font-weight: 500;
}

body {
    font-size: 0.97rem;
    color: #0f172a;
    overflow-y: auto; 
    font-weight: 400;
}

html, body {
    height: 100%;
}

main {
    /* display: flex; */
    /* flex-direction: column; */
    width: 100%;
    /* max-width: 48rem; */
    box-sizing: border-box;
    /* padding: 0 1.5rem; */
    flex: 1;
}

body .content-wrapper { 
    min-height: calc(100vh - var(--nav-height));
    display: flex;          
    flex-direction: column; 
    padding-top: 1.5rem;
}

.content-wrapper {
    padding-left: 4.5rem;
    padding-right: 4.5rem;
}

.clickable,
    [role="button"] {
    cursor: pointer;
}

/* Base link & button color resets */
a, 
a:visited, 
a:hover, 
a:active {
    text-decoration: none;
    color: inherit;
}

button {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

@media (max-width: 768px) {

    main { 
        position: relative;
    }

    .content-wrapper {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

}

.logo {
    color: #003595;
}

.scan-upload-zone {
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

/* Inline SVG Navigation Base Styles */
.nav-icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none; 
    flex-shrink: 0;
}

.search-box .nav-icon {
    margin-right: 8px;
    color: #6b7280;
}

/* ocr status start */

/* Default Base Status Style (Loading / Info) */
.ocr-status {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.375rem;
    box-sizing: border-box;

    /* SUCCESS / INFO STATE (Green background) */
    background-color: #ecfdf5; /* Emerald 50 */
    color: #047857;            /* Emerald 700 */
    border: 1px solid #d1fae5;  /* Emerald 100 */
}

/* ERROR STATE (Red background) */
.ocr-status.ocr-status-error {
    background-color: #fef2f2; /* Red 50 */
    color: #b91c1c;            /* Red 700 */
    border: 1px solid #fee2e2;  /* Red 100 */
}

/* ocr status end */

/* footer start */

footer {
    font-size: clamp(0.8rem, 1vw + 0.4rem, 0.8125rem);
    color: #475569;  
    margin-top: auto;   
    margin-bottom: 0;
    
}

.footer-container {
    display: flex;             
    flex-direction: row;    
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    border-top: 1px solid #f1f5f9;
    gap: 2rem;  
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (max-width: 834px) {
    .footer-container {
    display: block;
    
}
    .brand-name {
    row-gap: 2rem;
    }
}

.tn-text {
    flex: 1 1 auto; 
    max-width: 625px; 
    min-width: 200px;
}

.tos {
    text-decoration: underline;
    padding-left: 0.2rem;
    padding-right: 0.2rem;        
    color: inherit;
}

.tos:hover, .feedback:hover {
    color: #0f172a; 
}

.brand-footer-container {
    margin-top: 0.25rem;
    column-gap: 1.5rem;  
    align-items: flex-end; /* Keeps everything pinned to the right edge */
}

.feedback {
    transition-property: color;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    
}

.brand-name {
    white-space: nowrap; /* Forces everything to stay on one line */
    margin-top: 0.25rem;
}

/* footer end */  

/* scan status start */

/* ─── OCR STATUS PILL STYLING ─── */
.ocr-status-msg,
.ocr-status {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Success Green Pill (Pic 3) */
.ocr-status-success {
    background-color: rgba(239,246,255,0.6);
    color: #003595;
    border: 1px solid #ceead6;
}

/* Error Red Pill */
.ocr-status-error {
    background-color: #fce8e6;
    color: #c5221f;
    border: 1px solid #fad2cf;
}

/* scan status end */
