/* converter-style.css - Upgraded Step-Change Design */

/* CARD STYLE & WRAPPER */
.converter-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin: 15px 0 25px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.converter-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}

.unit-input-group {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.unit-input-group label {
  font-weight: 700 !important;
  color: #000066 !important;
  margin-bottom: 8px !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* INPUT WRAPPER AND STYLING */
.input-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.conv-input {
  width: 100% !important;
  padding: 14px 65px 14px 14px !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background-color: #f8fafc !important;
  color: #1e293b !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
}

.conv-input:focus {
  outline: none !important;
  border-color: #ff6600 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.15) !important;
}

.unit-badge {
  position: absolute !important;
  right: 12px !important;
  background-color: #000066 !important;
  color: #ffffff !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  pointer-events: none !important;
}

/* CIRCULAR SWAP BUTTON */
.swap-action-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 28px !important;
}

.swap-button {
  background-color: #000066 !important;
  color: #ffffff !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 4px 8px rgba(0,0,102,0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
}

.swap-button:hover {
  background-color: #ff6600 !important;
  transform: rotate(180deg) !important;
  box-shadow: 0 6px 12px rgba(255,102,0,0.25) !important;
}

/* UTILITIES AND ACTION BUTTONS */
.converter-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 20px !important;
  border-top: 1px dashed #cbd5e1 !important;
  padding-top: 16px !important;
}

.action-button {
  padding: 10px 22px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border: none !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.action-button.secondary {
  background-color: #ff6600 !important;
  color: #ffffff !important;
}

.action-button.secondary:hover {
  background-color: #e05500 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(255,102,0,0.2) !important;
}

.action-button.flat {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.action-button.flat:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

#copy-toast {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #166534 !important;
  background-color: #dcfce7 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  transition: opacity 0.3s ease !important;
}

.toast-hidden {
  opacity: 0 !important;
  display: none !important;
}

.toast-visible {
  opacity: 1 !important;
  display: inline-block !important;
}

/* ADVERTISEMENT SLOT WRAPPER */
.ad-placeholder-subtool {
  background-color: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 8px !important;
  text-align: center !important;
  margin: 15px auto !important;
  min-height: 90px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* LOOKUP REFERENCE TABLE STYLING */
.table-container {
  margin: 30px 0 !important;
}

.table-container h3 {
  color: #000066 !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
}

.table-container table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.table-container th {
  background-color: #000066 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  border-bottom: 2px solid #ff6600 !important;
}

.table-container td {
  padding: 10px 16px !important;
  border-bottom: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.table-container tr:last-child td {
  border-bottom: none !important;
}

.table-container tr:nth-child(even) {
  background-color: #f8fafc !important;
}

/* EXAMPLE SECTION - PREMIUM ENGINEERING CALLOUT */
.example-box {
  background-color: #f8fafc !important;
  border-left: 5px solid #ff6600 !important;
  border-top: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 24px !important;
  margin: 30px 0 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.01) !important;
}

.example-box h2, .example-box h3, .example-box h1 {
  color: #000066 !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  font-size: 1.25rem !important;
}

/* FAQ ACCORDION OVERRIDES */
button[onclick^="showAnswer"] {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  color: #000066 !important;
  font-weight: 700 !important;
  transition: all 0.2s ease-in-out !important;
  padding: 14px 18px !important;
  margin-top: 12px !important;
  text-align: left !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01) !important;
}

button[onclick^="showAnswer"]:hover {
  background-color: #f1f5f9 !important;
  border-color: #ff6600 !important;
  color: #ff6600 !important;
}

div[id^="qa"] {
  border-left: 4px solid #ff6600 !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  margin-bottom: 15px !important;
  border-radius: 0 0 8px 8px !important;
  padding: 16px !important;
}

/* RESPONSIVE LAYOUT BREAKPOINT */
@media (max-width: 768px) {
  .converter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  
  .swap-action-container {
    margin-top: 0 !important;
    padding: 8px 0 !important;
  }
  
  .swap-button {
    transform: rotate(90deg) !important;
    width: 100% !important;
    border-radius: 8px !important;
    height: 40px !important;
  }
  
  .swap-button:hover {
    transform: rotate(90deg) !important;
    background-color: #ff6600 !important;
  }
}