/* =====================================================================
   ISB Executive Negotiation Simulation - Design System & Stylesheet
   Powered strictly by ISB Master Brand Guidelines V1
   ===================================================================== */

:root {
    /* Color Palette */
    --legacy-blue: #192890;       /* Primary Accent */
    --innovation-blue: #245bff;   /* Vibrant CTA/Digital Link */
    --future-green: #80edd9;      /* Positive utility / BATNA compliance */
    --future-green-shade: #28a690;
    --charcoal: #2e3b42;          /* Primary Body Text */
    --slate-gray: #5d6f7a;        /* Secondary Copy */
    --medium-gray: #95a9b4;       /* Border / Divider */
    --light-gray: #e6ebee;        /* Panel borders */
    --bg-cool: #f4f8fa;           /* Page Background */
    --white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #f4f8fa 0%, #e6ebee 100%);
    --shadow-premium: 0 8px 30px rgba(25, 40, 144, 0.04);
    --shadow-button: 0 4px 14px rgba(36, 91, 255, 0.2);

    /* Typography */
    --f-heading: reckless, "reckless Fallback", Georgia, serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-copy: 'Inter', sans-serif;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-copy);
    background: var(--bg-cool);
    background-image: var(--bg-gradient);
    color: var(--charcoal);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =====================================================================
   1. Brand Header
   ===================================================================== */
.isb-header {
    background: var(--white);
    border-bottom: 2px solid var(--light-gray);
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.isb-logo {
    height: 42px;
    width: auto;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--f-heading);
    font-size: 24px;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    color: var(--legacy-blue);
    line-height: 1.2;
}

.sim-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    background: #e9f0fe;
    color: var(--legacy-blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid #d2e3fc;
}

.turn-counter {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-gray);
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    padding: 6px 12px;
    border-radius: 4px;
}

/* =====================================================================
   2. Workbench Split Pane Layout
   ===================================================================== */
.workbench-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 76px);
}

/* Left Pane: Executive Scratchpad */
.scratchpad-panel {
    width: 45%;
    border-right: 2px solid var(--light-gray);
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Right Pane: Correspondence Feed */
.ledger-panel {
    width: 55%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-cool);
}

.panel-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    flex-shrink: 0;
}

.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--legacy-blue);
}

/* =====================================================================
   3. Tabs Navigation
   ===================================================================== */
.tabs-container {
    display: flex;
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    padding: 3px;
    border-radius: 6px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-gray);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--charcoal);
}

.tab-btn.active {
    background: var(--white);
    color: var(--legacy-blue);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.tab-content.active {
    display: flex;
}

.scratchpad-intro {
    font-size: 13px;
    color: var(--slate-gray);
    line-height: 1.5;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-gray);
}

/* =====================================================================
   4. Form Elements & Controls
   ===================================================================== */
.form-group {
    margin-bottom: 24px;
}

.group-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.value-badge {
    background: var(--legacy-blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Custom Range Sliders */
.styled-slider {
    width: 100%;
    height: 6px;
    background: var(--light-gray);
    border-radius: 100px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 8px 0;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--innovation-blue);
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: 0 1px 6px rgba(36, 91, 255, 0.3);
    transition: transform 0.1s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider-bounds {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--slate-gray);
}

/* Styled Select */
.styled-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--light-gray);
    background: var(--bg-cool);
    border-radius: 6px;
    font-family: var(--font-copy);
    font-size: 14px;
    color: var(--charcoal);
    outline: none;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.styled-select:focus {
    border-color: var(--innovation-blue);
    background: var(--white);
}

.help-text {
    font-size: 11px;
    color: var(--slate-gray);
    margin-top: 4px;
    display: block;
}

/* Financing Matrix Grid */
.reset-btn {
    border: none;
    background: transparent;
    color: var(--innovation-blue);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.reset-btn:hover {
    text-decoration: underline;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 6px;
}

.fin-field {
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--charcoal);
}

.fin-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--slate-gray);
}

