/* ================================
   UNIT CONVERTER TOOL STYLES
   ================================ */

/* Category Section */
.category-section {
  margin-bottom: 30px;
}

.category-section > label {
  display: block;
  color: #c3e8e4;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
}

.category-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 10px 18px;
  background: transparent;
  color: #c3e8e4;
  border: 1px solid #25545b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  border-color: #22c7b8;
  color: #22c7b8;
  background: rgba(34, 199, 184, 0.1);
}

.category-btn.active {
  background: linear-gradient(135deg, #22c7b8 0%, #f4bd62 100%);
  color: white;
  border-color: transparent;
}

/* Input Section */
.input-section {
  margin: 20px 0;
}

.input-row {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
  flex: 1;
  max-width: 280px;
}

.input-group label {
  color: #c3e8e4;
  font-weight: 600;
  font-size: 14px;
}

.input-group input {
  padding: 12px 15px;
  border: 1px solid #25545b;
  border-radius: 8px;
  background: #071c20;
  color: #e7fbf8;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #22c7b8;
  background: #0d2c33;
  box-shadow: 0 0 0 3px rgba(34, 199, 184, 0.12);
}

.input-group input::placeholder {
  color: #5f8784;
}

.input-group select {
  padding: 10px 12px;
  border: 1px solid #25545b;
  border-radius: 8px;
  background: #071c20;
  color: #e7fbf8;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-group select:focus {
  outline: none;
  border-color: #22c7b8;
}

/* Swap Button */
.swap-container {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.swap-btn {
  padding: 12px;
  background: transparent;
  color: #c3e8e4;
  border: 1px solid #25545b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-btn:hover {
  border-color: #22c7b8;
  color: #22c7b8;
  transform: rotate(180deg);
}

.swap-btn svg {
  width: 20px;
  height: 20px;
}

/* Result Display */
.result-display {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(34, 199, 184, 0.12) 0%, rgba(244, 189, 98, 0.08) 100%);
  border-radius: 12px;
  border: 1px solid #25545b;
}

.result-label {
  color: #8cb7b3;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.result-value {
  color: #22c7b8;
  font-size: 32px;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.3;
}

.result-formula {
  color: #5f8784;
  font-size: 14px;
  margin-top: 12px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .category-buttons {
    gap: 6px;
  }

  .category-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

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

  .input-group {
    max-width: 100%;
    min-width: 100%;
  }

  .swap-container {
    justify-content: center;
    padding: 10px 0;
  }

  .swap-btn {
    transform: rotate(90deg);
  }

  .swap-btn:hover {
    transform: rotate(270deg);
  }

  .result-value {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .category-btn {
    padding: 6px 10px;
    font-size: 12px;
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .result-value {
    font-size: 20px;
  }

  .result-display {
    padding: 20px 15px;
  }
}
