:root {
  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-hover: #f9fafb;
  --bg-active: #f3f4f6;
  
  /* Text Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  
  /* Borders */
  --border-primary: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-light: #eff6ff;
  --accent-gray: #6b7280;
  
  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-xs: 12px;
  --font-sm: 14px;
  --font-base: 16px;
  --font-lg: 18px;
  --font-xl: 20px;
  --font-2xl: 24px;
  --font-3xl: 32px;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Legacy variables for backward compatibility during transition */
  --primary-green: #6b7280;
  --primary-rainbow: #3b82f6;
  --white: #ffffff;
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --border-gray: #e5e7eb;
  --card-bg: #ffffff;
  --light-gray-1: #f9fafb;
  --light-gray-2: #f3f4f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

.main-container {
  background: var(--bg-secondary);
}

.header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent-blue);
  font-weight: var(--font-semibold);
  font-size: var(--font-xl);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: var(--font-bold);
  font-size: var(--font-base);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-menu a.active {
  background: var(--accent-blue);
  color: var(--white);
}

/* User Guides Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.2s ease;
  margin-left: 2px;
  display: inline-block;
}

.nav-dropdown.active .nav-dropdown-toggle::after,
.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s ease;
  z-index: 1000;
  list-style: none;
  padding: 8px;
}

.nav-dropdown.active .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-dropdown-menu li {
  margin: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 6px;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  border-radius: 8px;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto;
}

.hamburger-menu:hover {
  background: var(--bg-hover);
}

.hamburger-menu span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.2s ease;
  transform-origin: center;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  background: var(--accent-blue);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  background: var(--accent-blue);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
}

.mobile-nav-menu.active {
  transform: translateX(0);
}

.mobile-nav-menu ul {
  list-style: none;
  padding: 12px 0;
  margin: 0;
}

.mobile-nav-menu li {
  border-bottom: 1px solid var(--border-primary);
}

.mobile-nav-menu li:last-child {
  border-bottom: none;
}

.mobile-nav-menu a,
.mobile-nav-menu .nav-dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .nav-dropdown-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mobile-nav-menu a.active {
  background: var(--accent-blue);
  color: var(--white);
}

.mobile-nav-menu .nav-dropdown-menu {
  position: static;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid var(--border-primary);
  background: var(--bg-secondary);
  margin: 0;
  padding: 8px 0;
  border-radius: 0;
  min-width: auto;
}

.mobile-nav-menu .nav-dropdown.active .nav-dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
  position: relative;
  overflow-x: hidden;
}

.card {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h1 {
  font-size: var(--font-2xl);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.card h2 {
  font-size: var(--font-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.card h3 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.card p {
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: help;
  vertical-align: middle;
  color: var(--accent-blue);
  transition: all 0.2s ease;
  width: 16px;
  height: 16px;
}

.info-icon:hover {
  color: var(--accent-blue-hover);
  transform: scale(1.1);
}

.info-icon svg {
  width: 100%;
  height: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--font-base);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.form-columns {
  display: flex;
  gap: 5px;
}

.form-column-left,
.form-column-right {
  flex: 1;
}

.button {
  padding: 10px 20px;
  border: 1px solid var(--border-primary);
  border-radius: 6px;
  font-size: var(--font-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary {
  background: var(--accent-blue);
  color: var(--white);
  border-color: var(--accent-blue);
}

.button-primary:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}

.button-primary:disabled {
  background: var(--text-tertiary);
  border-color: var(--text-tertiary);
  cursor: not-allowed;
}

.button-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.button-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-primary);
}

.link-display {
  background: rgba(255, 255, 255, 0.4);
  padding: var(--space-md);
  border-radius: 6px;
  margin: var(--space-md) 0;
  border: 1px solid var(--border-primary);
}

.link-display code {
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.copy-button {
  margin-left: 12px;
  padding: 6px 12px;
  font-size: 14px;
}

.waiver-container {
  max-height: 400px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 6px;
  margin: var(--space-md) 0;
  border: 1px solid var(--border-primary);
}

.waiver-container h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  font-weight: var(--font-semibold);
}

.waiver-container p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  color: var(--text-secondary);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  cursor: pointer;
  line-height: 1.6;
  color: var(--text-primary);
}

.signup-list {
  list-style: none;
  margin-top: 24px;
}

.signup-item {
  background: rgba(255, 255, 255, 0.4);
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border-primary);
  color: var(--text-secondary);
  font-size: var(--font-sm);
  line-height: 1.5;
}

.signup-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.signup-item-main {
  flex: 1;
}

.phone-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

.phone-link:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

.delete-signup-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(228, 3, 3, 0.1);
  color: #e40303;
  border-color: #e40303;
}

.delete-signup-btn:hover {
  background: rgba(228, 3, 3, 0.2);
  color: #e40303;
}

.run-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.run-item {
  background: rgba(255, 255, 255, 0.4);
  padding: var(--space-lg);
  border-radius: 6px;
  border: 1px solid var(--border-primary);
}

.run-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.run-item-actions {
  display: flex;
  gap: 8px;
}

.run-item-actions button {
  padding: 8px 16px;
  font-size: 14px;
}

.run-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.run-meta-item {
  color: var(--text-secondary);
  font-size: var(--font-sm);
}

.run-meta-item strong {
  color: var(--accent-blue);
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: var(--font-semibold);
}

/* Compact List Styles */
.compact-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(229, 231, 235, 0.5);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  margin-top: var(--space-lg);
}