.styled-input {
    width: 45px;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: 600;
    color: var(--charcoal);
    font-size: 14px;
    outline: none;
}

.styled-input[readonly] {
    color: var(--slate-gray);
    cursor: not-allowed;
}

.financing-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.sum-indicator {
    font-size: 12px;
    font-weight: 600;
    color: var(--future-green-shade);
}

.sum-indicator.invalid {
    color: #ff4d4f;
}

/* Checkboxes */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.styled-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid var(--light-gray);
    cursor: pointer;
}

.freight-price-panel {
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* =====================================================================
   5. Results Ledger & Gauges
   ===================================================================== */
.scratchpad-results {
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-top: auto;
}

.scratchpad-results h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--legacy-blue);
}

.results-columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.results-math {
    flex: 1;
}

.math-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--slate-gray);
}

.math-value {
    font-weight: 500;
    color: var(--charcoal);
}

.ledger-divider {
    border: none;
    border-top: 1px solid var(--medium-gray);
    opacity: 0.2;
    margin: 8px 0;
}

.total-row {
    font-size: 13px;
    margin-bottom: 4px;
}

.target-row {
    font-size: 14px;
    padding-top: 4px;
    border-top: 1px dashed var(--medium-gray);
}

.font-bold {
    font-weight: 700;
}

.text-primary {
    color: var(--legacy-blue);
}

.text-danger {
    color: #ff4d4f;
}

/* SVG Radial Gauges */
.results-gauges {
    display: flex;
    gap: 16px;
}

.gauge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
}

.radial-gauge {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: var(--light-gray);
    stroke-width: 8;
}

.gauge-fill {
    fill: none;
    stroke: var(--legacy-blue);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.gauge-fill.compliant {
    stroke: var(--future-green-shade) !important;
}

.gauge-value {
    font-family: var(--font-copy);
    font-size: 14px;
    font-weight: 700;
    fill: var(--charcoal);
    transform: rotate(90deg);
    transform-origin: center;
}

.gauge-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--charcoal);
    text-align: center;
    margin-top: 6px;
}

.batna-label {
    font-size: 8px;
    color: var(--slate-gray);
    text-align: center;
    margin-top: 2px;
}

/* Prep Notes Tab */
#notes-tab.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notes-area {
    width: 100%;
    flex: 1;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-copy);
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
    resize: none;
    outline: none;
    background: #fafcfd;
}

.notes-area:focus {
    border-color: var(--innovation-blue);
    background: var(--white);
}

.notes-rendered-view {
    width: 100%;
    flex: 1;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-copy);
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
    background: #fafcfd;
    overflow-y: auto;
}

.notes-rendered-view h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--midnight-blue);
    margin: 0 0 12px 0;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 6px;
}

.notes-rendered-view h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--midnight-blue);
    margin: 16px 0 8px 0;
}

.notes-rendered-view h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-gray);
    margin: 12px 0 6px 0;
}

.notes-rendered-view p {
    margin: 0 0 8px 0;
}

.notes-rendered-view ul.notes-list {
    margin: 0 0 12px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.notes-rendered-view ul.notes-list li {
    margin-bottom: 4px;
}

/* =====================================================================
   6. Correspondence Ledger (Right panel stream)
   ===================================================================== */
.connection-status {
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--future-green-shade);
    display: inline-block;
    box-shadow: 0 0 8px var(--future-green);
}

.correspondence-ledger {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stationery Card */
.stationery-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
    position: relative;
    border-left: 4px solid var(--legacy-blue);
}

.stationery-card.ai-card {
    border-left-color: var(--innovation-blue);
}

.stationery-card.student-card {
    border-left-color: var(--slate-gray);
}

.briefing-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.briefing-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--legacy-blue);
}

.date-stamp {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-gray);
    background: var(--bg-cool);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.briefing-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.briefing-body p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--slate-gray);
    margin-bottom: 16px;
}

.strategic-targets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.target-card {
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 12px;
}

