/* Omnifeed.css (renamed from CollectionsFeed.css) */

/* Activity Chart Styles */
.activity-chart-container {
  background-color: var(--navbar-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.dark-mode .activity-chart-container {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.activity-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.activity-chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--button-bg);
  margin: 0;
}

.activity-chart-loading {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Page Title Styles */
.page-title {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.page-title h1 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--button-bg);
  font-weight: 700;
}

.collections-feed-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
  font-family: 'articulat-cf', sans-serif;
  position: relative;
  min-height: 80vh;
}

.search-container.fade-in {
  display: inline;
}

.search-container {
  display: inline;
}

/* Alt Card Style (matching Alt Text Rating Tool) */
.alt-card {
  background-color: var(--post-background-color);
  max-width: 95%;
  margin: 30px auto;
  text-align: center;
  border: 5px solid var(--card-border);
  border-radius: 12px;
  box-shadow: none;
  padding: 20px 30px 30px;
  background-color: var(--navbar-bg);
}

body.dark-mode .alt-card {
  border-color: #444;
}

/* Omnifeed Card Styles */
.omni-card {
  max-width: 450px;
  margin: 30px auto 20px;
}

.omni-card h1 {
  font-size: 1.6em;
  margin-top: 0px;
  text-align: center;
  margin-bottom: 10px;
  color: var(--button-bg);
}

.omni-card p {
  margin-top: 0px;
  font-size: 0.9em;
  margin-bottom: 25px;
}

.omni-info-card {
  margin-top: 30px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 15px;
  text-align: left;
}

.omni-info-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text);
}

.omni-info-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}

body.dark-mode .omni-info-card {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Search Bar Styles */
.collections-feed-container .search-bar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.collections-feed-container .search-bar input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--button-bg);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.collections-feed-container .search-bar input:focus {
  outline: none;
  border-color: #004a99;
}

/* Action Row and Button Styles */
.action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.analyze-button {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 120px;
  margin: 0;
}

.analyze-button:hover {
  background-color: #004F84;
}

@media (max-width: 500px) {
  .omni-card {
    padding: 20px 15px;
  }
  
  .analyze-button {
    width: 100%;
    padding: 12px 20px;
  }
}

