
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f8fafc;
    color: #334155;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ffffff;
}

.logo {
    font-size: 30px;
    font-weight: 600;
    color: darkblue;
    cursor: pointer;
}


.balance-amount {
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 20px;
    color: darkblue;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-weight: 600;
}

.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}


.sidebar {
    width: 220px;
    background-color: #ffffff;
    padding: 1.5rem 0;
    overflow-y: auto;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.nav-item:hover {
    background-color: #f0f5ff;
    color: #4f46e5;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: #f8fafc;
}

.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.spending-breakdown {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.section-title {
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.category-item {
    margin-bottom: 1rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 500;
}

.category-amount {
    font-weight: 500;
    color: #4f46e5;
}

.bar-chart {
    height: 8px;
    background-color: #e0e7ff;
    border-radius: 4px;
}

.section-title-spending-breakdown {
    text-decoration: underline;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}



.transactions-section {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow-x: auto;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th {
    text-align: left;
    padding: 0.75rem;
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
}

.transactions-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.transaction-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-income {
    color: #10b981;
}

.type-expense {

    color: #ef4444;
}

.type-savings {
    color: #e6e360;
}


@media (max-width: 1200px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 1rem 0;
    }

    .content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        text-align: center;
    }

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

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 0;
        display: flex;
        overflow-x: auto;
    }

    .nav-menu {
        display: flex;
    }

    .nav-item {
        padding: 1rem;
        white-space: nowrap;
    }

    .nav-item span {
        display: inline;
    }
}