/* Core CSS Variables for Emerald & Alabaster Palette */
:root {
    --bg-main: #fcfbfa; /* Warm Alabaster */
    --bg-card: #ffffff; /* Card White */
    --primary: #1b3d2f; /* Deep Forest Emerald */
    --primary-medium: #108553; /* Medium Accent Emerald */
    --primary-light: #f0f7f3; /* Soft Sage Background */
    --accent: #b45309; /* Warm Gold / Amber */
    --accent-light: #fffbeb; /* Soft Amber Background */
    --text-main: #242220; /* Charcoal */
    --text-muted: #6e6a64; /* Muted Stone */
    --border: #e6e3df; /* Warm Grey Border */
    --border-accent: #1b3d2f;
    --shadow: 0 4px 6px -1px rgba(27, 61, 47, 0.03), 0 2px 4px -2px rgba(27, 61, 47, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(27, 61, 47, 0.05), 0 4px 6px -4px rgba(27, 61, 47, 0.05);
    
    /* Font stacks */
    --font-heading: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 320px;
    background-color: #ffffff;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--primary-medium);
    font-weight: 800;
}

.logo-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.logo-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

/* Custom Scrollbar for Sidebar Nav */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.5;
}

.nav-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-medium);
}

.nav-item.active {
    background-color: var(--primary);
    color: #ffffff;
}

.nav-item.active .nav-num {
    opacity: 0.8;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.confidential-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.version-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Pane Styling */
.content-pane {
    margin-left: 320px;
    flex-grow: 1;
    padding: 4rem 5rem;
    max-width: 1300px;
}

/* Document Sections */
.content-section {
    display: block;
    margin-bottom: 6rem;
    scroll-margin-top: 4rem;
}

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

/* Headings & Section Typography */
h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.section-lead {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.highlight-text {
    color: var(--primary-medium);
    font-weight: 600;
}

/* Divider Line */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Cards & Layout Panels */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.accent-left {
    border-left: 4px solid var(--accent);
}

.accent-left-emerald {
    border-left: 4px solid var(--primary-medium);
}

.border-accent-red {
    border-top: 4px solid #b91c1c;
}

.border-accent-emerald {
    border-top: 4px solid var(--primary-medium);
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cover Card Design */
.cover-card {
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 5rem 4rem;
    box-shadow: var(--shadow-lg);
}

.badge-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.35rem 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.badge-accent {
    background-color: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(180, 83, 9, 0.15);
}

.badge-outline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cover-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.cover-subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
    margin-bottom: 3.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.meta-val {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
}

.secure-text {
    color: var(--accent);
    font-weight: 600;
}

.logo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.client-logo-placeholder, .vendor-logo-placeholder {
    display: flex;
    flex-direction: column;
}

.client-logo-placeholder span, .vendor-logo-placeholder span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--primary);
}

.client-logo-placeholder small, .vendor-logo-placeholder small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vs-indicator {
    font-size: 1.25rem;
    opacity: 0.4;
}

/* CEO Letter Panel */
.card-letter {
    border: 1px solid var(--border);
    background-color: #fffdfb; /* Parchment Warm White */
    font-family: 'Inter', Georgia, serif;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.letter-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.letter-recipient {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.letter-body p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    color: #33312e;
}

.letter-signature {
    margin-top: 3rem;
    display: flex;
}

.sig-block {
    display: flex;
    flex-direction: column;
}

.sig-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.15rem;
}

.sig-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.sig-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Bullet list and text spacing */
.bullet-list, .bullet-list-tight {
    list-style: none;
    margin-bottom: 1.5rem;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-medium);
    font-size: 0.85rem;
}

.bullet-list-tight li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.bullet-list-tight li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.9rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Metrics highlight row */
.metric-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.metric-card {
    background-color: var(--primary-light);
    border: 1px solid rgba(16, 133, 83, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 0.25rem;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Flowchart Nodes (CSS Flowchart) */
.flowchart-css {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: var(--primary-light);
    border: 1px solid rgba(27, 61, 47, 0.08);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.step-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.flow-arrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Pain Points Grid */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.pain-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pain-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-medium);
}

.pain-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.pain-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pain-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Tables Styling */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    text-align: left;
}

.premium-table th {
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.25rem;
    border-bottom: 2px solid var(--border);
}

.premium-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

.premium-table tbody tr:hover {
    background-color: #fafaf9;
}

.text-right {
    text-align: right;
}

.bold-text {
    font-weight: 600;
}

.font-small {
    font-size: 0.9rem;
}

/* Tabs Container */
.tabs-container {
    margin-bottom: 2.5rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

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

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary-medium);
}

.tab-content {
    display: none;
}

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

/* Architecture Layer Layout */
.arch-layer {
    background-color: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 1.25rem;
    text-align: center;
}

