
:root {

  --background-color: black;
  --text-color: white;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s; /* Optional: Add a smooth transition */
}

#toggleBtn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 8px;
}

.icon {
  display: none; /* Initially hide both icons */
}

.sun {
  display: inline; /* Show the sun icon in light mode */
}

.dark-mode .sun {
  display: none; /* Hide the sun icon in dark mode */
}

.dark-mode .moon {
  display: inline; /* Show the moon icon in dark mode */
}

.dark-mode {
  --background-color: white;
  --text-color: black;
}


.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    box-shadow: 0px 2px 8px 0px rgba(224, 75, 82, 0.5), 0px 4px 16px 0px rgba(224, 75, 82, 0.5);
    border-radius: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

#toggleBtn{
    margin-left: 700px;
}

#search-expense{
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 17px;
}

form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

form input, form select, form button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #4ae9f1;
    
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #218838;
}

.expense-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.expense-table th, .expense-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

#warning{
    text-align: center;
    color: red;
    font-size: 40px;
}

.total-amount {
    text-align: right;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.filter {
    margin-bottom: 20px;
    text-align: right;
}

.filter label {
    margin-right: 10px;
}

.filter select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.history-container{
    max-width: 300px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
     box-shadow: 
    2px 2px 4px rgba(117, 117, 117, 0.8), 
    -2px -2px 4px rgba(117, 117, 117, 0.8);
}

#totalIncome{
    color: #218838;
}

#totalExpenses{
    color: red;
}

/* CSS */
.button-85 {
  padding: 0.6em 2em;
  border: none;
  outline: none;
  color: rgb(255, 255, 255);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-85:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.button-85:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}