/* Home Section Styles */

.section-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.section-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Net Worth Section */
.net-worth-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.net-worth-section h2 {
    color: #00CED1;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.net-worth-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00CED1, #DAA520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#netWorthChart {
    max-height: 300px;
    margin-top: 1rem;
}

/* Recent Activity Section */
.recent-activity-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.recent-activity-section h3 {
    color: #00CED1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 206, 209, 0.3);
    transform: translateX(4px);
}

.activity-details {
    flex: 1;
}

.activity-type {
    color: #DAA520;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.activity-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.activity-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.activity-amount.positive {
    color: #00CED1;
}

.activity-amount.negative {
    color: #ff6b6b;
}

/* Accounts Overview Section */
.accounts-overview-section {
    margin-top: 2rem;
}

.accounts-overview-section > h3 {
    color: #00CED1;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.account-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 206, 209, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-header {
    color: #DAA520;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
}

.account-subsection {
    margin-bottom: 1.5rem;
}

.account-subsection:last-child {
    margin-bottom: 0;
}

.subsection-header {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid rgba(0, 206, 209, 0.5);
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.account-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 206, 209, 0.3);
    transform: translateX(4px);
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
}

.account-institution {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.account-balance {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00CED1;
}

.account-balance.liability {
    color: #ff6b6b;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-container {
        padding: 1rem;
    }

    .net-worth-section,
    .recent-activity-section,
    .account-category {
        padding: 1.25rem;
    }

    .net-worth-value {
        font-size: 2rem;
    }

    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .activity-amount {
        align-self: flex-end;
    }

    .account-item {
        padding: 0.875rem 1rem;
    }
}
