/* CSS Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 16px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.card .amount {
    font-size: 28px;
    font-weight: bold;
}

.balance .amount {
    color: var(--primary-color);
}

.income .amount {
    color: var(--secondary-color);
}

.expenses .amount {
    color: var(--danger-color);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-container h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.transactions {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.transactions h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.transaction-form {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.transaction-form input, .transaction-form select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
}

.transaction-form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.transaction-form button:hover {
    background-color: #2980b9;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.income-icon {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
}

.expense-icon {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.transaction-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.transaction-details p {
    font-size: 14px;
    color: var(--gray-color);
}

.transaction-amount {
    font-weight: bold;
    align-self: center;
}

.income-amount {
    color: var(--secondary-color);
}

.expense-amount {
    color: var(--danger-color);
}

.filter-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-options button {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-options button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.page-title {
    margin-top: 30px;
    font-size: 28px;
    color: var(--dark-color);
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }
}