.dashboard-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: linear-gradient(135deg, rgb(47,79,79) 0%, seagreen 100%); */
    background: linear-gradient(to bottom right, var(--color-background-grandient-1), var(--color-background-grandient-2));
    min-height: 100vh;
    margin: 0;
    padding: 10px 0 0 0px;
}

.dashboard {
    width: 1200px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.dashboard-two-thirds {
    grid-column: span 2;
}

.dashboard-one-third {
    grid-column: span 1;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 2px rgba(0, 0, 0, 0.1);
    padding: 18px 18px 0 18px;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border: 1px solid var(--color-borders-1);
}

.dashboard-header {
    grid-column: 1 / -1;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    border: 1px solid var(--color-borders-1);
    padding: 0px 24px;
    position: relative;
}

.dashboard-h1 {
    display: inline-block;
    padding: 0 0 8px 4px;
}


.dashboard-h1-sub {
    font-size: 0.8em;
    font-weight: 400;
    /* color: rgba(255, 255, 255, 0.8); */
    color: var(--color-text-dim);
    margin-left: 25px;
}

.dashboard-refresh-btn {
    display: inline-block;
    padding: 7px;
    margin-left: 25px;
    background-color: ivory;
    border-radius: 0.3rem;
    border-width: 1px;
    /* border: 1px solid silver; */
    border: 1px solid var(--color-borders-1);
    cursor: pointer;
    opacity: 90;
    user-select: none;
}


.refresh-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.dashboard-header h1 {
    /* color: white; */
    color: var(--color-text-dim);
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-header p {
    /* color: rgba(255, 255, 255, 0.8); */
    color: var(--color-text-dim);
    font-size: 1em;
    margin: 0;
}

.dashboard-card h2 {
    color: #2c3e50;
    /* color: var(--color-text-dim); */
    margin-bottom: 12px;
    margin-block-start: 0em;
    margin-block-end: 0.83em;
    font-size: 1.3em;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.stat-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.75em;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.positive {
    color: #27ae60 !important;
}

.negative {
    color: #e74c3c !important;
}

.fund-list, .investment-list, .company-list {
    max-height: 400px;
    overflow-y: auto;
}

.fund-item, .investment-item, .company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.fund-item:hover, .investment-item:hover, .company-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.item-info p {
    color: #6c757d;
    font-size: 0.9em;
}

.item-values {
    text-align: right;
}

.cost, .current-value {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}

.cost {
    color: #6c757d;
    font-size: 0.9em;
}

.current-value {
    font-size: 1.1em;
}

.gain-loss {
    font-size: 0.8em;
    font-weight: bold;
}

.company-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.company-status {
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.status-review {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.status-completed {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.download-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.company-date {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
}

.chart-container {
    position: relative;
    height: 220px;
    /* was 280px */
    margin-top: 10px;
}

.chart-container.full-height {
    height: 400px;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-one-third, .dashboard-two-thirds {
        grid-column: span 1;
    }
}


.dashboard-captbl-container {
    display: flex;
    /* or inline-flex */
    flex-direction: row;
    gap: 20px;
}

.dashboard-captbl-div {
    border: 1px solid silver;
    border-radius: 12px;
    background-color: whitesmoke;
}

.dashboard-captbl-label {
    margin: 10px 20px 1px 20px;
    /* position: absolute; */
    position: relative;
    font-size: 1.0rem;
    font-weight: 600;
    color: steelblue;
    border-bottom: steelblue solid 2px;
    padding: 4px;
    /* Space on all sides */
}

.dashboard-captbl-canvas {
    position: relative;
    top: 15px;
}


.dashboard-captbl-summary-area {
    width: 160px;
    height: 360px;
    display: relative;
    margin: 20px 20px 0 15px;
}