.target-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--legacy-blue);
    display: block;
    margin-bottom: 6px;
}

.target-card p, .target-card ul {
    font-size: 12px;
    line-height: 1.5;
    color: var(--charcoal);
}

.target-card ul {
    padding-left: 16px;
}

.briefing-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* Formal Message Dispatches */
.dispatch-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-gray);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 6px;
}

.dispatch-header .sender-label {
    color: var(--legacy-blue);
}

.dispatch-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--charcoal);
}

.dispatch-text p {
    margin-bottom: 12px;
}

.dispatch-text p:last-child {
    margin-bottom: 0;
}

.dispatch-text ul.dispatch-list {
    margin: 8px 0 12px 20px;
    padding-left: 0;
    list-style-type: disc;
}

.dispatch-text ul.dispatch-list li {
    margin-bottom: 6px;
    list-style-type: disc;
}

/* Proposal Package Card inside Dispatch */
.proposal-package-card {
    background: var(--bg-cool);
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    padding: 16px;
    margin-top: 16px;
}

.proposal-package-card h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--legacy-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.proposal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    margin-bottom: 12px;
}

.prop-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px dashed var(--light-gray);
    padding-bottom: 4px;
}

.prop-lbl {
    color: var(--slate-gray);
}

.prop-val {
    font-weight: 600;
    color: var(--charcoal);
}

.package-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--light-gray);
}

.package-cta .utility-preview {
    font-size: 11px;
    font-weight: 500;
    color: var(--slate-gray);
}

.apply-btn {
    border: 1px solid var(--innovation-blue);
    background: transparent;
    color: var(--innovation-blue);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-btn:hover {
    background: var(--innovation-blue);
    color: var(--white);
}

/* =====================================================================
   7. Compose Hub
   ===================================================================== */
.compose-hub {
    background: var(--white);
    border-top: 2px solid var(--light-gray);
    padding: 20px 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.compose-hub.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #fafafa;
}

.compose-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--legacy-blue);
    margin-bottom: 12px;
}



#compose-textarea {
    width: 100%;
    height: 70px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 10px 14px;
    font-family: var(--font-copy);
    font-size: 13px;
    line-height: 1.5;
    color: var(--charcoal);
    outline: none;
    resize: none;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

#compose-textarea:focus {
    border-color: var(--innovation-blue);
    box-shadow: 0 0 6px rgba(36, 91, 255, 0.1);
}

.compose-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.compose-secondary-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--light-gray);
    padding-top: 10px;
}

/* BUTTONS */
.btn {
    border: none;
    font-family: var(--font-copy);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--innovation-blue);
    color: var(--white);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: #174cd6;
}

.btn-secondary {
    background: var(--bg-cool);
    border: 1px solid var(--light-gray);
    color: var(--charcoal);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-success {
    background: var(--future-green);
    color: #0b4f42;
    border: 1px solid var(--future-green-shade);
}

.btn-success:hover {
    background: var(--future-green-shade);
    color: var(--white);
}

.btn-danger {
    background: transparent;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
}

.btn-danger:hover {
    background: #ff4d4f;
    color: var(--white);
}

.action-btn-primary {
    border: none;
    background: var(--legacy-blue);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(25, 40, 144, 0.2);
    transition: all 0.2s ease;
}

.action-btn-primary:hover {
    background: #101c6f;
    transform: translateY(-1px);
}

/* =====================================================================
   8. Modal Styles (Critique report card)
   ==================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 40, 144, 0.4);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 70%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 2px solid var(--light-gray);
    background: var(--white);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--legacy-blue);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    background: var(--bg-cool);
}

/* Evaluation report card details styling */
.report-card-eval {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.report-section {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 20px;
}

.report-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.report-section h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--legacy-blue);
    margin-bottom: 8px;
}

.report-section p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--charcoal);
}

.star-rating {
    color: #ffb700;
    font-size: 16px;
    margin-left: 8px;
}

