/* Info Banner */
.info-banner {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  margin-bottom: 24px;
  align-items: center;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.info-content p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.95rem;
}

/* Conversion Tabs */
.conversion-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #7b8bad;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #667eea;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* Converter Container */
.converter-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin-bottom: 30px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .converter-container {
    grid-template-columns: 1fr;
  }

  .convert-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}

/* Editor Panel */
.editor-panel {
  display: flex;
  flex-direction: column;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.panel-title {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.btn-copy {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  transition: transform 0.2s;
}

.btn-copy:hover {
  transform: scale(1.1);
}

.btn-copy:active {
  transform: scale(0.95);
}

.code-editor {
  flex: 1;
  min-height: 300px;
  padding: 16px;
  border: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  background: #fafbfc;
  color: #2c3e50;
}

.code-editor:focus {
  outline: none;
  background: #ffffff;
}

.code-editor::placeholder {
  color: #7b8bad;
  opacity: 0.6;
}

.editor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-size: 0.85rem;
  color: #7b8bad;
}

/* Convert Arrow */
.convert-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

#convertBtn {
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Savings Badge */
.savings-badge {
  padding: 6px 12px;
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.savings-badge.hidden {
  display: none;
}

/* Examples Section */
.examples-section {
  margin-top: 30px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
}

.examples-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 16px;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.example-btn {
  padding: 12px 20px;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.example-btn:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Error/Success Messages */
.message-box {
  padding: 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.message-box.error {
  background: #fadbd8;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.message-box.success {
  background: #d4edda;
  border-left: 4px solid #27ae60;
  color: #196f3d;
}

/* Token Stats Highlight */
#inputStats, #outputStats {
  font-family: 'Courier New', monospace;
  font-weight: 600;
}
