/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BACKGROUND */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1f4037, #99f2c8);
    padding: 20px;
}

/* MAIN CONTAINER */
.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* TITLE */
.app-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: bold;
}

/* SUMMARY SECTION */
.summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
}

.card {
    flex: 1;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
}

.income-card {
    background: rgba(0, 200, 83, 0.6);
}

.expense-card {
    background: rgba(255, 82, 82, 0.6);
}

.savings-card {
    background: rgba(33, 150, 243, 0.6);
}

/* FORM SECTION */
.form-section h2,
.history-section h2 {
    margin-bottom: 15px;
}

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

/* INPUTS */
select,
input {
    padding: 10px;
    border-radius: 10px;
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
}

/* BUTTON */
button {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: white;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #ddd;
}

/* TRANSACTION LIST */
#transaction-list {
    list-style: none;
    margin-top: 10px;
}

#transaction-list li {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ============================= */
/* 📱 MOBILE FIX */
/* ============================= */

@media (max-width: 480px) {

    .container {
        padding: 20px;
    }

    .summary {
        flex-direction: column;
    }

    form {
        flex-direction: column;
    }

    select,
    input,
    button {
        width: 100%;
    }

}
