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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
}

.date {
    font-size: 18px;
    color: #666;
}

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

.form-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="number"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #3498db;
}

button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

.list-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.list-section h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.total {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f9f4;
    border-radius: 6px;
}

ul {
    list-style: none;
}

li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

li:last-child {
    border-bottom: none;
}

.expense-name {
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
}

.expense-amount {
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
    min-width: 100px;
    text-align: right;
}

.expense-category {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    min-width: 120px;
    text-align: center;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .title {
        font-size: 24px;
    }
    
    .date {
        font-size: 16px;
    }
    
    form {
        flex-direction: column;
    }
    
    input[type="text"],
    input[type="number"] {
        min-width: 100%;
    }
    
    button {
        width: 100%;
    }
    
    li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .expense-amount,
    .expense-category {
        min-width: auto;
        text-align: left;
    }
}
