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

body {
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    min-height: 100vh;
}

#expense-form {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #4f46e5;
}

#expense-form button {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

#expense-form button:hover {
    background-color: #4338ca;
}

#expenses-list {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#expenses-list div {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-right: 4px solid #4f46e5;
}

#expenses-list button {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
}

#expenses-list button:hover {
    background-color: #dc2626;
}

#total {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #1f2937;
    margin-bottom: 15px;
}

#budget-section {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#budget-section label {
    width: 100%;
}

#budget-section input {
    flex: 1;
    min-width: 140px;
}

#budget-save-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#budget-save-btn:hover {
    background-color: #4338ca;
}

#report-btn {
    width: 100%;
    max-width: 450px;
    display: block;
    padding: 12px;
    background: transparent;
    border: 1.5px solid #4f46e5;
    color: #4f46e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background-color 0.3s, color 0.3s;
}

#report-btn:hover {
    background-color: #4f46e5;
    color: white;
}

#report-section {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

#report-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1f2937;
}

#report-content div {
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 14px;
}

#report-content div:last-child {
    border-bottom: none;
}

.status-green {
    color: #16a34a;
}
.status-orange {
    color: #d97706;
}
.status-red {
    color: #dc2626;
    font-weight: 700;
}

.hidden {
    display: none;
}

#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
#toast.show {
    opacity: 1;
}