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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

input {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    color: #1f2937;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

.js-expense-name {
    flex: 2;
}

.js-expense-date {
    flex: 1.2;
}

.js-expense-price {
    flex: 0.8;
}

button {
    padding: 12px 24px;
    background: #223a70;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

button:active {
    transform: translateY(0);
}

/* Column Layout */
.expense-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.column {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background: #fafafa;
}

.column h3 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

/* Expense Items */
.expense-item {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-item:hover {
    border-color: #d1d5db;
}

.expense-item > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expense-item-name {
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
}

.expense-date {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}

.expense-item-amount {
    color: #059669;
    font-weight: 600;
    font-size: 15px;
}

.delete-btn {
    padding: 6px 12px;
    background: #a32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

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

/* Total Section */
.total-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-section strong {
    color: #1f2937;
    font-size: 16px;
}

.js-total-amount {
    color: #059669;
    font-weight: 700;
    font-size: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 24px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .input-section {
        flex-direction: column;
    }

    .js-expense-name,
    .js-expense-date,
    .js-expense-price {
        flex: 1;
    }

    button {
        width: 100%;
    }

    .expense-columns {
        grid-template-columns: 1fr;
    }
}
.input-section {
    align-items: stretch;
}

.input-section button {
    flex-shrink: 0;
}
.input-section {
    flex-wrap: wrap;
}

.input-section button {
    width: 100%;
}

