/* Override Bootstrap primary color */
:root {
  --bs-primary: rgb(247, 151, 30);
  --bs-primary-rgb: 247, 151, 30;
}

.btn-primary {
  background-color: rgb(247, 151, 30) !important;
  border-color: rgb(247, 151, 30) !important;
}

.btn-primary:hover {
  background-color: rgb(227, 131, 10) !important;
  border-color: rgb(227, 131, 10) !important;
}

.text-primary {
  color: rgb(247, 151, 30) !important;
}

.bg-primary {
  background-color: rgb(247, 151, 30) !important;
}

body {
  background: linear-gradient(180deg, #f3f7ff 0%, #f9fafb 60%, #ffffff 100%);
  color: #1f2937;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.hidden {
  display: none !important;
}

.lab-header {
  background: linear-gradient(135deg, rgb(247, 151, 30) 0%, rgb(255, 81, 47) 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 9px 10px;
  box-shadow: 0 12px 30px rgba(247, 151, 30, 0.08);
}

.lab-panel {
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lab-panel:hover {
  box-shadow: 0 10px 32px rgba(247, 151, 30, 0.1);
}

.panel-header {
  background: linear-gradient(135deg, rgb(247, 151, 30) 0%, rgb(255, 122, 47) 100%);
  color: white;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 1.1rem;
}

.lab-btn {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(247, 151, 30, 0.18);
}

.lab-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.lab-btn.btn-danger {
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.18);
}

.lab-card {
  border-radius: 16px;
  border: 1px dashed #cbd5f5;
  background: #f8fbff;
  padding: 14px 16px;
  margin-top: 18px;
}

/* Results panel styling */
#resultsPanel .p-4 {
  min-height: 400px;
}

/* Form controls */
.form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
}

.form-control:focus {
  border-color: rgb(247, 151, 30);
  box-shadow: 0 0 0 0.2rem rgba(247, 151, 30, 0.25);
}

.input-group .btn {
  border-radius: 0 10px 10px 0 !important;
}

/* Button outline styles */
.btn-outline-primary {
  border-color: rgb(247, 151, 30);
  color: rgb(247, 151, 30);
}

.btn-outline-primary:hover {
  background-color: rgb(247, 151, 30);
  border-color: rgb(247, 151, 30);
  color: white;
}

.btn-outline-secondary:hover {
  background-color: rgb(247, 151, 30);
  border-color: rgb(247, 151, 30);
  color: white;
}

/* Audio player */
#pronunciationAudio {
  border-radius: 8px;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .lab-header h2 {
    font-size: 1.5rem !important;
  }

  .lab-panel {
    margin-bottom: 1rem;
  }

  .display-4 {
    font-size: 2.5rem !important;
  }
}

/* Badge styling */
.badge {
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Alert styling */
.alert {
  border-radius: 12px;
  border-left-width: 4px;
}

.alert-info {
  border-left-color: #0dcaf0;
}

.alert-danger {
  border-left-color: #dc3545;
}

.alert-success {
  border-left-color: #198754;
}

.alert-primary {
  border-left-color: rgb(247, 151, 30);
}

/* List group */
.list-group-item {
  border-radius: 8px !important;
  margin-bottom: 4px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.list-group-flush .list-group-item:first-child {
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.list-group-flush .list-group-item:last-child {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}