.outcomes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.outcomes-table th, .outcomes-table td {
    padding: 10px 14px;
    font-size: 12px;
    border-bottom: 1px solid var(--light-gray);
    text-align: left;
}

.outcomes-table th {
    background: var(--bg-cool);
    font-weight: 700;
    color: var(--legacy-blue);
}

.outcomes-table td strong {
    font-size: 13px;
}

/* Typing and Drafting State Animations */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@keyframes bounce-small {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.drafting-indicator-card {
    background: #fafbfc !important;
    border: 1px dashed var(--slate-gray) !important;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { border-color: var(--medium-gray); }
    50% { border-color: var(--innovation-blue); }
    100% { border-color: var(--medium-gray); }
}

/* =====================================================================
   11. Mobile Blocking Overlay
   ===================================================================== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #192890 0%, #111b66 100%);
    color: var(--white);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.mobile-overlay-content {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-overlay-icon {
    color: var(--future-green);
    margin-bottom: 10px;
    animation: bounce-icon 2.5s infinite ease-in-out;
}

.mobile-overlay h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.mobile-overlay p {
    font-family: var(--font-copy);
    font-size: 14px;
    line-height: 1.6;
    color: #e6ebee;
    opacity: 0.9;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 1024px) {
    .mobile-overlay {
        display: flex;
    }
    body {
        overflow: hidden;
    }
}


/* =====================================================================
   Phase 1 Profile Builder Screen Layout
   ===================================================================== */
.phase1-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 76px);
}

.phase1-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 20px;
    margin-bottom: 12px;
}

.phase1-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--legacy-blue);
    margin-top: 12px;
}

.phase1-header p {
    font-size: 14px;
    color: var(--slate-gray);
    max-width: 620px;
    line-height: 1.5;
}

.phase1-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.phase1-col {
    display: flex;
    flex-direction: column;
}

.phase1-col-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--legacy-blue);
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--light-gray);
    padding-bottom: 10px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .phase1-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.form-group-full, .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-full label, .form-group label {
    font-weight: 600;
    font-size: 13px;
    color: var(--legacy-blue);
}

.styled-input-full {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-copy);
    font-size: 14px;
    background: #fbfcfd;
    color: var(--charcoal);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.styled-input-full:focus, .styled-textarea-full:focus, .weight-input:focus {
    border-color: var(--innovation-blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(36, 91, 255, 0.1);
}

.styled-textarea-full {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-copy);
    font-size: 13.5px;
    background: #fbfcfd;
    color: var(--charcoal);
    outline: none;
    resize: vertical;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.weights-section {
    background: linear-gradient(180deg, #f4f8fa 0%, #e6ebee 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--light-gray);
}

.weights-section h3 {
    font-size: 16px;
    color: var(--legacy-blue);
    margin-bottom: 4px;
    font-weight: 600;
}

.weights-section .section-desc {
    font-size: 12.5px;
    color: var(--slate-gray);
    margin-bottom: 16px;
}

.weights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.weight-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--medium-gray);
    border-radius: 8px;
    font-family: var(--font-copy);
    font-size: 14px;
    background: var(--white);
    outline: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.weight-sum-indicator {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
}

.weight-sum-indicator span strong {
    color: var(--legacy-blue);
    font-weight: 700;
    padding-left: 4px;
}

.weight-sum-indicator.invalid span strong {
    color: #ff4d4f;
}

.phase1-footer {
    display: flex;
    justify-content: center;
    border-top: 2px solid var(--light-gray);
    padding-top: 20px;
}

#p1-submit-btn {
    min-width: 260px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--innovation-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: all 0.3s ease;
}

#p1-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 91, 255, 0.3);
}

#p1-submit-btn:active {
    transform: translateY(0);
}

/* =====================================================================
   9. Advanced Custom Issues Builder Styles
   ===================================================================== */
.custom-issue-card {
    background: #fafcfd;
    border: 1px dashed var(--medium-gray);
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
}

.custom-issue-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.custom-issue-header .issue-name-field {
    flex: 2;
    min-width: 150px;
}

