body {
  font-family: sans-serif;
  margin: 20px;
  background: #f5f5f5;
}

h1 {
  text-align: center;
}

#form {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#form input, #form select, #form button {
  padding: 10px;
  font-size: 16px;
}

#calendar {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
}

#summary {
  text-align: center;
  font-size: 18px;
  margin-bottom: 10px;
}

#customRecurrenceBox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

#customRecurrenceBox input,
#customRecurrenceBox select,
#customRecurrenceBox button {
  padding: 5px;
  font-size: 14px;
}

#paymentList {
  background: white;
  padding: 15px;
  border-radius: 10px;
  max-height: 500px;
  overflow-y: auto;
  width: 300px;
}

#paymentItems {
  list-style: none;
  padding: 0;
}

#paymentItems li {
  margin-bottom: 10px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

.fun-spinner {
  border: 8px solid #eee;
  border-top: 8px solid #0074d9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: funspin 1s linear infinite;
  margin: 0 auto;
  box-shadow: 0 0 16px #0074d955;
}
@keyframes funspin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

#settingsModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}


