/* Base Styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 20px;
  transition: background-color 0.3s, color 0.3s;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

input, button {
  padding: 8px;
  margin: 5px;
  border-radius: 5px;
}

button {
  border: none;
  cursor: pointer;
  background-color: #4caf50;
  color: #fff;
}

#resetBtn{
  background-color:red;
}

button:hover {
  background-color: #45a049;
}

ul {
  list-style: none;
  padding: 0;
}

/* Settings Button */
#settings-btn {
  position: fixed; 
  top: 10px; 
  right: 0;
}

/* Modal Container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Modal Box */
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
  color: #333;
}

.modal-content input {
  width: 90%;
  padding: 8px;
  margin: 10px 0;
}

.modal-content button {
  margin: 5px;
  padding: 10px;
  border: none;
  cursor: pointer;
}

/* Confirmation Buttons */
#confirm-payment, #confirm-income-payment {
  background-color: #28a745;
  color: #fff;
}

#cancel-payment, #cancel-income-payment {
  background-color: #dc3545;
  color: #fff;
}

/* Close Button */
.close, .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 20px;
  background-color: #f3f3f3;
  border-radius: 10px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #4caf50;
  border-radius: 10px;
}

/* Ko-fi Button */
.kofi-button {
  display: inline-block;
  background-color: #29abe0;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
}

.kofi-button:hover {
  background-color: #1e8cc3;
}

/* Dark Mode */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark-mode input,
body.dark-mode button {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #555;
}

body.dark-mode button {
  background-color: #00695c;
}

body.dark-mode button:hover {
  background-color: #00897b;
}

body.dark-mode .modal-content {
  background: #1e1e1e;
  color: #e0e0e0;
}

/* Floating Animation for Star Icon */
@keyframes waveFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.star {
  display: inline-block;
  animation: waveFloat 2s ease-in-out infinite;
  line-height: 1;
  transform-origin: center;
  font-size: smaller;
}

.early-supporter {
  color: #BFA100 !important;
  font-weight: bold;
}

#built-by-style {
  color:#D4AF37;
  text-decoration: none;
}

/* Net Income Color */

/* light theme */
body:not(.dark-mode) .net-positive { color: green; font-weight: bold;}
body:not(.dark-mode) .net-negative { color: red; font-weight: bold;}

/* dark theme */
body.dark-mode .net-positive { color: #90ee90; font-weight: bold;}
body.dark-mode .net-negative { color: #ff9999; font-weight: bold;}

/* Net Income Color */

@media only screen and (max-width: 600px) {
  .modal {
    width: 100vw;
    height: 100vh;
    display: hidden;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
  }

  .modal-content {
    width: 90%;
    max-width: 90%;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
  }

  html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }
}
