:root {
    --egp-blue: #0b3c5d;
    --egp-green: #328cc1;
    --text-primary: #1a202c;
    --bg-light: #f7fafc;
    --border-grey: #e2e8f0;
}

.egp-dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
    font-family: Arial, sans-serif;
    background: #ffffff;
}

.egp-sidebar {
    width: 300px;
    background: var(--bg-light);
    border-right: 1px solid var(--border-grey);
    padding: 20px;
    box-sizing: border-box;
}

.search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    margin-bottom: 20px;
}

.category-section h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    margin: 15px 0 8px 0;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-item:hover, .menu-item.active {
    background: var(--egp-blue);
    color: #ffffff;
    font-weight: 600;
}

.egp-workspace {
    flex: 1;
    padding: 30px;
    box-sizing: border-box;
}

.lead-capture-card {
    background: var(--bg-light);
    border: 1px solid var(--border-grey);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.lead-inputs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.lead-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
}

.workspace-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Left pane: calculator input fields */
.input-parameter-pane {
    background: #ffffff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 20px;
}

.input-parameter-pane h2 {
    color: var(--egp-blue);
    margin-top: 0;
}

/* Right pane: chart + result + action buttons */
.live-visuals-pane {
    background: #ffffff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.muted {
    color: #718096;
    font-size: 0.9rem;
}

.control-box {
    margin-bottom: 18px;
}

.control-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.control-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
}

.metric-billboard {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.metric-billboard span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2b6cb0;
}

#liveOutputTotal {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--egp-blue);
    margin-top: 5px;
}

.chart-box {
    height: 260px;
    margin-bottom: 25px;
}

.action-trigger-row {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-grey);
    background: #fff;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.btn-action:hover {
    opacity: 0.85;
}

.btn-pdf {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
}

.btn-excel {
    background: #38a169;
    color: #fff;
    border-color: #38a169;
}

.btn-wa {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.tabular-projection-grid {
    background: #ffffff;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.tabular-projection-grid h3 {
    margin-top: 0;
    color: var(--egp-blue);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: var(--egp-blue);
    color: #fff;
    padding: 10px;
    text-align: left;
}

table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-grey);
}

/* Responsive: stack panes on smaller screens */
@media (max-width: 900px) {
    .egp-dashboard-wrapper {
        flex-direction: column;
    }
    .egp-sidebar {
        width: 100%;
    }
    .workspace-split-layout {
        grid-template-columns: 1fr;
    }
}