.list-item {
  background: rgba(255, 255, 255, 0.4);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 2fr 1.5fr 120px 100px auto;
  gap: var(--space-md);
  align-items: center;
  font-size: var(--font-sm);
  transition: background 0.2s ease;
  cursor: pointer;
  position: relative;
}

.list-item:hover {
  background: var(--bg-hover);
}

.list-item.expanded {
  background: var(--bg-hover);
}

.list-item-location {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.list-item-pacer {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  font-weight: var(--font-normal);
  display: block;
  margin-top: 2px;
}

.list-item-date {
  color: var(--text-secondary);
}

.list-item-signups {
  color: var(--text-secondary);
  text-align: center;
}

.list-item-status {
  display: flex;
  justify-content: center;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: var(--font-xs);
  font-weight: var(--font-semibold);
}

.status-open {
  background: var(--bg-active);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.status-full {
  background: rgba(228, 3, 3, 0.1);
  color: #e40303;
}

.list-item-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.list-item-actions button {
  padding: 6px 10px;
  font-size: 12px;
}

.button-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 12px;
}

.dropdown-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.list-item-dropdown {
  grid-column: 1 / -1;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-primary);
  margin-top: var(--space-sm);
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
  }
}

.dropdown-content {
  padding: 12px 0;
}

.list-item-details {
  grid-column: 1 / -1;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-primary);
  margin-top: var(--space-sm);
}

.message {
  padding: var(--space-md);
  border-radius: 6px;
  margin: var(--space-md) 0;
}

.message-success {
  background: var(--accent-blue-light);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}

.message-error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #dc2626;
  color: #dc2626;
}

.location-map {
  height: 400px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-primary);
  overflow: hidden;
  background: var(--bg-primary);
}

.contact-link {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

.collapsible-section {
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.collapsible-toggle {
  width: 100%;
  padding: var(--space-md) 20px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-bottom: 1px solid var(--border-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  transition: background 0.2s ease;
  font-family: inherit;
}

.collapsible-toggle:hover {
  background: var(--bg-hover);
}

.collapsible-toggle span:first-child {
  color: var(--text-primary);
}

.collapsible-icon {
  transition: transform 0.2s ease;
  font-size: var(--font-sm);
  color: var(--text-secondary);
  display: inline-block;
  font-weight: var(--font-medium);
}

.collapsible-icon.collapsed {
  transform: rotate(0deg);
}

.collapsible-icon.expanded {
  transform: rotate(90deg);
}

.collapsible-content {
  padding: var(--space-lg);
  display: block;
  transition: max-height 0.2s ease, padding 0.2s ease;
  background: rgba(255, 255, 255, 0.3);
}

.collapsible-content[style*="display: none"] {
  max-height: 0;
  padding: 0 var(--space-lg);
  overflow: hidden;
}

@media (max-width: 768px) {
  .main-container {
    padding: 24px 16px;
  }

  .card {
    padding: 24px;
  }

  .run-item-header {
    flex-direction: column;
    gap: 12px;
  }

  .run-item-actions {
    width: 100%;
    flex-direction: column;
  }

  .run-item-actions button {
    width: 100%;
  }

  .location-map {
    height: 300px;
  }

  .form-columns {
    flex-direction: column;
  }

  .list-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .list-item > div {
    width: 100%;
  }

  .list-item-location {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .list-item-date::before {
    content: "Time: ";
    font-weight: 600;
    color: var(--text-dark);
  }

  .list-item-signups::before {
    content: "Signups: ";
    font-weight: 600;
    color: var(--text-dark);
  }

  .list-item-signups {
    text-align: left;
  }

  .list-item-status {
    justify-content: flex-start;
  }

  .list-item-actions {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-primary);
    justify-content: stretch;
    flex-direction: column;
  }

  .list-item-actions button {
    flex: 1;
    width: 100%;
  }

  .list-item-dropdown {
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
  }

  .dropdown-content {
    padding: var(--space-sm) 0;
  }

  .signup-item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .delete-signup-btn {
    width: 100%;
    margin-top: var(--space-sm);
  }

  /* Hamburger menu on mobile */
  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .mobile-nav-menu {
    display: block;
  }

  /* Hide or reduce background shapes on mobile for better performance and readability */
  .abstract-shape {
    opacity: 0.1;
  }

  .shape-1 {
    width: 400px;
    height: 250px;
    top: 5%;
    right: -10%;
  }

  .shape-2 {
    width: 150px;
    height: 400px;
    bottom: 5%;
    left: -5%;
  }

  .shape-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
  }
}

/* Abstract Background Shapes - Erratic circular/star movement */
.abstract-shape {
  position: fixed;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: layout style paint;
}

/* Shape 1: Non-circular blobs/polygons */
.shape-1 {
  width: 700px;
  height: 400px;
  background: #00D4D4;
  top: 10%;
  right: 5%;
  animation: erraticMove1 30s ease-in-out infinite, blobMorph 8s ease-in-out infinite;
  animation-delay: 0s;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Shape 2: Morphing between circular and angular */
.shape-2 {
  width: 250px;
  height: 650px;
  background: #FF0033;
  bottom: 10%;
  left: 5%;
  animation: erraticMove2 30s ease-in-out infinite, morphShape 30s ease-in-out infinite;
  animation-delay: 2s;
  border-radius: 50%;
}

/* Shape 3: Particle-like effects - broken into separate pieces */
.shape-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: 15%;
  animation: erraticMove3 20s ease-in-out infinite, particleMain 20s ease-in-out infinite;
  animation-delay: 4s;
  background: #FFD700;
  opacity: 0.25;
  border-radius: 50%;
}

.shape-3::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: #FFA500;
  opacity: 0.2;
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: translate(-600px, -500px);
  animation: erraticMove3 20s ease-in-out infinite, particleBreak1 20s ease-in-out infinite;
  animation-delay: 4.2s;
}

.shape-3::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: #FFE44D;
  opacity: 0.2;
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: translate(550px, 500px);
  animation: erraticMove3 20s ease-in-out infinite, particleBreak2 20s ease-in-out infinite;
  animation-delay: 4.5s;
}