.omni-chart-container {
  position: relative;
}
  
  /* User Header Styles */
  .user-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
  }
  
  .user-header h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--button-bg);
  }
  
  .user-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 5px 0 0;
    color: var(--text);
    opacity: 0.8;
  }
  
  .user-did, 
  .user-endpoint {
    font-size: 0.8rem;
    margin: 3px 0 0;
    color: var(--text);
    opacity: 0.6;
    word-break: break-all;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  
  .copy-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    color: var(--text);
    opacity: 0.6;
    transition: all 0.2s ease;
  }
  
  .copy-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
  }
  
  .dark-mode .copy-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  .copy-button:active {
    transform: scale(0.95);
  }
  
  .copy-button.copied {
    color: #4CAF50;
    opacity: 1;
    position: relative;
  }
  
  .copy-button.copied svg {
    stroke: #4CAF50;
  }
  
  .copy-button.copied::after {
    content: "Copied!";
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--button-bg);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.3s ease;
  }
  
  @keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
  
  /* Feed Controls Styles */
  .feed-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    background-color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
  }
  
  .filter-container {
    flex: 1;
    position: relative;
  }
  
  .filter-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s;
  }
  
  .filter-dropdown-toggle:hover {
    border-color: var(--button-bg);
  }
  
  .filter-dropdown-toggle span {
    font-size: 1rem;
    color: var(--text);
  }
  
  .filter-dropdown-toggle .arrow {
    transition: transform 0.2s;
  }
  
  .filter-dropdown-toggle .arrow.open {
    transform: rotate(180deg);
  }
  
  .filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 10;
    background-color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    opacity: 0;
    visibility: hidden;
  }
  
  .filter-dropdown-menu.open {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
  }
  
  .filter-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--card-border);
  }
  
  .filter-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .filter-close-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.7;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
  }
  
  .filter-close-mobile:hover {
    background-color: rgba(0, 0, 0, 0.05);
    opacity: 1;
  }
  
  @media (max-width: 768px) {
    .filter-close-mobile {
      display: flex;
    }
  }
  
  .filter-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text);
  }
  
  .filter-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
  }
  
  @media (max-width: 480px) {
    .filter-actions {
      justify-content: space-between;
    }
  }
  
  .select-all-button,
  .deselect-all-button {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: var(--button-bg);
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s;
  }
  
  .select-all-button:hover,
  .deselect-all-button:hover {
    text-decoration: underline;
  }
  
  .select-all-button:disabled,
  .deselect-all-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
  }
  
  .collections-filter {
    max-height: 240px;
    overflow-y: auto;
    padding: 0;
  }
  
  .collection-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
  }
  
  .collection-item:last-child {
    border-bottom: none;
  }
  
  .collection-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  .collection-item.selected {
    background-color: rgba(var(--button-bg-rgb), 0.1);
  }
  
  .collection-item-name {
    font-size: 0.95rem;
    color: var(--text);
    flex-grow: 1;
  }
  
  .collection-item-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--button-bg);
  }
  
  .filter-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    background-color: transparent;
    display: none;
  }
  
  .filter-dropdown-backdrop.open {
    display: block;
  }
  
  .dark-mode .filter-dropdown-toggle {
    background-color: var(--navbar-bg);
  }
  
  .dark-mode .filter-dropdown-menu {
    background-color: var(--navbar-bg);
  }
  
  .dark-mode .collection-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .dark-mode .collection-item.selected {
    background-color: rgba(var(--button-bg-rgb), 0.2);
  }
  
  .selected-collections-count {
    background-color: var(--button-bg);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
  }
  
  .feed-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 15px;
  }
  
  .toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .timestamp-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
  }
  
  .timestamp-toggle label {
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 500;
  }
  
  .timestamp-toggle input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--button-bg);
  }
  
  .timestamp-toggle span {
    cursor: help;
    font-size: 0.85rem;
    margin-left: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  
  .timestamp-toggle span:hover {
    opacity: 1;
  }
  
  /* View Toggle Switch Styles */
  .view-toggle {
    display: flex;
    align-items: center;
  }
  
  .toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    margin-right: 10px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--button-bg);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--button-bg);
  }
  
  input:checked + .slider:before {
    transform: translateX(22px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }
  
  .toggle-label {
    font-size: 0.85rem;
    color: var(--text);
    margin-left: 5px;
    font-weight: 500;
  }
  
  .refresh-button {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 15px;
  }
  
  .refresh-button:hover {
    background-color: #004F84;
  }
  
  .refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* Message Styles */
  .no-collections-message,
  .no-records-message {
    text-align: center;
    padding: 20px;
    background-color: var(--navbar-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin: 20px 0;
    color: var(--text);
  }
  
  /* Load More Button Styles */
  .load-more-container {
    text-align: center;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .records-count {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
  }
  
  .load-more-button {
    background-color: var(--navbar-bg);
    color: var(--button-bg);
    border: 1px solid var(--button-bg);
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .load-more-button:hover {
    background-color: var(--button-bg);
    color: var(--button-text);
  }
  
  .load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* Loading Container Styles */
  .loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
  }
  
  /* Error Container Styles */
  .error-container {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(255, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ff3b30;
  }
  
  .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .error-message p {
    color: #ff3b30;
    font-weight: 500;
    margin: 0;
    text-align: center;
  }
  
  .error-action-button {
    background-color: #006de0;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .error-action-button:hover {
    background-color: #0062c7;
  }
  
  .error-action-button:active {
    background-color: #0058b4;
  }
  
  /* Responsive styles */
  @media (max-width: 768px) {
    .feed-controls {
      flex-direction: column;
    }
    
    .refresh-button {
      margin-left: 0;
      margin-top: 15px;
      width: 100%;
      min-height: 44px; /* Minimum touch target height */
      font-size: 1rem;
    }
    
    .filter-dropdown-toggle {
      min-height: 44px; /* Larger touch target */
      padding: 10px 15px;
    }
    
    .filter-dropdown-menu.open {
      max-height: 80vh; /* Larger dropdown on mobile */
      position: fixed;
      top: 50%;
      left: 5%;
      right: 5%;
      transform: translateY(-50%);
      border-radius: 10px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    .collections-filter {
      max-height: calc(80vh - 60px); /* Account for header height */
    }
    
    .collection-item {
      padding: 12px 15px;
      min-height: 48px; /* Larger touch targets for mobile */
    }
    
    .collection-item-checkbox {
      width: 24px; /* Larger checkbox for touch */
      height: 24px;
      margin-right: 15px;
    }
    
    .filter-header {
      padding: 15px;
      position: sticky;
      top: 0;
      background-color: var(--navbar-bg);
      z-index: 2;
    }
    
    .select-all-button,
    .deselect-all-button {
      padding: 8px 12px;
      min-height: 40px;
      min-width: 80px;
    }
  }
  
  @media (max-width: 480px) {
    .collection-checkbox {
      margin-right: 10px;
    }
    
    .user-header h1 {
      font-size: 1.5rem;
    }
    
    .user-header h2 {
      font-size: 1rem;
    }
    
    .user-did,
    .user-endpoint {
      font-size: 0.7rem;
    }
    
    /* Extra mobile optimizations for very small screens */
    .filter-dropdown-menu.open {
      left: 0;
      right: 0;
      top: 10%;
      transform: none;
      height: 80%;
      max-height: none;
      display: flex;
      flex-direction: column;
    }
    
    .collections-filter {
      flex: 1;
      max-height: none;
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* These styles are already handled by the main styles now */
    
    .collection-item-name {
      font-size: 0.9rem;
      line-height: 1.3;
    }
  }

/* Add these new styles for the improved UI */

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.feed-description {
  margin-bottom: 20px;
  color: #666;
  font-size: 1rem;
}

.auth-warning {
  background-color: #fff4e5;
  border-left: 4px solid #ff9800;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.auth-warning p {
  margin: 0;
  color: #884400;
}

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

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.search-box button {
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
}

.search-box button:hover {
  background-color: #2980b9;
}

.search-box button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.error-message {
  background-color: #fee;
  border-left: 4px solid #e74c3c;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.error-message p {
  margin: 0 0 10px 0;
  color: #c0392b;
}

.retry-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.retry-button:hover {
  background-color: #c0392b;
}

.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

.user-info {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.user-info h2 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.user-info .handle {
  font-weight: normal;
  color: #666;
  margin-left: 8px;
  font-size: 0.9em;
}

.collections-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.time-toggle {
  display: flex;
  align-items: center;
}

.info-tooltip {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: #3498db;
  color: white;
  border-radius: 50%;
  text-align: center;
  margin-left: 8px;
  font-size: 12px;
  cursor: pointer;
}

.tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.8rem;
}

.info-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.collections-filter {
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
}

.collections-filter h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #f1f1f1;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-actions button:hover {
  background-color: #e5e5e5;
}

.filter-actions button.refresh-button {
  margin-left: auto;
  background-color: #2ecc71;
  color: white;
}

.filter-actions button.refresh-button:hover {
  background-color: #27ae60;
}

.collections-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.collection-item {
  padding: 6px 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.collection-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.collection-item input {
  margin-right: 8px;
}

.chart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-bottom: 20px;
}

.chart-container {
  margin-bottom: 20px;
}

.feed-heading {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-top: 30px;
}

.no-records-message {
  padding: 20px;
  text-align: center;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-top: 10px;
}

.no-collections-selected {
  padding: 20px;
  text-align: center;
  color: #666;
  background-color: #f9f9f9;
  border-radius: 6px;
  margin-top: 20px;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.load-more-button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.load-more-button:hover {
  background-color: #2980b9;
}

.load-more-button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Debug panel styling */
.debug-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.debug-button {
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.debug-button:hover {
  opacity: 1;
}

.debug-panel {
  position: fixed;
  bottom: 60px;
  right: 20px;
  width: 400px;
  max-height: 600px;
  overflow-y: auto;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #333;
  color: white;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.debug-header h4 {
  margin: 0;
  font-size: 14px;
}

.debug-header button {
  background: none;
  border: none;
  color: white;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}

.debug-header button:hover {
  text-decoration: underline;
}

.debug-panel pre {
  margin: 0;
  padding: 15px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Matter Loading Animation Container */
.matter-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  width: 100%;
}

/* Add animation for content fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}