* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Card */
.container {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Heading */
.container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Form */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

input,
select {
    flex: 1 1 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
}

input:focus,
select:focus {
    border-color: #667eea;
}

/* Button */
button {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.35);
    position: relative;
    overflow: hidden;
}

/* Shine effect */
button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-20deg);
    transition: 0.5s;
}

button:hover::after {
    left: 120%;
}

/* Hover */
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 117, 252, 0.5);
}

/* Click */
button:active {
    transform: scale(0.95);
}


/* Filter */
.filter-box {
    margin: 15px 0;
    text-align: center;
}

.filter-box select {
    width: 100%;
}

/* Expense List */
ul {
    list-style: none;
    margin-top: 10px;
}

li {
    background: #f9f9f9;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

/* Delete Button */
li button {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: 0 6px 15px rgba(255, 75, 43, 0.4);
}

li button:hover {
    box-shadow: 0 10px 25px rgba(255, 75, 43, 0.6);
}



/* Total */
.total {
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 20px;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    li button {
        align-self: flex-end;
    }
}

input, select {
    transition: 0.3s;
}

input:hover, select:hover {
    background: #f1f3ff;
}

li {
    transition: 0.3s;
}

li:hover {
    transform: scale(1.02);
}

body.dark button {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    box-shadow: 0 8px 20px rgba(0, 198, 255, 0.4);
}

body.dark li button {
    background: linear-gradient(135deg, #ff512f, #dd2476);
}


body.dark {
    background: linear-gradient(135deg, #1e1e2f, #121212);
}

body.dark .container {
    background: #1f1f1f;
    color: #fff;
}

body.dark .section,
body.dark li {
    background: #2a2a2a;
    color: #fff;
}

body.dark input,
body.dark select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
}

.theme-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#incomeInput{
    margin: 10px 0; 
}

#addIncome {
    margin-top: 8px;
}

