/* Global Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
}

/* Light Theme Styles */
body.light-theme {
  background-color: #f4f7fa; /* Soft light background */
  color: #333;
}

body.light-theme .container {
  background-color: #ffffff;
  color: #333;
}

body.light-theme .buttons button {
  background-color: #4c7be3; /* Soft blue for calculate */
}

body.light-theme .buttons #resetBtn {
  background-color: #f44336; /* Red for reset */
}

body.light-theme .result {
  background-color: #e9f7fe; /* Light blue background for results */
}

/* Dark Theme Styles */
body.dark-theme {
  background-color: #181818; /* Dark background */
  color: #e0e0e0; /* Light text color */
}

body.dark-theme .container {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.dark-theme .buttons button {
  background-color: #4c7be3; /* Soft blue for calculate */
}

body.dark-theme .buttons #resetBtn {
  background-color: #f44336; /* Red for reset */
}

body.dark-theme .result {
  background-color: #333333; /* Darker background for results */
  color: #e0e0e0;
}

/* Container Styling */
.container {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* Heading */
.container h1 {
  margin-bottom: 30px;
  font-size: 26px;
}

/* Input Labels */
.container label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

/* Input Fields */
.container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Input Fields Focus Effect */
.container input:focus {
  border-color: #4c7be3;
  box-shadow: 0 0 5px rgba(76, 123, 227, 0.6);
  outline: none;
}

/* Buttons Section */
.buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.buttons button {
  width: 48%;
  padding: 12px;
  font-size: 16px;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.buttons button:hover {
  background-color: #365f92; /* Darker blue on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.buttons #resetBtn {
  background-color: #f44336; /* Red for reset */
}

.buttons #resetBtn:hover {
  background-color: #d32f2f;
}

/* Result Section */
.result {
  margin-top: 25px;
  padding: 15px;
  border-radius: 8px;
  color: #333;
  font-size: 18px;
}

/* Media Queries for Responsiveness */
@media (max-width: 400px) {
  .container {
    padding: 20px;
  }

  .container h1 {
    font-size: 22px;
  }

  .buttons button {
    width: 100%;
    margin: 8px 0;
  }

  .container input {
    padding: 12px;
  }
}