.custom-issue-header .issue-weight-field {
    flex: 1;
    min-width: 100px;
}

.custom-issue-header .delete-issue-btn {
    border: 1px solid #ff4d4f;
    background: transparent;
    color: #ff4d4f;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.custom-issue-header .delete-issue-btn:hover {
    background: #ff4d4f;
    color: var(--white);
}

.custom-options-container {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.custom-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-gray);
}

.add-option-btn {
    border: none;
    background: transparent;
    color: var(--innovation-blue);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.add-option-btn:hover {
    text-decoration: underline;
}

.custom-option-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-option-row {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--light-gray);
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.custom-option-row:focus-within {
    border-color: var(--innovation-blue);
}

.custom-option-row input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 13.5px;
    padding: 2px 0;
    text-align: left;
    color: var(--charcoal);
    width: 100%;
}

.custom-option-row .opt-name-input {
    flex: 3;
    border-right: 1.5px solid var(--light-gray) !important;
    padding-right: 10px;
}

.custom-option-row .opt-val-input {
    flex: 1.2;
    padding-left: 10px;
}

.delete-option-btn {
    border: none;
    background: transparent;
    color: #ff4d4f;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.delete-option-btn:hover {
    color: #ff7875;
}

/* Financing grid layout (Phase 2 screen) */
.form-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.financing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.financing-input-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.financing-label {
    font-size: 13px;
    color: var(--charcoal);
    font-weight: 500;
    margin-bottom: 0;
}

.financing-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.financing-grid-input {
    border: none !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 700;
    color: var(--charcoal);
    width: 32px;
    text-align: right;
    outline: none;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove number spinner buttons */
.financing-grid-input::-webkit-outer-spin-button,
.financing-grid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.financing-grid-input[type=number] {
    -moz-appearance: textfield;
}

.pct-symbol {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-gray);
}

.standard-terms-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--innovation-blue);
    text-decoration: none;
}

.standard-terms-link:hover {
    text-decoration: underline;
}

.sum-indicator {
    font-size: 12px;
    font-weight: 700;
    color: var(--future-green-shade);
}

.styled-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--charcoal);
    font-weight: 500;
}

.styled-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
}

/* =====================================================================
   9. Authentication & User Profile / History Styles
   ===================================================================== */
.auth-screen-layout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, #20336b 0%, #0d163a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    z-index: 99999;
}

.auth-glass-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    animation: authFadeIn 0.5s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.auth-header-logo {
    margin-bottom: 24px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 12px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 35px;
}

.auth-buttons-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-button {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.microsoft-btn {
    background: #ffffff;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
}

.microsoft-btn:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.social-button svg {
    width: 20px;
    height: 20px;
}

.demo-btn {
    background: var(--innovation-blue);
    color: #ffffff;
}

.demo-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36, 91, 255, 0.2);
}

.error-banner {
    margin-top: 20px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(254, 226, 226, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 500;
}

/* Header Controls styling */
.header-right-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--legacy-blue);
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
    background-color: var(--innovation-blue);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background-color: #ffffff;
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 12px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-dropdown.hidden {
    display: none !important;
}

.dropdown-header {
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.dropdown-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-gray);
    font-weight: 600;
}

.dropdown-header .user-display-email {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--charcoal);
    word-break: break-all;
}

.dropdown-divider {
    height: 1px;
    background-color: var(--light-gray);
    margin: 4px 0;
}

.dropdown-item {
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--charcoal);
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f7f8;
}

.dropdown-item.btn-logout {
    color: #ff4d4f;
    background: transparent;
}

.dropdown-item.btn-logout:hover {
    background-color: #ffeef0;
}

.user-display-email {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--legacy-blue);
}

