/* Quest Kaizen Voice Coach - Custom Styles */

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skill Matrix Styles */
.skill-matrix {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  border-left: 4px solid transparent;
  transition: all 0.2s;
}

.skill-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.skill-card.level-1 { border-left-color: #ef4444; }
.skill-card.level-2 { border-left-color: #f97316; }
.skill-card.level-3 { border-left-color: #eab308; }
.skill-card.level-4 { border-left-color: #22c55e; }
.skill-card.level-5 { border-left-color: #16a34a; }

.skill-level-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Badge Styles */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge i {
  margin-right: 0.5rem;
}

/* Training Card Styles */
.training-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.training-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.training-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.training-card.pending { border-left: 4px solid #eab308; }
.training-card.in-progress { border-left: 4px solid #3b82f6; }
.training-card.done { border-left: 4px solid #22c55e; }

/* Voice Coach Styles */
.voice-coach-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.voice-recording {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.voice-recording:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.voice-recording.recording {
  animation: pulse-recording 2s infinite;
  background: linear-gradient(45deg, #ef4444, #dc2626);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

@keyframes pulse-recording {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.voice-recording i {
  font-size: 3rem;
  color: white;
}

/* Deliverables Wizard */
.wizard-container {
  max-width: 800px;
  margin: 0 auto;
}

.wizard-step {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.wizard-step.completed {
  border-left: 4px solid #22c55e;
  background: #f0fdf4;
}

.wizard-step.current {
  border-left: 4px solid #3b82f6;
}

.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
}

.progress-step.completed::after {
  background: #22c55e;
}

.progress-step-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  position: relative;
  z-index: 1;
}

.progress-step.completed .progress-step-circle {
  background: #22c55e;
  color: white;
}

.progress-step.current .progress-step-circle {
  background: #3b82f6;
  color: white;
}

/* Gemba Observation Styles */
.gemba-capture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.capture-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: white;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.capture-button:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.capture-button i {
  font-size: 2rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.capture-button:hover i {
  color: #3b82f6;
}

/* Waste Tags */
.waste-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.waste-tag {
  padding: 0.25rem 0.75rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.waste-tag.waiting { background: #fef3c7; color: #92400e; }
.waste-tag.motion { background: #ddd6fe; color: #5b21b6; }
.waste-tag.inventory { background: #fce7f3; color: #be185d; }
.waste-tag.defects { background: #fee2e2; color: #991b1b; }
.waste-tag.overprocessing { background: #e0f2fe; color: #0c4a6e; }
.waste-tag.overproduction { background: #ecfdf5; color: #166534; }
.waste-tag.transport { background: #f3f4f6; color: #374151; }

/* Admin Dashboard */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #3b82f6;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  font-weight: 500;
}

/* Chart containers */
.chart-container {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.chart-container canvas {
  max-height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skill-matrix {
    grid-template-columns: 1fr;
  }
  
  .training-cards {
    grid-template-columns: 1fr;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .gemba-capture {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .voice-recording {
    width: 120px;
    height: 120px;
  }
  
  .voice-recording i {
    font-size: 2.5rem;
  }
}

/* Utility Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}