body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #F1EFEC, #D4C9BE);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: background 0.3s ease;
}

body:hover {
    background: linear-gradient(135deg, #D4C9BE, #F1EFEC); /* Subtle background change on hover */
}

.container {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    width: 420px;
    text-align: center;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); /* Animation for hover effect */
}

h2 {
    color: #123458;
    margin-bottom: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

h2:hover {
    color: #4CAF50; /* Hover color change for heading */
}

input {
    width: calc(100% - 20px);
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    border: 2px solid #D4C9BE;
    font-size: 16px;
    color: #030303;
    background-color: #F9F9F9;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #123458;
    background-color: #FFFFFF;
    outline: none;
    transform: scale(1.05); /* Input field zoom on focus */
}

button {
    width: 100%;
    padding: 12px;
    background-color: #123458;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #030303;
    transform: scale(1.05); /* Button grow effect */
}

.progress {
    width: 100%;
    background-color: #D4C9BE;
    border-radius: 8px;
    margin: 12px 0;
    height: 12px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #123458;
    width: 0;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.expense-list {
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
    color: #030303;
    transition: opacity 0.3s ease;
}

.expense-list p {
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #D4C9BE;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
}

.expense-list p.show {
    opacity: 1;
    transform: translateX(0); /* Slide-in effect */
}

#remaining {
    font-size: 18px;
    font-weight: bold;
    color: #123458;
    margin-top: 12px;
    transition: color 0.3s ease;
}

#remaining:hover {
    color: #4CAF50; /* Hover effect on remaining balance */
}

#taskCount {
    font-size: 16px;
    font-weight: bold;
    color: #030303;
}

@media (max-width: 480px) {
    .container {
        width: 90%;
    }
}
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #F1EFEC, #D4C9BE);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    width: 420px;
    text-align: center;
}

h2 {
    color: #123458;
    margin-bottom: 20px;
    font-weight: bold;
}

input {
    width: calc(100% - 24px);
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 2px solid #D4C9BE;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #123458;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #030303;
}

.progress {
    width: 100%;
    background-color: #D4C9BE;
    border-radius: 8px;
    margin: 12px 0;
    height: 12px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #123458;
    width: 0;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.expense-list {
    text-align: left;
    margin-top: 20px;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9F9F9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 5px solid #123458;
}

.delete-btn {
    background: #123458;
    border: none;
    color: white;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
}

.delete-btn:hover {
    background: #cc0000;
}
/* Category Dropdown */
#category {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

/* Style when hovering over the dropdown */
#category:hover {
    border-color: #007bff;
}

/* Style when clicking on the dropdown */
#category:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0px 0px 5px rgba(0, 91, 187, 0.5);
}
#refreshPageBtn {
    position: fixed;
    top: 10px;
    right: 25px;
    background: rgba(50, 50, 50, 0.7);
    color: white;
    border: none;
    padding: 5px 5px; /* Equal padding to make it a square-like button */
    font-size: 12px; /* Small but readable */
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
    width: auto; /* Ensures no extra width */
    height: auto; /* Prevents elongation */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#refreshPageBtn:hover {
    opacity: 1;
    background: rgba(30, 30, 30, 0.9);
    transform: scale(1.1);
}

#refreshPageBtn:active {
    transform: scale(0.95);
}