.btn-header {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-history {
    background: #ffffff;
    color: var(--charcoal);
    border: 1px solid var(--medium-gray);
}

.btn-history:hover {
    background: var(--light-gray);
    color: var(--legacy-blue);
}

.btn-logout {
    background: #ff4d4f;
    color: #ffffff;
}

.btn-logout:hover {
    background: #d9363e;
}

/* History Modal / Dashboard custom sizing */
.history-modal-content {
    max-width: 800px;
    border-radius: 12px;
}

.history-item-card {
    border: 1.5px solid var(--light-gray);
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: var(--white);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-card:hover {
    box-shadow: 0 4px 12px rgba(25, 40, 144, 0.04);
    border-color: var(--medium-gray);
}

.history-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.history-item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--legacy-blue);
}

.history-item-meta {
    font-size: 13px;
    color: var(--slate-gray);
}

.history-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-active {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-completed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.badge-walkaway {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.close-modal-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: 300;
    color: var(--slate-gray);
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: var(--charcoal);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--slate-gray);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

.demo-modal-content {
    max-width: 440px;
    border-radius: 12px;
}

/* Lobby Screen Style */
.lobby-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 76px);
    background-color: var(--bg-cool);
    padding: 40px 20px;
    overflow: hidden;
}

.lobby-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
    text-align: center;
    max-width: 500px;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lobby-history-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.lobby-card h2 {
    font-family: var(--font-heading);
    color: var(--legacy-blue);
    font-size: 24px;
    margin-bottom: 12px;
}

.lobby-card p {
    font-size: 14.5px;
    color: var(--slate-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* History Modal Close Button */
.history-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 10;
}

/* Compact Briefing Block (used during session resume) */
.briefing-block.compact .briefing-header,
.briefing-block.compact .briefing-body {
    display: none !important;
}

/* =====================================================================
   7. Admin Dashboard Layouts
   ===================================================================== */
.admin-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100vh - 76px);
    background-color: var(--bg-cool);
}

.admin-sidebar {
    width: 250px;
    background: var(--legacy-blue);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.sidebar-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 24px;
    text-align: left;
    font-family: var(--font-copy);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.sidebar-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--future-green);
    font-weight: 600;
}

.admin-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.admin-section-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--legacy-blue);
    margin-bottom: 16px;
}

.table-container {
    overflow-x: auto;
    margin-top: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-gray);
    border-bottom: 2px solid var(--light-gray);
    padding: 12px 16px;
    background-color: #fafcfd;
}

.admin-table td {
    font-size: 13.5px;
    color: var(--charcoal);
    border-bottom: 1px solid var(--light-gray);
    padding: 16px;
}

.admin-table tr:hover {
    background-color: #fafcfd;
}

/* Form inputs */
.styled-input-full {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    outline: none;
    font-family: var(--font-copy);
    font-size: 14px;
    transition: border-color 0.2s;
}

.styled-input-full:focus {
    border-color: var(--innovation-blue);
}

/* Admin details modal styling */
.admin-details-modal-content {
    animation: modalSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-details-tab-btn {
    border: none;
    background: transparent;
    padding: 14px 24px;
    font-family: var(--font-copy);
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.admin-details-tab-btn:hover {
    color: var(--charcoal);
}

.admin-details-tab-btn.active {
    color: var(--legacy-blue);
    font-weight: 600;
    border-bottom-color: var(--legacy-blue);
    background-color: var(--white);
}

.details-tab-view {
    display: none;
    height: 100%;
}

.details-tab-view.active {
    display: block;
}

.form-group-read {
    margin-bottom: 16px;
}

.form-group-read label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}

.read-only-box {
    background-color: var(--bg-cool);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 12px;
    font-size: 13.5px;
    color: var(--charcoal);
    line-height: 1.5;
}

.read-only-box.scrollable {
    max-height: 120px;
    overflow-y: auto;
}

/* Badge variants */
.badge-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: capitalize;
    display: inline-block;
}

.badge-status.badge-active {
    background-color: #e2fcf7;
    color: var(--future-green-shade);
}

.badge-status.badge-completed {
    background-color: #e9f0fe;
    color: var(--legacy-blue);
}

.badge-status.badge-walkaway {
    background-color: #ffeef0;
    color: #ff4d4f;
}

