/* styles.css */

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f4f4f9;
}

.calculator-container {
  text-align: center;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
}

h1 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333333;
}

.input-box {
  margin-bottom: 20px;
}

input[type="text"] {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
}

button {
  padding: 15px 30px;
  font-size: 18px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

.result-box {
  margin-top: 20px;
  font-size: 20px;
  color: #333;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

.toast.fade-out {
  opacity: 0;
}


/* Toggle switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196F3;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Toggle label styling */
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#toggleLabel {
  margin-left: 10px;
  font-size: 16px;
  font-weight: bold;
}





p {
  margin: 0;
}
