.back-button {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}
.back-button:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Tool Container */
.tool-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}
.tool-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.tool-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}




/* Input Section */
.input-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.input-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}

/* Grid Layout for Inputs */
.unit-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.unit-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.label-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.label-text i {
  color: var(--primary-color);
}

/* Inputs & Dropdowns */
input[type="number"],
select {
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
}
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

/* Convert Button */
.convert-section {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}
.convert-btn {
  padding: 1rem 3rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.convert-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}
.convert-btn:active {
  transform: translateY(-1px);
}

/* Output Section */
.output-section {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.output-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
}
.output-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
#result-display {
  background: rgba(255, 107, 53, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--text-primary);
  min-height: 80px;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Copy Button */
.action-btn {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.action-btn.copied {
  background: #00d084;
  color: white;
  border-color: #00d084;
}