/* =====================================================================
   9. Negotiation Transcript / Chat History Styles
   ==================================================================== */
.transcript-container {
    background: #f7fafc;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 12px;
}

.transcript-message-row {
    display: flex;
    width: 100%;
}

.transcript-align-left {
    justify-content: flex-start;
}

.transcript-align-right {
    justify-content: flex-end;
}

.transcript-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid var(--light-gray);
}

.transcript-ai-card {
    background: var(--white);
    border-left: 4px solid var(--innovation-blue);
    border-top-left-radius: 2px;
}

.transcript-student-card {
    background: #eef2ff;
    border-left: 4px solid var(--legacy-blue);
    border-top-right-radius: 2px;
}

.transcript-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 11px;
}

.transcript-sender {
    font-weight: 700;
    color: var(--charcoal);
}

.transcript-intent-badge {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--white);
}

.transcript-intent-badge.intent-propose { background-color: var(--legacy-blue); }
.transcript-intent-badge.intent-disclose { background-color: #0d9488; }
.transcript-intent-badge.intent-accept { background-color: #16a34a; }
.transcript-intent-badge.intent-reject { background-color: #dc2626; }
.transcript-intent-badge.intent-empathy { background-color: #9333ea; }
.transcript-intent-badge.intent-inquire { background-color: #d97706; }
.transcript-intent-badge.intent-rapport { background-color: #4f46e5; }
.transcript-intent-badge.intent-unknown { background-color: var(--slate-gray); }

.transcript-msg-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--charcoal);
}

.transcript-msg-text p {
    margin-bottom: 8px;
}

.transcript-msg-text p:last-child {
    margin-bottom: 0;
}

.transcript-package-details {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(25, 40, 144, 0.05);
    border-radius: 6px;
    font-size: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border: 1px dashed rgba(25, 40, 144, 0.15);
}

/* Header Responsiveness down to 1025px */
@media (max-width: 1250px) {
    .isb-header {
        padding: 0 16px !important;
        height: 64px !important;
    }
    .header-logo-container {
        gap: 10px !important;
    }
    .isb-logo {
        height: 32px !important;
    }
    .brand-name {
        font-size: 16px !important;
    }
    .sim-title {
        font-size: 13px !important;
    }
    .header-status {
        gap: 8px !important;
    }
    .status-badge {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    .turn-counter {
        font-size: 11px !important;
    }
    .user-profile-container {
        gap: 8px !important;
    }
    .btn-header {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .user-avatar-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    .workbench-layout {
        height: calc(100vh - 64px) !important;
    }
    .phase1-layout {
        height: calc(100vh - 64px) !important;
    }
    .lobby-layout {
        height: calc(100vh - 64px) !important;
    }
    .admin-layout {
        height: calc(100vh - 64px) !important;
    }
    .financing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .results-columns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
    }
    .results-math {
        width: 100% !important;
    }
}

/* =====================================================================
   Pedagogical Report Print & PDF Styles
   ===================================================================== */
@media print {
    /* Unconstrain body and html height so print page flow can span multiple pages */
    html, body {
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide everything on the page */
    body * {
        visibility: hidden !important;
    }
    /* Render only the critique modal content and its children */
    #critique-modal, 
    #critique-modal .modal-content, 
    #critique-modal .modal-content * {
        visibility: visible !important;
    }
    /* Stretch the modal to cover the print page seamlessly */
    #critique-modal {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        background: none !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
    #critique-modal .modal-content {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        width: 100% !important;
        box-shadow: none !important;
        transform: none !important;
        animation: none !important;
        background: #ffffff !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        height: auto !important;
    }
    /* Uncap scroll bounds of modal-body so it flows across pages */
    #critique-modal .modal-body {
        overflow-y: visible !important;
        max-height: none !important;
        padding: 0 10px !important;
        height: auto !important;
    }
    /* Hide non-printable headers, buttons, and action footer */
    #critique-modal .modal-footer {
        display: none !important;
    }
}




