* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
  background-color: #ffffff;
  color: #222222;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  width: 100%;
  position: relative;
  padding-bottom: 60px; /* Space for bottom right copyright logo */
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 16px;
  color: #111;
}

.description {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 28px;
}

.card {
  background-color: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.form-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.form-group label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tooltip container & styling */
.tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #2e7d32;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
}

.tooltip-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  width: 290px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
  text-align: left;
  font-weight: normal;
}

/* Arrow indicator for popover */
.tooltip-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #ededed;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  z-index: 3;
}

.tooltip-container:hover .tooltip-popover {
  display: block;
}

.tooltip-header {
  background-color: #ededed;
  padding: 10px 14px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #222;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tooltip-body {
  padding: 14px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #222;
  background-color: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

input[type="text"] {
  width: 320px;
  padding: 10px 14px;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: right;
  background-color: #fff;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: #0066cc;
}

input[readonly] {
  background-color: #e9ecef;
  color: #212529;
  border-color: #ced4da;
}

.convert-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background-color: #ffffff;
  border: 1px solid #0056b3;
  border-radius: 6px;
  color: #111;
  font-size: 1.2rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s, border-color 0.2s;
}

.convert-btn:hover {
  background-color: #f0f4f8;
  border-color: #004085;
}

.icon {
  stroke: #111;
}

/* Bottom Right Copyright Logo */
.copyright-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.copyright-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  input[type="text"] {
    width: 100%;
  }
  .copyright-logo {
    height: 56px;
  }
}