/* Erratic circular/star movement for shape 1 */
@keyframes erraticMove1 {
  0% { 
    transform: translate(0, 0) rotate(0deg);
  }
  20% { 
    transform: translate(400px, -300px) rotate(90deg);
  }
  40% { 
    transform: translate(600px, 200px) rotate(180deg);
  }
  60% { 
    transform: translate(200px, 500px) rotate(270deg);
  }
  80% { 
    transform: translate(-300px, 100px) rotate(360deg);
  }
  100% { 
    transform: translate(0, 0) rotate(360deg);
  }
}

/* Erratic circular/star movement for shape 2 */
@keyframes erraticMove2 {
  0% { 
    transform: translate(0, 0) rotate(0deg);
  }
  25% { 
    transform: translate(-500px, -400px) rotate(-90deg);
  }
  50% { 
    transform: translate(-200px, 600px) rotate(-180deg);
  }
  75% { 
    transform: translate(400px, -200px) rotate(-270deg);
  }
  100% { 
    transform: translate(0, 0) rotate(-360deg);
  }
}

/* Erratic circular/star movement for shape 3 */
@keyframes erraticMove3 {
  0% { 
    transform: translate(0, 0) rotate(0deg);
  }
  15% { 
    transform: translate(300px, 400px) rotate(120deg);
  }
  30% { 
    transform: translate(-400px, 300px) rotate(240deg);
  }
  45% { 
    transform: translate(500px, -300px) rotate(360deg);
  }
  60% { 
    transform: translate(-200px, -500px) rotate(480deg);
  }
  75% { 
    transform: translate(300px, 200px) rotate(600deg);
  }
  90% { 
    transform: translate(-100px, 400px) rotate(720deg);
  }
  100% { 
    transform: translate(0, 0) rotate(720deg);
  }
}

/* Shape 1: Blob morphing animation */
@keyframes blobMorph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  }
  25% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
  }
  50% {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }
  75% {
    border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
  }
}

/* Shape 2: Morphing between circular and angular */
@keyframes morphShape {
  0%, 100% {
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
  }
  25% {
    border-radius: 25%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }
  50% {
    border-radius: 0%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  }
  75% {
    border-radius: 15%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  }
}

/* Shape 3: Broken particle movement - pieces separated and flowing */
@keyframes particleMain {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(300px, -250px) scale(1.3);
  }
  50% {
    transform: translate(-250px, 350px) scale(0.7);
  }
  75% {
    transform: translate(350px, 200px) scale(1.2);
  }
}

@keyframes particleBreak1 {
  0%, 100% {
    transform: translate(-600px, -500px) scale(1);
  }
  20% {
    transform: translate(200px, -600px) scale(1.5);
  }
  40% {
    transform: translate(500px, 200px) scale(0.6);
  }
  60% {
    transform: translate(-300px, 400px) scale(1.3);
  }
  80% {
    transform: translate(-500px, -200px) scale(0.8);
  }
}

@keyframes particleBreak2 {
  0%, 100% {
    transform: translate(550px, 500px) scale(1);
  }
  25% {
    transform: translate(-450px, 400px) scale(0.7);
  }
  50% {
    transform: translate(400px, -450px) scale(1.6);
  }
  75% {
    transform: translate(-350px, -350px) scale(0.5);
  }
}

/* Ensure main content is above background shapes */
.main-container {
  position: relative;
  z-index: 10;
}

.card {
  position: relative;
  z-index: 10;
}

/* Make table elements semi-transparent */
table {
  background: rgba(255, 255, 255, 0.3);
}

thead tr {
  background: rgba(249, 250, 251, 0.4) !important;
}

tbody tr {
  background: rgba(255, 255, 255, 0.3);
}

tbody tr:hover {
  background: rgba(249, 250, 251, 0.5);
}

td, th {
  background: transparent;
}

