/* Modern Dark Theme Laboratory Dashboard */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Animated Background Elements */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-shapes::before,
.floating-shapes::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(168, 85, 247, 0.1), rgba(59, 130, 246, 0.1));
  animation: float 20s ease-in-out infinite;
}

.floating-shapes::before {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 10%;
  animation-delay: -10s;
}

.floating-shapes::after {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50px) rotate(180deg);
    opacity: 0.1;
  }
}

/* Glassmorphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #a855f7, #3b82f6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #9333ea, #2563eb);
}

/* Original Lab Card Design */
.lab-card {
  position: relative;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lab-card:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(138, 43, 226, 0.3);
}

/* Animated Border */
.card-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(45deg, transparent, transparent);
  z-index: 1;
}

.card-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  z-index: -1;
}

.completed-border {
  background: linear-gradient(45deg, #00ff87, #60efff, #00ff87);
  animation: borderGlow 3s ease-in-out infinite;
}

.pending-border {
  background: linear-gradient(45deg, #ff6b6b, #ffa726, #ff6b6b);
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Card Content */
.card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Lab Number Section */
.lab-number-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.lab-number {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: white;
  overflow: hidden;
}

.completed-number {
  background: linear-gradient(135deg, #00ff87, #60efff);
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.4);
}

.pending-number {
  background: linear-gradient(135deg, #ff6b6b, #ffa726);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.number-text {
  position: relative;
  z-index: 2;
}

.number-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* Lab Status */
.lab-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.completed-dot {
  background: #00ff87;
  box-shadow: 0 0 12px #00ff87;
  animation: completedPulse 1.5s ease-in-out infinite;
}

.pending-dot {
  background: #ff6b6b;
  box-shadow: 0 0 12px #ff6b6b;
  animation: pendingPulse 1.5s ease-in-out infinite;
}

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

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

.status-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

/* Lab Information */
.lab-info {
  flex: 1;
  margin-bottom: 24px;
}

.lab-header {
  margin-bottom: 16px;
}

.lab-title {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  line-height: 1.3;
}

.lab-meta {
  display: flex;
  gap: 12px;
}

.category-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cyan-category {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.2));
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.purple-category {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(168, 85, 247, 0.2));
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.lab-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Lab Details */
.lab-details {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.difficulty-badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}

.green-400 { color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.blue-400 { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.purple-400 { color: #a78bfa; background: rgba(167, 139, 250, 0.1); }
.red-400 { color: #f87171; background: rgba(248, 113, 113, 0.1); }

/* Lab Actions */
.lab-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* Custom Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lab-checkbox {
  display: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.checkbox-custom i {
  font-size: 12px;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.lab-checkbox:checked + .checkbox-label .checkbox-custom {
  background: linear-gradient(135deg, #00ff87, #60efff);
  border-color: #00ff87;
  transform: scale(1.1);
}

.lab-checkbox:checked + .checkbox-label .checkbox-custom i {
  opacity: 1;
  transform: scale(1);
}

.lab-checkbox:checked + .checkbox-label {
  color: #00ff87;
}

/* Lab Button */
.lab-button {
  position: relative;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
}

.launch-button {
  background: linear-gradient(135deg, #00ff87, #60efff);
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0, 255, 135, 0.4);
}

.launch-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 255, 135, 0.6);
}

.locked-button {
  background: linear-gradient(135deg, #374151, #4b5563);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.button-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.launch-button:hover .button-glow {
  left: 100%;
}

/* Status Badge */
.status-badge {
  position: relative;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(251, 146, 60, 0.1));
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

/* Checkbox Styling */
.custom-checkbox {
  position: relative;
  width: 24px;
  height: 24px;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-checkbox:checked {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border-color: #a855f7;
}

.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Button Animations */
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/* Statistics Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Fade-in Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Pulse Animation for Progress */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse-slow {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Icon Animations */
.icon-bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateY(0);
  }
  40%, 43% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(-5px);
  }
  90% {
    transform: translateY(-2px);
  }
}

/* Loading Animation */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid #a855f7;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .floating-shapes::before,
  .floating-shapes::after {
    display: none;
  }
  
  .experiment-card {
    margin-bottom: 16px;
  }
}

/* Focus States for Accessibility */
button:focus,
select:focus,
input:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .floating-shapes,
  nav,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .experiment-card {
    background: white;
    border: 1px solid #ccc;
    color: black;
  }
}