body {
  font-family: 'Inter', sans-serif;
}

/* Header Card Enhancement */
.header-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

/* Smooth Fade Up Animations */
.step-fade-out {
  opacity: 0;
  transform: translateY(-25px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: smoothFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes smoothFadeUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  60% {
    opacity: 0.8;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced fade for step content */
#stepContent {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step indicator smooth transition */
#stepIndicator {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card smooth entrance */
.card-enhanced {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button smooth hover */
.btn-primary, .btn-secondary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection cards smooth animation */
.selection-card, .drum-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered entrance animation for cards */
.animate-entrance {
  opacity: 0;
  transform: translateY(25px);
  -webkit-transform: translateY(25px);
  -moz-transform: translateY(25px);
  -ms-transform: translateY(25px);
  animation: entranceFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  -webkit-animation: entranceFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
  -moz-animation: entranceFadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-entrance:nth-child(1) { animation-delay: 0.05s; }
.animate-entrance:nth-child(2) { animation-delay: 0.1s; }
.animate-entrance:nth-child(3) { animation-delay: 0.15s; }
.animate-entrance:nth-child(4) { animation-delay: 0.2s; }
.animate-entrance:nth-child(5) { animation-delay: 0.25s; }
.animate-entrance:nth-child(6) { animation-delay: 0.3s; }
.animate-entrance:nth-child(7) { animation-delay: 0.35s; }
.animate-entrance:nth-child(8) { animation-delay: 0.4s; }
.animate-entrance:nth-child(9) { animation-delay: 0.45s; }
.animate-entrance:nth-child(10) { animation-delay: 0.5s; }

@keyframes entranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
    -webkit-transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
  }
}

@-webkit-keyframes entranceFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px);
    -webkit-transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
  }
}



/* Color selection smooth entrance */
.color-selection-card {
  opacity: 0;
  transform: translateY(25px) scale(0.95);
  animation: colorFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.color-selection-card:nth-child(1) { animation-delay: 0.1s; }
.color-selection-card:nth-child(2) { animation-delay: 0.15s; }
.color-selection-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes colorFadeUp {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Card Enhancements */
.card-enhanced {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* Profile/Drum Selection Cards */
.selection-card {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.selection-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.selection-card:hover::before {
  left: 100%;
}

.selection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.3);
}

.selection-card.selected {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: #1e40af;
  box-shadow: 0 20px 35px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

/* Drum Selection Cards */
.drum-card {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drum-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.3);
}

.drum-card.selected {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: #047857;
  box-shadow: 0 20px 35px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

/* Input Fields Enhancement */
.input-enhanced {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.input-enhanced:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

/* Lampu status Enhancement */
.sensor-light {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #333;
  margin: 0 auto 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  position: relative;
}

.sensor-light::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

.sensor-red { 
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.6);
}
.sensor-yellow { 
  background: linear-gradient(135deg, #eab308 0%, #d97706 100%);
  box-shadow: 0 0 30px rgba(234, 179, 8, 0.6);
}
.sensor-green { 
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

/* Step indicator Enhancement */
.step {
  padding: 12px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #6b7280;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  transform: translateY(-3px);
  border-color: #1d4ed8;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Modal Enhancement */
.modal-enhanced {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Table Enhancement */
.table-enhanced {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.table-enhanced thead {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.table-enhanced tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.5);
}

.table-enhanced tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
  transition: all 0.2s ease;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

.bounce-in {
  animation: bounceIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    transform: translateY(30px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

@keyframes bounceIn {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px);
  }
  70% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Input Card Hover Effect */
.input-card {
  transition: all 0.3s ease;
}

.input-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Color Selection Card */
.color-selection-card {
  transition: all 0.3s ease;
}

.color-selection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.loading-dots {
  display: inline-block;
}

.loading-dots::after {
  content: '';
  animation: dots 2s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* ==================== NEW UI STYLES ==================== */
/* Meal Time Selection Cards */
.meal-time-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.meal-time-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.meal-time-card::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;
}

.meal-time-card:hover::before {
  left: 100%;
}

/* Kambing Selection Cards */
.kambing-select-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.kambing-select-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.kambing-select-card::before {
  content: '';
  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.4s;
}

.kambing-select-card:hover::before {
  left: 100%;
}

/* Pulse Animation for Selected Items */
.ring-4 {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4);
  }
}

/* Step Indicator Enhancement */
.step {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 2px solid transparent;
}

.step.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  border: 2px solid rgba(59, 130, 246, 0.3);
}

/* Hover Scale Enhancement */
.hover\:scale-102:hover {
  transform: scale(1.02);
}

/* Status Selection Enhancement */
.status-selected {
  border: 4px solid #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: scale(1.05);
}

.status-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #d1d5db;
}

.status-card:hover {
  border-color: #9ca3af;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}