body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f1f5f9;
    color: #1e293b;
}

.navbar {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
}

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

.logo {
    color: #4f46e5;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
}

.dashboard {
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: white;
    padding-bottom: 4rem;
}

.main-heading {
    font-size: 2rem;
}

.section-heading {
    color: #4f46e5;
    margin-bottom: 1rem;
}

.container {
    max-width: 950px;
    margin: auto;
    padding: 2rem 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.card {
    background: white;
    color: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

input, select {
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

button {
    padding: 0.6rem;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #4338ca;
}

.list-box div {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-btn {
    background: #dc2626;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.delete-btn:hover {
    background: #b91c1c;
}

.priority.low { background: #dcfce7; color: #15803d; padding: 3px 6px; border-radius: 4px; }
.priority.medium { background: #fef9c3; color: #a16207; padding: 3px 6px; border-radius: 4px; }
.priority.high { background: #fee2e2; color: #b91c1c; padding: 3px 6px; border-radius: 4px; }

.income-item { border-left: 4px solid #16a34a; background: #f0fdf4; }
.expense-item { border-left: 4px solid #dc2626; background: #fef2f2; }

.money-summary {
    margin-top: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 6px;
}
