/* finances.css */
.finances-content {
    padding: 2rem;
}

.finance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.finance-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
}

.summary-card {
    background: #f9fafb;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    color: #374151;
    padding: 0.5rem 0;
}

.summary-item:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.transactions-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.transaction-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #6d28d9;
    border-bottom-color: #6d28d9;
}

.date-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 0.375rem;
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.no-transactions {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-transactions i {
    font-size: 2rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-transactions h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Mobile-first responsive styles */
@media (max-width: 768px) {
    .finances-content {
        padding: 0rem;
    }
 
    .finance-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
 
    .finance-card {
        padding: 1rem;
    }
 
    .card-amount {
        font-size: 1.25rem;
    }
 
    .transactions-section {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }
 
    .transaction-tabs {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1rem;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        gap: 0.5rem;
    }
 
    .tab-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
        min-width: auto;
    }
 
    .tab-btn i {
        margin-right: 4px;
    }
 
    .date-filter {
        width: 100%;
        margin: 1rem 0;
        padding: 0.75rem;
        justify-content: space-between;
    }
 
    .no-transactions {
        padding: 2rem 1rem;
    }
 
    .no-transactions i {
        font-size: 1.5rem;
    }
 
    .no-transactions h3 {
        font-size: 1rem;
    }
 }