/* Converter Specific Styles */

/* Input Group */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 15px;
}

.input-group input[type="text"],
.input-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #2680d9;
}

/* Button */
.btn-calc {
  background: #2680d9;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-calc:hover {
  background: #1e6bbf;
}

/* Converter Box */
.converter-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
}

.converter-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Unit Select Dropdowns */
.unit-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.unit-select:focus {
  outline: none;
  border-color: #2680d9;
}

/* Converter Result Display */
.converter-result {
  background: transparent;
  padding: 40px 0;
  margin: 30px 0;
  text-align: center;
}

.converter-result-title {
  font-size: 1.2rem;
  color: #666;
  margin: 0 0 20px 0;
}

.converter-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  font-size: 2rem;
  flex-wrap: wrap;
}

.from-value {
  font-weight: 700;
  color: #1a1a1a;
}

.from-unit {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

.converter-equals {
  color: #666;
  font-weight: 400;
}

.to-value {
  font-weight: 700;
  color: #2680d9;
  font-size: 2.5rem;
}

.to-unit {
  font-size: 1.2rem;
  color: #2680d9;
  font-weight: 600;
}

/* Conversion Table */
.conversion-table-box {
  margin: 40px 0;
}

.conversion-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
}

.conversion-table th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid #e0e0e0;
}

.conversion-table td {
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.conversion-table tr:hover {
  background: #f9f9f9;
}

.conversion-table .unit-name {
  font-weight: 600;
  color: #1a1a1a;
}

.conversion-table .unit-value {
  color: #2680d9;
  font-weight: 600;
}

/* Quick Conversion Links */
.quick-conversions {
  margin: 30px 0;
}

.quick-conversions h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 16px;
}

/* Formula Display */
.formula-box {
  background: #f9f9f9;
  border-left: 4px solid #2680d9;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.formula-box h4 {
  margin: 0 0 10px 0;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.formula-box .formula {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  color: #2680d9;
  font-weight: 600;
}

/* Swap Button */
.swap-button {
  background: transparent;
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 20px;
  color: #666;
}

.swap-button:hover {
  border-color: #2680d9;
  color: #2680d9;
  transform: rotate(180deg);
}

/* Input Row for Converters */
.converter-input-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.converter-input-row .input-group {
  flex: 1;
}

/* Converter Form Grid - 3 column layout like reference */
.converter-form-grid {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.converter-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-align: center;
  padding: 10px 0;
}

.converter-unit-name {
  font-size: 16px;
  font-weight: 600;
  color: #2680d9;
  padding: 10px;
  display: flex;
  align-items: center;
}

/* Converter Buttons */
.converter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn-convert {
  background: #2680d9;
  flex: 1;
  max-width: 240px;
}

.btn-convert:hover {
  background: #1e6bbf;
}

.btn-clear {
  background: #6c757d;
  color: #fff;
  flex: 1;
  max-width: 240px;
}

.btn-clear:hover {
  background: #5a6268;
}

/* Converter Form Row - Like Reference */
.converter-form-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.converter-unit-label {
  font-size: 16px;
  font-weight: 600;
  color: #2680d9;
  text-align: right;
  padding-right: 10px;
}

.converter-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.converter-input:focus {
  outline: none;
  border-color: #2680d9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .converter-box {
    padding: 20px;
  }
  
  .converter-equation {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .to-value {
    font-size: 2rem;
  }
  
  .conversion-table {
    font-size: 14px;
  }
  
  .conversion-table th,
  .conversion-table td {
    padding: 8px;
  }
  
  .converter-input-row {
    flex-direction: column;
  }
}

/* Content Box */
.content-box {
  margin: 30px 0;
}

.content-box h2 {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.content-box h3 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 20px 0 12px 0;
  font-weight: 600;
}

.content-box p {
  margin-bottom: 16px;
  color: #555;
  line-height: 1.6;
}

.content-box ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-box li {
  margin-bottom: 8px;
  color: #555;
  line-height: 1.6;
}

/* Conversion Grid (sidebar-link style) */
.conversion-grid {
  display: block;
  margin: 20px 0;
}

.conv-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.conv-item:last-child {
  border-bottom: none;
}

.conv-item:hover {
  background-color: #f8f9fa;
}

.conv-item a {
  display: block;
  text-decoration: none;
  color: #2680d9;
  font-weight: 600;
}

.conv-item a:hover {
  text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #2680d9;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #999;
}

/* Description */
.desc {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}