.layer-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.layer-boxes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.layer-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.layer-box.font-emerald {
    color: var(--primary-medium);
    border-color: rgba(16, 133, 83, 0.2);
}

.arch-arrow {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    opacity: 0.5;
}

/* Modules Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex-grow: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: var(--primary-medium);
}

.suite-select {
    width: 280px;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--bg-card);
    color: var(--text-main);
    outline: none;
    cursor: pointer;
}

.modules-counter-row {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.module-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.module-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-code {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(180, 83, 9, 0.1);
}

.module-suite-tag {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.module-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.module-benefit-box {
    background-color: var(--primary-light);
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: auto;
}

.module-benefit-box strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.module-benefit {
    font-size: 0.8rem;
    color: var(--primary);
    line-height: 1.4;
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.875rem;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-badge {
    position: absolute;
    left: -2.5rem;
    top: 0.15rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    border: 2px solid var(--primary-medium);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Chatbot Console Container */
.chatbot-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-header {
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.chat-header-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.chat-header-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-security-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-medium);
    border: 1px solid rgba(16, 133, 83, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Custom Scrollbar for Chat Body */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 6px;
}

.chat-msg {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.bot-msg {
    align-self: flex-start;
}

.user-msg {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid var(--border);
}

.user-msg .chat-avatar {
    background-color: var(--accent-light);
}

.chat-bubble {
    background-color: var(--primary-light);
    border: 1px solid rgba(27, 61, 47, 0.05);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--text-main);
    box-shadow: var(--shadow);
}

.user-msg .chat-bubble {
    background-color: #ffffff;
    border-color: var(--border);
}

.chat-bubble p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.chat-chip {
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-medium);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-chip:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-medium);
}

