/* Component-specific styles for Localized Mixin Demo */

.language-selector {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.language-buttons {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.lang-btn {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.lang-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.localized-component {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.localized-text {
  font-size: 1.1rem;
  margin: 10px 0;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #667eea;
}

.translation-table {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

.translation-table table {
  width: 100%;
  border-collapse: collapse;
}

.translation-table th,
.translation-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

.translation-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #495057;
}

.translation-table tr:hover {
  background: #f8f9fa;
}

.code-example {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  margin: 10px 0;
  overflow-x: auto;
}

.instructions {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}

.instructions h4 {
  color: #1976d2;
  margin-bottom: 10px;
}

.demo-form {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #495057;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

@media (max-width: 640px) {
  .translation-reference-section {
    display: none !important;
  }
}
