body {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] body {
    background-color: #212529;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.card-header {
    background-color: #fff;
}

[data-bs-theme="dark"] .card-header {
    background-color: #2b3035;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

.nav-tabs .nav-link {
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    font-weight: 700;
}

#summary-cards .card {
    transition: transform 0.1s;
}

#summary-cards .card:hover {
    transform: translateY(-2px);
}

.alert {
    font-size: 0.9rem;
}

#forecast-chart {
    max-height: 250px;
}

/* Account list styling */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-item {
    padding: 6px 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-item:hover {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .account-item:hover {
    background-color: #2b3035;
}

.account-name {
    font-weight: 500;
    position: relative;
    flex: 1;
}

.account-balance {
    font-weight: 600;
    min-width: 100px;
    text-align: right;
    cursor: pointer;
    margin-left: auto;
    margin-right: 8px;
}

.account-balance:hover {
    text-decoration: underline;
}

/* Hide account action buttons by default, show on hover */
.account-item .account-actions {
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    left: 50px;
    background: linear-gradient(to right, transparent, #f8f9fa 20%, #f8f9fa);
    padding-left: 20px;
}

[data-bs-theme="dark"] .account-item .account-actions {
    background: linear-gradient(to right, transparent, #2b3035 20%, #2b3035);
}

.account-item:hover .account-actions {
    opacity: 1;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 2;
    flex: 1;
}

/* Theme toggle */
.theme-toggle {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    color: #fff;
}
