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

.container {
  background: white;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 90%;
  max-width: 615px;
  box-sizing: border-box;
}

h2 {
  color: #333;
  margin-bottom: 40px;
}

.converter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

label {
  display: block;
  font-weight: bold;
}

input[type="date"] {
  padding: 10px;
  width: 100%;
  max-width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  font-size: 16px;
}

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

.result {
  margin-top: 20px;
}

#result-text {
  font-size: 25px;
  color: #555;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#error-text {
  font-size: 12px;
  color: #b82929;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .container {
    padding: 20px 20px;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  input[type="date"],
  select,
  button {
    width: 100%;
    max-width: none;
  }

  input[type="date"] {
    margin-bottom: 10px;
  }

  button {
    margin-top: 10px;
    height: 55px;
    font-size: x-large;
  }

  .copy-button {
    width: 35px !important;
    font-size: x-small !important;
    height: inherit;
  }
}

.copy-button {
  background-color: #4285f4;
  color: #fff;
  cursor: pointer;
  font-size: xx-small;
  padding: 4px;
}

.copy-button:hover {
  background-color: #357ae8;
}

.copied {
  background-color: #8bc34a;
  color: #fff;
}

#result-text {
  position: relative;
  line-height: 1.5;
}

.active {
  display: block !important;
}

.inactive {
  display: none !important;
}
