/* Unit Converter Tool Styles */
.unit-converter-tool {
  background: var(--background-color);
  border-radius: 18px;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 2.5rem 2rem;
  margin: 2rem auto 2.5rem auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.unit-converter-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.converter-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.converter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 160px;
  flex: 1 1 160px;
}
.converter-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.converter-group select,
.converter-group input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: var(--surface-color);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.converter-group select:focus,
.converter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(220,38,38,0.08);
}
.converter-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.swap-btn, .reset-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.swap-btn {
  background: var(--primary-color);
  color: #fff;
}
.swap-btn:hover {
  background: var(--accent-color);
}
.reset-btn {
  background: var(--surface-color);
  color: var(--primary-color);
  border: 1.5px solid var(--primary-color);
}
.reset-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.tool-description {
  text-align: center;
  margin: 1.2rem 0 2.2rem 0;
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.6;
}
.tool-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
}
.tool-header .tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.tool-header h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tool-seo-content {
  margin: 3rem auto 2rem auto;
  max-width: 900px;
  background: var(--surface-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(220,38,38,0.04);
}
.tool-seo-content h2, .tool-seo-content h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 1.2rem;
}
.tool-seo-content p, .tool-seo-content ul, .tool-seo-content ol {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
}
.tool-seo-content ul, .tool-seo-content ol {
  text-align: left;
  margin-left: 2.5rem;
}
.faq {
  margin: 2.5rem 0 2rem 0;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 1.2rem;
  padding: 1.2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.faq-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}
.related-tools-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.related-tool {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  text-align: center;
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 2px 8px rgba(220,38,38,0.04);
}
.related-tool:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(220,38,38,0.1);
  transform: translateY(-2px);
}
.related-tool .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.related-tool h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.related-tool p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 900px) {
  .unit-converter-tool {
    max-width: 98vw;
    padding: 1.5rem 0.5rem;
  }
  .tool-seo-content {
    max-width: 99vw;
    padding: 1.5rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .unit-converter-tool {
    max-width: 100vw;
    padding: 1rem 0.2rem;
  }
  .tool-seo-content {
    max-width: 100vw;
    padding: 1rem 0.2rem;
  }
  .converter-row {
    flex-direction: column;
    gap: 1rem;
  }
  .converter-group {
    min-width: 0;
    width: 100%;
  }
  .converter-actions {
    flex-direction: column;
    gap: 1rem;
  }
} 