/* Custom styles for Biology Virtual Lab */

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

/* Custom gradient backgrounds */
.gradient-bg-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Receptor card hover effects */
.receptor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.receptor-card.active {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Experiment area styles */
.experiment-area {
  position: relative;
  background: #f8fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.experiment-area.active {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Virtual skin surface for touch experiments */
.skin-surface {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #fef7cd 0%, #fbbf24 100%);
  border-radius: 15px;
  position: relative;
  cursor: crosshair;
  border: 3px solid #d97706;
  margin: 0 auto;
}

.skin-surface::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #f59e0b, #d97706);
  border-radius: 18px;
  z-index: -1;
  opacity: 0.3;
}

.touch-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: pulse 1s infinite;
  cursor: pointer;
}

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

/* Temperature zones */
.temp-zone {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.temp-zone.hot {
  background: radial-gradient(circle, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.temp-zone.cold {
  background: radial-gradient(circle, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.temp-zone.warm {
  background: radial-gradient(circle, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.temp-zone.cool {
  background: radial-gradient(circle, #06b6d4 0%, #0891b2 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Pressure simulation */
.pressure-meter {
  width: 200px;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.pressure-fill {
  height: 100%;
  background: linear-gradient(to right, #10b981 0%, #059669 50%, #dc2626 100%);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

/* Virtual tools */
.virtual-tool {
  display: inline-block;
  padding: 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  margin: 0.5rem;
  text-align: center;
  min-width: 100px;
}

.virtual-tool:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.virtual-tool.selected {
  border-color: #2563eb;
  background: #dbeafe;
}

/* Results display */
.result-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.result-box.warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
}

.result-box.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-color: #ef4444;
}

/* Animation for successful interactions */
.success-animation {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
    background-color: inherit;
  }
  50% {
    transform: scale(1.05);
    background-color: #dcfce7;
  }
  100% {
    transform: scale(1);
    background-color: inherit;
  }
}

/* Protocol form styles */
.protocol-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.form-section h3 {
  color: #1e40af;
  border-bottom: 2px solid #3b82f6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Custom input styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Progress indicators */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-weight: bold;
  margin-right: 0.5rem;
}

.step-indicator.active {
  background: #3b82f6;
  color: white;
}

.step-indicator.completed {
  background: #10b981;
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .skin-surface {
    width: 250px;
    height: 250px;
  }
  
  .temp-zone {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }
  
  .virtual-tool {
    min-width: 80px;
    padding: 0.75rem;
  }
}

/* Loading animation */
.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print styles for protocol */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .protocol-form {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}