/* Basic Reset and Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Styling */
body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #cf9aff, #95c0ff);
  /* Light gray background */
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to the top */
  min-height: 100vh;
  padding: 20px;
  line-height: 1.6;
}

/* Container for the entire application */
.container {
  background: linear-gradient(#9418fd, #571094);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px; /* Max width for better readability on large screens */
  margin-top: 50px; /* Space from the top */
}

h1 {
  text-align: center;
  color: #58a8bd;
  margin-bottom: 30px;
  font-size: 2.5em;
  border-bottom: 2px solid #a7d9ff; /* Light blue underline */
  padding-bottom: 15px;
}

h2 {
  color: #34495e;
  margin-bottom: 20px;
  font-size: 1.8em;
  text-align: center;
}

/* Card Styling for sections */
.card {
  background-color: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
}

/* Specific styling for the result card */
.result-card {
  border-left: 5px solid #007bff; /* Blue border on the left */
  background-color: #e6f2ff; /* Very light blue background */
}

/* Form Group Styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus {
  border-color: #007bff; /* Blue focus */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Button Styling */
.btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.primary-btn {
  background-color: #007bff; /* Blue */
  color: white;
}

.primary-btn:hover {
  background-color: #0056b3; /* Darker blue */
}

/* Result Display Styling */
.result-card p {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #444;
}

.result-card p:last-child {
  margin-bottom: 0;
}

.result-card span {
  font-weight: normal; /* Override strong if needed */
  color: #000; /* Ensure text is clearly visible */
}

/* Message Box Styling */
.message-box {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  opacity: 1;
  height: auto;
  overflow: visible;
  transition: opacity 0.3s ease, height 0.3s ease, padding 0.3s ease,
    margin-bottom 0.3s ease;
}

.message-box.hidden {
  opacity: 0;
  height: 0;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.message-box.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-box.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-box.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Utility class for hiding elements */
.hidden {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin-top: 20px;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.5em;
  }

  .btn {
    padding: 10px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.3em;
  }

  .form-group input {
    padding: 10px;
    font-size: 0.9em;
  }
}
.footer {
  color: #58a8bd;
  text-align: end;
}
