* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #1f2937;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background: #111827;
    color: #ffffff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px;
}

.logo-box {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-text h2 {
    font-size: 18px;
    margin-bottom: 4px;
}

.brand-text p {
    font-size: 13px;
    color: #9ca3af;
}
.company-name {
    font-size: 17px;
    font-weight: 700;
    color: #b8965a;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.brand-text h2 {
    font-size: 16px;
    margin-bottom: 4px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    color: #e5e7eb;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: 0.2s ease;
    font-size: 15px;
}

.nav-item:hover,
.nav-item.active {
    background: #1f2937;
}

.coming-soon {
    font-size: 11px;
    background: #374151;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 8px;
}

.main-content {
    flex: 1;
    padding: 28px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-title h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.page-title p {
    font-size: 14px;
    color: #6b7280;
    text-decoration: underline;
}

.user-box {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 14px;
}

.placeholder-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.placeholder-card h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.placeholder-card p {
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .sidebar {
        width: 220px;
        padding: 20px 14px;
    }

    .main-content {
        padding: 20px;
    }

    .page-title h1 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.kpi-label {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
    margin-bottom: 12px;
}

.kpi-card h2 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 8px;
}

.kpi-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-label {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
    margin-bottom: 10px;
}

.summary-card h3 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 8px;
}

.summary-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
}
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.chart-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    min-height: 360px;
}

.chart-header {
    margin-bottom: 18px;
}

.chart-header h3 {
    font-size: 20px;
    color: #111827;
    margin-bottom: 6px;
}

.chart-header p {
    font-size: 13px;
    color: #6b7280;
    text-decoration: underline;
}

.chart-card canvas {
    width: 100% !important;
    height: 260px !important;
}

@media (max-width: 991px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
.form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.data-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: underline;
}

.form-group input,
.form-group textarea,
.form-group select {    
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2563eb;
}
.full-width {
    width: 100%;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
}

.primary-btn {
    background: #0f766e;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn:hover {
    opacity: 0.92;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.table-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    margin-bottom: 28px;
    overflow-x: auto;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.records-table thead th {
    text-align: left;
    font-size: 14px;
    color: #374151;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: underline;
}

.records-table tbody td {
    font-size: 14px;
    color: #1f2937;
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.records-table tbody tr:hover {
    background: #f9fafb;
}

.table-link {
    display: inline-block;
    padding: 8px 12px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
}

.table-link:hover {
    opacity: 0.92;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}
.plan-grid {
    grid-template-columns: repeat(3, 1fr);
}
/* === SECTION SPACING FIX (Scenarios Page) === */

.placeholder-card {
    margin-bottom: 24px;
}

.form-card {
    margin-bottom: 28px; /* increased from none */
}

.summary-grid {
    margin-bottom: 28px; /* increase spacing between grids */
}

/* Optional: smoother visual separation */
.summary-card {
    border: 1px solid #f1f5f9;
}
/* Force separation AFTER Plan Comparison */
/* Clean spacing for Scenarios page bottom modules */
.coming-soon-grid {
    margin-top: 22px !important;
}.preset-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.preset-btn {
    background: #0f766e;
    color: white;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}
.preset-btn.secondary {
    background: #374151;
}
.delete-btn {
    background: #b91c1c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.delete-btn:hover {
    opacity: 0.92;
}
/* === Final Sidebar Brand Layout === */

.sidebar-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100%;
}

.brand-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100%;
}

.brand-top .company-name {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #b8965a !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.brand-bottom {
    text-align: center !important;
    width: 100%;
    margin-top: 2px !important;
}

.brand-bottom h2 {
    font-size: 22px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
}

.brand-bottom p {
    font-size: 16px !important;
    color: #b8965a; !important;
}
/* =========================================================
   Wood Theme Shared Polish
   Appended as non-destructive visual override.
   ========================================================= */

.nav-item:hover,
.nav-item.active {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
    transform: translateX(2px);
}

.primary-btn:hover,
.preset-btn:hover,
.delete-btn:hover,
.table-link:hover {
    opacity: 0.94;
}

.summary-card,
.kpi-card,
.chart-card,
.form-card,
.table-card,
.placeholder-card,
.user-box {
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.summary-card:hover,
.kpi-card:hover {
    transform: translateY(-1px);
}

/* =========================================================
   STYLE 1 — Warm Executive Wood
   Clean cream workspace + espresso sidebar + warm wood accents.
   ========================================================= */

body {
    background: #f6f1ea;
    color: #2b211a;
}

.sidebar {
    background: linear-gradient(180deg, #2b1f17 0%, #1d1510 100%) !important;
}

.nav-item {
    color: #f3eadf;
}

.nav-item:hover,
.nav-item.active {
    background: #3a2a1f !important;
}

.brand-top .company-name {
    color: #d4b06a !important;
}

.brand-bottom p {
    color: #d4b06a !important;
}

.page-title h1,
.placeholder-card h2,
.chart-header h3,
.form-card h2,
.table-card h2 {
    color: #2b211a;
}

.page-title p,
.chart-header p,
.placeholder-card p,
.summary-card p,
.kpi-card p {
    color: #6f6258;
}

.summary-card,
.kpi-card,
.chart-card,
.form-card,
.table-card,
.placeholder-card,
.user-box {
    background: #fffdf9 !important;
    border: 1px solid #eadfce !important;
    box-shadow: 0 5px 18px rgba(76, 49, 28, 0.08) !important;
}

.summary-label,
.kpi-label,
.form-group label,
.records-table thead th {
    color: #7a5a3a !important;
}

.primary-btn,
.preset-btn {
    background: #8b5e3c !important;
}

.preset-btn.secondary {
    background: #4b382b !important;
}

.table-link {
    background: #2b1f17 !important;
}

.records-table tbody tr:hover {
    background: #fbf6ef !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #8b5e3c !important;
}

.alert-success {
    background: #f2eadf !important;
    color: #5a3a21 !important;
    border-color: #d9bea0 !important;
}
/* =========================================================
   PORTAL PAGE (Landing)
   ========================================================= */

.portal-body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: url('../img/portal-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.portal-overlay {
    background: rgba(0,0,0,0.0);
    height: 100vh;          /* force full screen */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.portal-wrapper {
    width: 100%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    padding: 30px;
}

.portal-header {
    text-align: center;
    margin-bottom: 34px;
}

.portal-header h1 {
    margin: 0;
    font-size: 34px;
    color: #b8965a;
    font-weight: 600;
}

.portal-header p {
    margin-top: 10px;
    font-size: 16px;
    color: #6a6258;
}

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

.portal-card {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #ddd4c9;
    border-radius: 18px;
    padding: 30px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: inherit;
    border: 1px solid #eadfce;
}

.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.portal-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #3a332c;
}

.portal-card p {
    margin: 0;
    color: #6d645a;
    line-height: 1.5;
    font-size: 15px;
}

.card-action {
    margin-top: 26px;
    font-weight: bold;
    color: #8b5e3c;
}

.disabled-card {
    opacity: 0.65;
    cursor: not-allowed;
}

.disabled-card:hover {
    transform: none;
    box-shadow: none;
}

.portal-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #b8965a;
    font-weight: 600;
}

@media (max-width: 600px) {
    .portal-body {
        padding: 16px;
        align-items: flex-start;
        overflow: auto;
    }

    .portal-wrapper {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .portal-header h1 {
        font-size: 27px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        min-height: 180px;
        padding: 24px;
    }
}
/* === Portal Title + Logo === */

.portal-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.portal-logo {
    height: 52px;   /* 🔧 YOU CONTROL SIZE HERE */
    width: auto;
}
