body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    color: #333;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* Dark mode me white kar do */
.dark h1 {
    color: white;
}

.container {
    background: white;
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.2);
}

/* Inputs */
input, select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #4facfe;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #00c6ff;
}

/* Expense List */
ul {
    list-style: none;
    padding: 0;
}

li {
    background: #f5f5f5;
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

li strong {
    color: #333;
}

li small {
    color: gray;
}

/* Delete button */
li button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
    padding: 5px 8px;
    background: red;
    border-radius: 5px;
}

/* Total */
h3 {
    text-align: center;
    margin-top: 20px;
}
/* Dark Mode */
.dark {
    background: #1e1e1e;
    color: white;
}

.dark .container {
    background: #2c2c2c;
    color: white;
}

.dark input,
.dark select {
    background: #444;
    color: white;
    border: none;
}

.dark li {
    background: #3a3a3a;
}

.dark button {
    background: #555;
}

.dark button:hover {
    background: #777;
}
#myChart {
    max-width: 300px;
    margin: 20px auto;
    display: block;
}
.container {
    max-width: 400px;
    margin: 20px auto;
    border-radius: 20px;
}

/* Mobile feel */
body {
    display: flex;
    justify-content: center;
}

/* Buttons more modern */
button {
    border-radius: 20px;
}

/* Inputs rounded */
input, select {
    border-radius: 15px;
}

/* Card style expenses */
#expense-list div {
    background: #ffffff;
    margin-top: 10px;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 375px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: 20px 20px 0 0;
}

.bottom-nav div {
    font-size: 20px;
    cursor: pointer;
}
.fab {
    position: fixed;
    bottom: 70px;
    right: calc(50% - 160px);
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#expense-list div {
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
/* ===== MOBILE RESPONSIVE FIX ===== */
@media (max-width: 480px) {

    .container {
        width: 95%;
        margin: 10px auto;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    input, select {
        font-size: 14px;
        padding: 10px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }

    #expense-list div {
        font-size: 14px;
    }
}

/* ===== LIGHTER BACKGROUND (sir ka suggestion) ===== */
body {
    background: linear-gradient(to right, #dae4f5, #c2e9fb);
}

/* ===== CARD IMPROVE ===== */
.container {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== EXPENSE CARD MODERN ===== */
#expense-list div {
    border-left: 5px solid #4facfe;
}

/* ===== BUTTON MODERN LOOK ===== */
button {
    background: linear-gradient(to right, #4facfe, #00c6ff);
}

/* ===== FAB IMPROVE ===== */
.fab {
    background: #5afd9b;
}

/* ===== BOTTOM NAV FULL WIDTH (mobile fix) ===== */
.bottom-nav {
    width: 100%;
    left: 0;
    transform: none;
    border-radius: 0;
}

/* ===== ICON ACTIVE EFFECT ===== */
.bottom-nav div:active {
    transform: scale(0.9);
    color: #ddebf7;
}
