
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6fb;
    color: #263247;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    color: #253858;
    margin-bottom: 8px;
}

header p {
    color: #778399;
    font-size: 15px;
}

.summary {
    background: linear-gradient(135deg, #344e8c, #5476c5);
    color: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(52, 78, 140, 0.15);
}

.summary h3 {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 12px;
}

.summary h2 {
    font-size: 36px;
}

.expense-form,
.expense-list {
    background: white;
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(30, 50, 80, 0.05);
}

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

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #46546b;
}

input,
select {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce2ec;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: white;
}

input:focus,
select:focus {
    border-color: #5476c5;
    box-shadow: 0 0 0 3px rgba(84, 118, 197, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    background: #4567b3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #344e8c;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f5;
}

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

.expense-info h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.expense-info p {
    color: #8792a5;
    font-size: 13px;
}

.expense-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expense-amount {
    font-weight: 700;
    color: #344e8c;
    white-space: nowrap;
}

.delete-btn {
    background: #fff0f0;
    color: #d64c4c;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    width: auto;
    font-size: 12px;
}

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

.empty-message {
    color: #929daf;
    text-align: center;
    padding: 25px 0;
    font-size: 14px;
}

@media (max-width: 600px) {
    body {
        padding: 25px 14px;
    }

    header h1 {
        font-size: 26px;
    }

    .expense-form,
    .expense-list {
        padding: 20px;
    }

    .expense-item {
        align-items: flex-start;
    }

    .expense-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }
}
