:root {
    --bg-main: #F8FAFC;        /* Light Slate Gray - Clean corporate background */
    --bg-card: #FFFFFF;        /* Pure White - High contrast card layouts */
    --accent: #0F172A;         /* Deep Slate Navy - Authoritative corporate tone */
    --accent-hover: #1E3A8A;   /* Deep Royal Blue - Active states */
    --text-primary: #0F172A;   /* Charcoal Navy - Crisp text visibility */
    --text-muted: #64748B;      /* Muted Slate - For secondary descriptions */
    --border: #E2E8F0;         /* Soft Border Split Borders */
    --success: #15803D;        /* Emerald Green - Compliance accepted */
    --error: #B91C1C;          /* Deep Crimson - Blocked path markers */
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    box-sizing: border-box;
}

/* 🏛️ LEGAL NAVIGATION BAR DESIGN */
#app-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.logo {
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 12px;
}

/* 💳 VIEW-CARD MATRIX CONTAINERS */
.view-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
}

.view-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* 📥 FORM INPUT GROUPS */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 1.25rem;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.input-group input {
    background-color: #FFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.15s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

/* 🔘 REBRANDED BUTTON PRIMITIVES */
.btn-primary {
    width: 100%;
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-primary:disabled {
    background-color: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #F1F5F9;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-link {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
}

.btn-link:hover {
    color: var(--accent-hover);
}

.logout-color {
    color: #991B1B !important;
}

/* 📁 DROPZONE PIPELINE STRUCTURES */
.drop-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    padding: 2.5rem 1rem;
    text-align: center;
    background-color: #F8FAFC;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.drop-zone:hover {
    background-color: #F1F5F9;
    border-color: var(--text-muted);
}

.highlight {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: underline;
}

/* 📊 INTERACTIVE PROGRESS MATRIX & SHARING LAYOUTS */
.status-matrix {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #F1F5F9;
    border-left: 3px solid var(--text-muted);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.sharing-box, .meta-box {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    background-color: #F8FAFC;
    border: 1px solid var(--border);
}

.copy-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.copy-row input {
    flex-grow: 1;
    background-color: #FFF;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-box {
    font-family: monospace;
    word-break: break-all;
    background-color: #F1F5F9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* ⚠️ DISPLAY CONTROLS & UTILITIES */
.hidden {
    display: none !important;
}

.alert-box {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   🏛️ LEGAL BRAND CENTERING & TAGLINE CONSTRAINTS
   ========================================================================== */

.centered-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;         /* Centers elements horizontally */
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.logo-group {
    display: flex;
    flex-direction: column;     /* Stacks the Scales of Justice icon vertically ABOVE the text */
    align-items: center;
    gap: 12px;                  /* Clean spacing grid between icon and title */
}

.brand-icon-main {
    width: 56px;                /* Slightly larger, bold icon presence for the login gateway */
    height: 56px;
    color: var(--accent);
}

.brand-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent);
}

.brand-title .light-text {
    font-weight: 300;
    color: #1e3a8a;
}

.tagline-single-line {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
    
    /* 🇹🇹 Absolute single-line constraints to prevent text-wrapping on smaller mobile phones */
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;    
    width: 100%;
}
