/* timeconverter.css */
/* Scopet, så vi ikke rammer andre tools */

.timeconverter {
  width: 95%;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin: 30px auto;
  font-family: Inter, Roboto, Arial, sans-serif;
  position: relative;
  box-sizing: border-box;
}

.timeconverter__toplink {
  text-align: center;
  margin-bottom: 10px;
}

.timeconverter__toplink a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.timeconverter__title {
  display:none;
}

.timeconverter__label {
  font-size: 14px;
  margin-bottom: 4px;
  display: block;
  color: #333;
}

.timeconverter__inputrow {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.timeconverter input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
}

.timeconverter input[type="text"]:focus {
  border-color: #4f46e5; /* samme som currencyconverter */
}

.timeconverter__unitrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.timeconverter__unitlabel {
  width: 44px;
  font-size: 14px;
  color: #333;
}

.timeconverter select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.timeconverter select:focus {
  border-color: #4f46e5;
}

.timeconverter__swaprow {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

/* Swap button (icon) */
.timeconverter__swaprow {
  display: flex;
  justify-content: center;
  margin: 10px 0 14px;
}

.timeconverter__swapbtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.timeconverter__swapbtn:hover {
  background: rgba(0,0,0,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.16);
}

.timeconverter__swapbtn:active {
  transform: translateY(1px);
}

.timeconverter__swapbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.25);
}

.timeconverter__swapsvg {
  width: 22px;
  height: 22px;
  fill: rgba(0,0,0,0.78);
  transition: transform 0.35s ease;
}

/* lille “flip” på hover for at signalere swap */
.timeconverter__swapbtn:hover .timeconverter__swapsvg {
  transform: rotate(180deg);
}

.timeconverter__result {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 16px 0 6px;
  padding: 12px;
  border-radius: 8px;
  background-color: #f3f4f6;
  color: #111;
  white-space: pre-line; /* så \n vises pænt */
}

.timeconverter__info {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 10px;
}

.timeconverter__btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.timeconverter__btn--copy {
  background-color: #0b119c;
  color: #fff;
}

.timeconverter__btn--copy:hover {
  background-color: #000;
}

.timeconverter__btn--clear {
  background-color: #ffa500;
  color: #fff;
}

.timeconverter__btn--clear:hover {
  background-color: #b27300;
}

.timeconverter__btn.copy-success {
  background: #10b981 !important;
}

.timeconverter__disclaimer {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin-top: 14px;
}