.chat-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.chat-footer input {
    flex-grow: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-footer input:focus {
    border-color: var(--primary-medium);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 0.375rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-emerald {
    background-color: var(--primary);
    color: #ffffff;
}

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

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background-color: #92400e;
}

.w-full {
    width: 100%;
}

/* Callout Box styling */
.callout-box {
    border-left: 4px solid var(--primary-medium);
    padding: 1.5rem;
    border-radius: 0.375rem;
}

.bg-sage {
    background-color: var(--primary-light);
}

.text-dark-emerald {
    color: var(--primary);
}

.bg-gold-tint {
    background-color: var(--accent-light);
}

.border-gold {
    border: 1px solid rgba(180, 83, 9, 0.2);
    border-left: 4px solid var(--accent);
}

.text-dark-gold {
    color: var(--accent);
}

/* Project Team & Org Tree */
.team-hierarchy {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.team-node {
    padding: 0.65rem 1.25rem;
    border-radius: 0.375rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow);
}

.director {
    background-color: var(--primary);
    color: #ffffff;
    width: 200px;
}

.team-connector {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin: 0.5rem 0;
    opacity: 0.5;
}

.team-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.pm { background-color: var(--primary-light); border: 1px solid var(--primary-medium); color: var(--primary); }
.sa { background-color: var(--primary-light); border: 1px solid var(--primary-medium); color: var(--primary); }
.ai { background-color: var(--primary-light); border: 1px solid var(--primary-medium); color: var(--primary); }

.dev { background-color: #ffffff; border: 1px solid var(--border); color: var(--text-main); }
.db { background-color: #ffffff; border: 1px solid var(--border); color: var(--text-main); }
.qa { background-color: #ffffff; border: 1px solid var(--border); color: var(--text-main); }
.sp { background-color: #ffffff; border: 1px solid var(--border); color: var(--text-main); }

/* Gantt Chart */
.gantt-chart {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gantt-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 1rem;
}

.gantt-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.gantt-bar-container {
    background-color: var(--primary-light);
    height: 1.75rem;
    border-radius: 0.25rem;
    position: relative;
    overflow: hidden;
}

.gantt-bar {
    position: absolute;
    height: 100%;
    background-color: var(--primary-medium);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.bar-1 { left: 0; width: 22.2%; background-color: #b45309; }
.bar-2 { left: 22.2%; width: 22.2%; }
.bar-3 { left: 44.4%; width: 22.2%; }
.bar-4 { left: 55.5%; width: 22.2%; background-color: var(--primary); }
.bar-5 { left: 77.7%; width: 22.3%; background-color: #15803d; }

/* Cost Breakdown Search and Tables */
.table-search-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cost-total-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    white-space: nowrap;
}

.cost-total-label strong {
    color: var(--primary-medium);
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
}

/* Custom Scrollbar for Table Container */
.table-container::-webkit-scrollbar {
    width: 6px;
}
.table-container::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 6px;
}

.table-highlight-row td {
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    border-top: 2px solid var(--primary-medium);
}

.resource-qty-input {
    width: 70px;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-align: center;
    outline: none;
}

.resource-qty-input:focus {
    border-color: var(--primary-medium);
}

/* Commercial Summary Box */
.price-summary-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--text-main);
}

.price-row strong {
    font-family: var(--font-heading);
}

.price-divider {
    border: none;
    border-top: 1px solid rgba(27, 61, 47, 0.15);
    margin: 0.5rem 0;
}

.highlight-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.grand-total-row {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* ROI Sliders and calculation boxes */
.slider-group {
    margin-bottom: 1.5rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.slider-labels label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.premium-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
}

.premium-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-medium);
    cursor: pointer;
    transition: background 0.15s ease;
}

.premium-slider::-webkit-slider-thumb:hover {
    background: var(--primary);
}

.roi-output-box {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.roi-out-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    color: var(--text-main);
}

.roi-out-row strong {
    font-family: var(--font-heading);
}

.roi-divider {
    border: none;
    border-top: 1px solid rgba(180, 83, 9, 0.15);
    margin: 0.5rem 0;
}

.highlight-roi {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Sign-Off Approval Card styles */
.approval-card {
    border: 2px dashed var(--primary-medium);
    background-color: var(--primary-light);
    text-align: center;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(27, 61, 47, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.approval-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.form-input-text {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    background-color: #ffffff;
}

.form-input-text:focus {
    border-color: var(--primary-medium);
}

.form-input-select {
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
}

/* Approved State styling */
.approval-card.approved-state {
    border: 3px solid #16a34a;
    background-color: #f0fdf4;
}

.approval-card.approved-state .approval-header .badge {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.15);
}

.signature-seal {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #16a34a;
    border: 3px solid #16a34a;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    margin: 1.5rem auto 0.5rem auto;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: rotate(-3deg);
    border-radius: 0.25rem;
}

/* Process Workflows Nodes details */
.vertical-wf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.wf-node {
    width: 100%;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.wf-node h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wf-node p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.error-node {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.success-node {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}

.wf-node-arrow {
    font-size: 1.25rem;
    opacity: 0.4;
    color: var(--text-muted);
}

/* Footer style */
.main-footer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.main-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Print Media Styles */
@media print {
    /* Set high-contrast system fonts to fix letter congestion and character kerning gaps */
    * {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
        letter-spacing: normal !important;
        word-spacing: normal !important;
    }

    /* Hide interactive UI elements and simulators */
    .sidebar,
    .btn,
    button,
    .table-search-row input,
    .module-filters,
    #chatbot,
    #roi,
    .vs-indicator,
    .no-print {
        display: none !important;
    }

    /* Reset content layout for printing */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
    }

    .app-container {
        display: block !important;
    }

    .content-pane {
        margin-left: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Keep cards splitting naturally across pages, but disable shadows */
    .card {
        page-break-inside: auto !important;
        break-inside: auto !important;
        box-shadow: none !important;
        border: 1px solid #dddddd !important;
        margin-bottom: 2rem !important;
        background-color: #ffffff !important;
    }

    /* Keep specific small items from splitting */
    .metric-card, 
    .pain-card, 
    .wf-node, 
    .arch-layer {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Keep headings with their following paragraphs */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        break-after: avoid !important;
        color: #000000 !important;
    }

    /* Let the document flow continuously (remove forced page splits on every section) */
    .content-section {
        page-break-before: auto !important;
        break-before: auto !important;
        margin-bottom: 3rem !important;
        padding-top: 1rem !important;
    }

    /* Force page break only on cover page, letting it own the first page completely */
    #cover {
        page-break-before: avoid !important;
        break-before: avoid !important;
        page-break-after: always !important;
        break-after: page !important;
        height: 98vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Fix horizontal flowchart overflow and scrollbar in PDF */
    .flowchart-css {
        flex-wrap: wrap !important;
        overflow: visible !important;
        overflow-x: visible !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    
    .flowchart-css .flow-step {
        margin-bottom: 0.5rem !important;
    }

    .flowchart-css .flow-arrow {
        margin: 0 0.25rem !important;
        transform: rotate(0deg) !important;
    }

    /* Scale down tech stack map to fit printable page margins */
    .architecture-map {
        transform: scale(0.85);
        transform-origin: top center;
        margin: 0 auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .layer-boxes {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    /* Tables printing styles */
    table {
        page-break-inside: auto;
        border-collapse: collapse !important;
        width: 100% !important;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    thead {
        display: table-header-group;
    }

    th, td {
        border: 1px solid #dddddd !important;
        padding: 0.5rem !important;
    }

    /* Make sure text colors look good on white print outs */
    strong {
        color: #000000 !important;
    }

    .secure-text, .highlight-text, .text-dark-emerald {
        color: #000000 !important;
    }
}
