/* Base animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.3; }
}
@keyframes slowFade {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Status card */
.statusProduct {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  list-style: none;
}
.statusProduct:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Status colour borders */
.statusProduct[data-status="Online"],
.statusProduct[data-status="Undetected"] { border-left-color: #00ff00; }
.statusProduct[data-status="Offline"],
.statusProduct[data-status="Detected"] { border-left-color: #ff0000; }
.statusProduct[data-status="Updating"] { border-left-color: #ffa500; }
.statusProduct[data-status="Maintenance"] { border-left-color: #ffff00; }

/* Groups */
.statusGroup {
  background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(20,20,20,0.9) 100%);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.statusGroup__content { padding: 0; margin: 0; }

/* Tab content */
.status-tabContent { display: none; animation: fadeIn 0.4s ease; }
.status-tabContent.is-active { display: block; }

/* Tab controls container */
.statusPageControls {
  margin-bottom: 16px;
}

.status-page__controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}

/* Tab buttons */
.status-tabButton {
  padding: 8px 20px;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  position: relative;
}
.status-tabButton:after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: #E50914;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.status-tabButton:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.status-tabButton:hover:after,
.status-tabButton.is-active:after { width: 100%; }
.status-tabButton.is-active {
  background: rgba(229, 9, 20, 0.15);
  border-color: #E50914;
  color: #fff;
}

/* Purchase button */
.statusButton {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.statusButton:before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.statusButton:hover:before { width: 300px; height: 300px; }
.statusButton:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(229,9,20,0.4);
}

/* Search & filter bar */
.statusPage__searchFilter {
  background: rgba(30,30,30,0.95);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.statusPage__searchInput {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}
.statusPage__searchInput:focus {
  outline: none;
  border-color: #E50914;
  box-shadow: 0 0 10px rgba(229,9,20,0.3);
}
.quickFilter__btn {
  padding: 8px 16px;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
}
.quickFilter__btn:hover,
.quickFilter__btn.active {
  background: #E50914;
  border-color: #E50914;
  transform: translateY(-2px);
}

/* Notification */
.statusPage__notification {
  position: fixed;
  top: 20px; right: 20px;
  background: #E50914;
  color: #fff;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(229,9,20,0.5);
  animation: slideIn 0.4s ease;
  z-index: 9999;
  display: none;
}
.statusPage__notification.show { display: block; }

/* Last updated */
.statusPage__lastUpdated {
  text-align: right;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  margin-top: 10px;
  font-style: italic;
}

/* Loading shimmer */
.statusProduct.loading { pointer-events: none; opacity: 0.6; }
.statusProduct.loading::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: shimmer 1.5s infinite;
}

/* Pulsating dot */
.indicator {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  position: relative;
  margin-right: 6px;
}
.pulsating {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .statusPage__searchFilter { flex-direction: column; }
  .statusPage__searchInput { width: 100%; }
  .statusProduct:hover { transform: none; }
}