/* whole body */
body {
    font-family: Arial, sans-serif;
    background-color: #d0d0d1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    overflow: hidden; /* Prevent page from scrolling */
}

/* heading */
h1 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: rgb(10, 10, 10);
  }

/* form body */
form {
    background: #fefdfd;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(5, 238, 246, 0.849);
    max-width: 400px;
    width: 100%;
    height: 500px;
}

/* margin between form and buttons */
.form-group {
    margin-bottom: 15px;
}

/* Label field */
form label {
    color: #0a0303;
    font-size: 20px;
    display: block;
    margin-bottom: 16px;
}


/* text field */
form input[type="text"] {
    width: 99%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Hover for text input field */
form input[type="text"]:focus,
form input[type="text"]:hover {
    border-color: #94e4fa;
}

/* price field */
form input[type="number"] {
    width: 99%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Hover for number input field */
form input[type="number"]:focus,
form input[type="number"]:hover {
    border-color: #94e4fa;
}


/* button */
form input[type="button"] {
    background: #846ffa; 
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

/* btn position */
.button-group {
    display: flex;
    justify-content: space-between;
}

/* Add btn hover */
form input[type="button"]:hover {
    background: #0654a8f7;
}

/* Clear btn bg color */
form input[type="button"]:nth-child(4) {
    background: #846ffa;
}

/* Clear btn hover */
#clear-btn:hover{
    background: #f62b2b;
}

/* Result Total */
#result {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

/* List of Expenses:  */
#expenses-list {
    list-style-type: none;
    padding: 0;
    width: 300px; 
    max-height: 150px; /* Set a fixed height for the list */
    overflow-y: auto; /* Make the list scrollable */
    border: 1px solid #ddd; /* Optional: add a border to emphasize the scrollable area */
    
}


#expenses-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #ddd;
   
}

/* Delete icon of Expenses_list */
.delete-icon {
    color: red;
    cursor: pointer;
}

/* Total Expenses */
p {
    text-align: center;
    font-weight: bold;
}


