/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #1e293b;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
}
.sidebar .brand {
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px;
    margin-bottom: 20px;
}
.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.3s;
}
.sidebar a:hover, .sidebar a.active {
    background: #334155;
    color: white;
}

/* Container */
.container {
    margin-left: 240px;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header h1 {
    margin: 0;
}
.small {
    font-size: 14px;
    color: #777;
}
.btn {
    padding: 8px 14px;
    background: #0886ff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
}
.btn:hover {
    background: #0669cc;
}

/* Cards */
.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    flex: 1;
}
.card h3 {
    margin-top: 0;
}
.green { color: #18b358; }
.red { color: #ee243e; }

/* Chart Row */
.charts-row {
    display: flex;
    gap: 20px;
}
.chart-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.chart-wrapper {
    flex: 1;
    min-height: 300px;
}

/* Table Section - Adjusted for more breathing space */
.table-section {
    margin-top: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 100%;
}
.table-section h3 {
    margin-top: 0;
}
.table-section table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.table-section th, .table-section td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-section th {
    background: #f3f4f6;
    font-weight: bold;
}
.table-section tr:hover {
    background: #f9fafb;
}
.action-links a {
    margin-right: 8px;
    color: #0886ff;
    text-decoration: none;
}
.action-links a:hover {
    text-decoration: underline;
}

/* Match Capital Gains Chart Width for Table */
.table-section {
    max-width: 100%;
}
.table-section table {
    min-width: 100%;
}

/* Footer Note */
.footer-note {
    margin-top: 20px;
    font-size: 13px;
    color: #555;
}

.form-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 12px;
}
.form-section-label {
    font-size: 15px;
    font-weight: 600;
    color: #2773c6;
    margin-top: 22px;
    margin-bottom: 8px;
}
.form-card label {
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

