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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e8e8e8;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
}

header {
  background: rgba(20, 25, 35, 0.95);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(74, 105, 189, 0.3);
}

header h1 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(74, 105, 189, 0.5);
}

header p {
  color: #b8b8b8;
  font-size: 1.1rem;
}

nav {
  background: rgba(25, 30, 42, 0.95);
  padding: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.nav-btn {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 105, 189, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 105, 189, 0.5);
  background: linear-gradient(45deg, #5a7bd6, #4752fa);
}

.nav-btn.active {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content-section {
  display: none;
  background: rgba(25, 30, 42, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section.active {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from { 
      opacity: 0; 
      transform: translateY(30px);
  }
  to { 
      opacity: 1; 
      transform: translateY(0);
  }
}

.content-section h2 {
  color: #ffffff;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(74, 105, 189, 0.3);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.demo-card {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a69bd, #3742fa, #ff6b6b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-color: rgba(74, 105, 189, 0.3);
}

.demo-card:hover::before {
  opacity: 1;
}

.demo-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-card p {
  color: #b8b8b8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.demo-card button {
  background: linear-gradient(45deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-card button:hover {
  background: linear-gradient(45deg, #38a169, #2f855a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
}

/* Interactive Feature Styles */
.animation-box {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  margin: 15px auto;
  border-radius: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.audio-controls, .filter-controls, .game-controls, .chart-controls, .webrtc-controls, .speech-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.audio-controls label {
  color: #e8e8e8;
  font-weight: 500;
}

.audio-controls input, .audio-controls select {
  margin-left: 10px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(5px);
}

.filter-controls button, .game-controls button, .chart-controls button, 
.webrtc-controls button, .speech-controls button {
  padding: 10px 15px;
  background: rgba(74, 105, 189, 0.8);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-controls button:hover, .game-controls button:hover, 
.chart-controls button:hover, .webrtc-controls button:hover, 
.speech-controls button:hover {
  background: rgba(74, 105, 189, 1);
  transform: translateY(-2px);
}

#audio-visualizer, #image-canvas, #game-canvas, #chart-canvas {
  border: 2px solid rgba(74, 105, 189, 0.3);
  border-radius: 10px;
  margin: 15px 0;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#local-video {
  border: 2px solid rgba(74, 105, 189, 0.5);
  border-radius: 10px;
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#code-input, #speech-text, #file-content {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff88;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  resize: vertical;
  line-height: 1.4;
}

#code-input:focus, #speech-text:focus, #file-content:focus {
  outline: none;
  border-color: #4a69bd;
  box-shadow: 0 0 15px rgba(74, 105, 189, 0.3);
}

.code-output, .result-div {
  background: rgba(0, 0, 0, 0.8);
  color: #00ff88;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  min-height: 60px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.success {
  color: #68d391;
  background: rgba(26, 46, 26, 0.9);
  border-color: #38a169;
}

.error {
  color: #fc8181;
  background: rgba(45, 27, 27, 0.9);
  border-color: #e53e3e;
}

.warning {
  color: #fbb040;
  background: rgba(45, 36, 22, 0.9);
  border-color: #ed8936;
}

#game-stats, #webrtc-status, #chart-status, #frequency-display {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animation Keyframes */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slide {
  0% { transform: translateX(-50px); }
  50% { transform: translateX(50px); }
  100% { transform: translateX(-50px); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

@keyframes flip {
  from { transform: rotateY(0); }
  to { transform: rotateY(360deg); }
}

.animate-bounce { animation: bounce 2s infinite; }
.animate-rotate { animation: rotate 2s linear infinite; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-slide { animation: slide 3s infinite; }
.animate-shake { animation: shake 0.5s infinite; }
.animate-flip { animation: flip 2s infinite; }

footer {
  background: rgba(25, 30, 42, 0.95);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  color: #b8b8b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
      font-size: 2rem;
  }

  .demo-grid {
      grid-template-columns: 1fr;
  }

  nav {
      flex-direction: column;
      align-items: center;
  }

  .nav-btn {
      width: 250px;
      margin: 0.25rem 0;
  }

  .demo-card {
      padding: 1rem;
  }

  #audio-visualizer, #image-canvas, #game-canvas, #chart-canvas {
      width: 100%;
      max-width: 280px;
  }
}

/* Special Card Types */
.featured-card {
  border: 2px solid #4a69bd;
  box-shadow: 0 0 20px rgba(74, 105, 189, 0.3);
}

.mystery-card {
  border: 2px solid #8b5cf6;
  background: linear-gradient(135deg, #2d1b69, #1a0b3d);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.danger-card {
  border: 2px solid #ef4444;
  background: linear-gradient(135deg, #451a1a, #2d1111);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* 2D Game Styles */
#game2d-canvas {
  border: 3px solid #4a69bd;
  border-radius: 10px;
  background: #000;
  display: block;
  margin: 10px auto;
}

.game2d-controls {
  text-align: center;
}

.control-row {
  margin-bottom: 10px;
}

.control-instructions {
  font-size: 0.8rem;
  color: #b8b8b8;
  font-style: italic;
}

/* Mystery Interface */
.password-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.password-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #8b5cf6;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: white;
  font-family: 'Courier New', monospace;
}

.mystery-hints {
  font-size: 0.85rem;
  color: #c4b5fd;
}

.mystery-hidden {
  display: none;
}

.mystery-revealed {
  display: block;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #8b5cf6;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
  animation: mysteryReveal 2s ease-out;
}

@keyframes mysteryReveal {
  0% { opacity: 0; transform: scale(0.8) rotateY(180deg); }
  50% { opacity: 0.5; transform: scale(1.1) rotateY(90deg); }
  100% { opacity: 1; transform: scale(1) rotateY(0deg); }
}

/* Enhanced File Explorer */
.file-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(74, 105, 189, 0.3);
}

/* Validation Messages */
.validation-message {
  font-size: 0.8rem;
  margin-top: 5px;
  padding: 5px;
  border-radius: 4px;
}

.validation-message.success {
  color: #48bb78;
  background: rgba(72, 187, 120, 0.1);
  border: 1px solid rgba(72, 187, 120, 0.3);
}

.validation-message.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Template Description */
.template-description {
  font-size: 0.85rem;
  color: #b8b8b8;
  font-style: italic;
  margin-top: 5px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  min-height: 20px;
}

/* File Type Styling */
.file-item .file-type {
  font-size: 0.7rem;
  color: #888;
  margin-left: 8px;
}

.file-item.file-javascript { border-left: 3px solid #f7df1e; }
.file-item.file-html { border-left: 3px solid #e34f26; }
.file-item.file-css { border-left: 3px solid #1572b6; }
.file-item.file-json { border-left: 3px solid #000000; }
.file-item.file-markdown { border-left: 3px solid #083fa1; }
.file-item.file-image { border-left: 3px solid #4caf50; }
.file-item.file-video { border-left: 3px solid #9c27b0; }
.file-item.file-audio { border-left: 3px solid #ff5722; }
.file-item.file-archive { border-left: 3px solid #795548; }
.file-item.file-document { border-left: 3px solid #2196f3; }

/* Drag and Drop Styles */
.file-item[draggable="true"] {
  cursor: move;
}

.file-item.drag-over {
  background: rgba(74, 105, 189, 0.3) !important;
  border: 2px dashed #4a69bd;
}

.file-item.being-dragged {
  opacity: 0.5;
  transform: rotate(5deg);
}

/* Multi-select Styles */
.file-item.selected-multiple {
  background: rgba(74, 105, 189, 0.4);
  border: 1px solid #4a69bd;
}

/* Enhanced Editor Header */
.editor-header {
  background: rgba(0, 0, 0, 0.8);
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid #4a69bd;
}

.editor-header span {
  font-weight: bold;
  color: #4ecdc4;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-header span small {
  color: #888;
  font-weight: normal;
  font-size: 0.75rem;
}

/* File Size Display */
.file-size {
  font-size: 0.7rem;
  color: #888;
  margin-left: auto;
}

/* Enhanced File Tree */
.file-tree {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-y: auto;
  max-height: 400px;
}

/* File System Stats */
.file-system-stats {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #b8b8b8;
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-system-stats .stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.file-system-stats .stat-value {
  color: #4ecdc4;
  font-weight: bold;
}

.file-toolbar button {
  padding: 8px 12px;
  background: linear-gradient(45deg, #4a69bd, #5a7bd6);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.file-toolbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 105, 189, 0.4);
}

.file-toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.file-breadcrumbs {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb-item {
  color: #4ecdc4;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: #ffffff;
  text-decoration: underline;
}

.file-explorer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  min-height: 300px;
}

.file-tree {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-y: auto;
  max-height: 300px;
}

.file-item {
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.file-item:hover {
  background: rgba(74, 105, 189, 0.3);
  transform: translateX(3px);
}

.file-item.selected {
  background: rgba(74, 105, 189, 0.6);
  box-shadow: 0 2px 8px rgba(74, 105, 189, 0.3);
}

.file-item.back-button {
  background: rgba(255, 255, 255, 0.1);
  font-weight: bold;
  margin-bottom: 8px;
}

.file-item.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.file-content-editor {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.editor-header {
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-header span {
  font-weight: bold;
  color: #4ecdc4;
  font-size: 0.9rem;
}

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

.editor-actions button {
  padding: 5px 10px;
  background: rgba(74, 105, 189, 0.8);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.editor-actions button:hover {
  background: rgba(74, 105, 189, 1);
}

#virtual-file-content {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  color: #ffffff;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  min-height: 200px;
}

.file-status {
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: #b8b8b8;
  font-family: 'Courier New', monospace;
}

/* Dialog System */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.dialog {
  background: linear-gradient(135deg, #2d3748, #1a202c);
  border-radius: 15px;
  min-width: 400px;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dialog-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
}

.dialog-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dialog-content {
  padding: 20px;
  color: #ffffff;
}

.dialog-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #e8e8e8;
}

.dialog-content input,
.dialog-content select,
.dialog-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.dialog-content input:focus,
.dialog-content select:focus,
.dialog-content textarea:focus {
  outline: none;
  border-color: #4a69bd;
  box-shadow: 0 0 10px rgba(74, 105, 189, 0.3);
}

.dialog-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.dialog-buttons button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.dialog-buttons button:first-child {
  background: linear-gradient(45deg, #48bb78, #38a169);
  color: white;
}

.dialog-buttons button:last-child {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dialog-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Properties Table */
.properties-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.properties-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.properties-table td:first-child {
  width: 30%;
  color: #4ecdc4;
}

/* Search Results */
.search-options {
  margin-bottom: 15px;
}

.search-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.search-results {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 15px;
}

.search-result {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.search-result:hover {
  background: rgba(74, 105, 189, 0.3);
}

.search-path {
  color: #888;
  font-size: 0.8rem;
  margin-left: 10px;
}

/* Context Menu */
.context-menu {
  background: rgba(25, 30, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  min-width: 150px;
  backdrop-filter: blur(10px);
}

.context-menu-item {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  color: #ffffff;
  font-size: 0.9rem;
}

.context-menu-item:hover {
  background: rgba(74, 105, 189, 0.6);
}

.context-menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.context-menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

/* Messaging System */
.messaging-dialog {
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.message-history {
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  background: rgba(0, 0, 0, 0.3);
}

.message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.message-header strong {
  color: #4ecdc4;
}

.message-time {
  color: #888;
}

.message-content {
  color: #ffffff;
  line-height: 1.4;
}

.message-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.message-input-container input {
  flex: 1;
  margin-bottom: 0;
}

.message-input-container button {
  padding: 10px 20px;
  background: linear-gradient(45deg, #48bb78, #38a169);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Notification System */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  z-index: 1002;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 300px;
}

.notification-show {
  transform: translateX(0);
}

.notification-success {
  background: linear-gradient(45deg, #48bb78, #38a169);
}

.notification-error {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.notification-info {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
}

.notification-warning {
  background: linear-gradient(45deg, #f59e0b, #d97706);
}

/* Fullscreen Styles */
.fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1px 4px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.6rem;
  margin-left: 6px;
  transition: all 0.2s ease;
  line-height: 1;
  opacity: 0.7;
}

.fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

.fullscreen-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: rgba(25, 30, 42, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  overflow: auto !important;
  padding: 20px !important;
}

.fullscreen-active canvas {
  max-width: 90vw !important;
  max-height: 70vh !important;
}

/* Social Media Platform Styles */
.social-platform {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  min-height: 600px;
}

.social-header {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.user-info h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.3rem;
}

.user-info p {
  margin: 5px 0 0 0;
  color: #b8b8b8;
  font-size: 0.9rem;
}

.social-stats {
  display: flex;
  gap: 30px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ecdc4;
}

.stat-label {
  font-size: 0.8rem;
  color: #b8b8b8;
  text-transform: uppercase;
}

.post-creation {
  grid-column: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.post-creator-header {
  display: flex;
  gap: 15px;
}

.creator-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.creator-input {
  flex: 1;
}

.creator-input textarea {
  width: 100%;
  min-height: 80px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  color: white;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: border-color 0.3s ease;
}

.creator-input textarea:focus {
  border-color: #4a69bd;
  box-shadow: 0 0 10px rgba(74, 105, 189, 0.3);
}

.post-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.character-count {
  font-size: 0.8rem;
  color: #b8b8b8;
}

.post-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.emoji-btn, .hashtag-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.emoji-btn:hover, .hashtag-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.post-btn {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 105, 189, 0.4);
}

.post-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.feed-filters {
  grid-column: 1;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  border-color: #4a69bd;
}

.social-feed-container {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-post {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  animation: postSlideIn 0.5s ease-out;
}

.social-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(74, 105, 189, 0.3);
}

.user-post {
  border-left: 4px solid #4ecdc4;
  background: rgba(78, 205, 196, 0.1);
}

@keyframes postSlideIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.post-author {
  display: flex;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
}

.author-handle {
  color: #b8b8b8;
  font-size: 0.85rem;
  margin-top: 2px;
}

.menu-btn {
  background: none;
  border: none;
  color: #b8b8b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.post-content {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #e8e8e8;
  font-size: 1rem;
}

.hashtag {
  color: #4ecdc4;
  text-decoration: none;
  font-weight: 500;
}

.mention {
  color: #4a69bd;
  text-decoration: none;
  font-weight: 500;
}

.post-link {
  color: #4ecdc4;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

.reply-indicator {
  font-size: 0.85rem;
  color: #b8b8b8;
  margin-bottom: 10px;
  font-style: italic;
}

.post-engagement {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.engagement-stats {
  display: flex;
  gap: 20px;
}

.engagement-stats .stat {
  color: #b8b8b8;
  font-size: 0.85rem;
}

.post-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #b8b8b8;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.action-btn.liked {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.trending-sidebar {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trending-section, .suggested-users {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
}

.trending-section h4, .suggested-users h4 {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #e8e8e8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.trending-item:hover {
  color: #4ecdc4;
}

.trend-count {
  font-size: 0.8rem;
  color: #b8b8b8;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.suggested-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-details {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
}

.user-handle {
  color: #b8b8b8;
  font-size: 0.8rem;
}

.user-followers {
  color: #b8b8b8;
  font-size: 0.75rem;
}

.follow-btn-small {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.follow-btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 105, 189, 0.4);
}

/* Social Media Notifications */
.social-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 500;
  z-index: 1003;
  transform: translateX(400px);
  transition: transform 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-notification.notification-show {
  transform: translateX(0);
}

.social-notification.like {
  background: linear-gradient(45deg, #ef4444, #dc2626);
}

.social-notification.comment {
  background: linear-gradient(45deg, #3b82f6, #2563eb);
}

.social-notification.share {
  background: linear-gradient(45deg, #10b981, #059669);
}

.social-notification.info {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
  line-height: 1.4;
}

/* Enhanced Post Interactions */
.post-content {
  position: relative;
}

.post-content::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1);
  transition: width 0.3s ease;
}

.social-post:hover .post-content::after {
  width: 100%;
}

/* Trending Topics Enhancements */
.trending-item {
  position: relative;
  overflow: hidden;
}

.trending-item::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
  transition: left 0.5s ease;
}

.trending-item:hover::before {
  left: 100%;
}

/* User Profile Enhancements */
.user-avatar {
  position: relative;
  overflow: hidden;
}

.user-avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.suggested-user:hover .user-avatar::after,
.post-author:hover .author-avatar::after {
  transform: translateX(100%);
}

/* Enhanced Action Buttons */
.action-btn {
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.action-btn:hover::before {
  width: 200px;
  height: 200px;
}

/* Post Animation Enhancements */
@keyframes postSlideIn {
  0% {
      opacity: 0;
      transform: translateY(30px) scale(0.95);
  }
  50% {
      opacity: 0.7;
      transform: translateY(10px) scale(0.98);
  }
  100% {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

/* Character Counter Styling */
.character-count {
  transition: color 0.3s ease;
}

.character-count.warning {
  color: #f59e0b !important;
  font-weight: bold;
}

.character-count.danger {
  color: #ef4444 !important;
  font-weight: bold;
  animation: pulse 1s infinite;
}

/* Feed Filter Active States */
.filter-btn.active {
  position: relative;
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #4a69bd, #3742fa);
  border-radius: 1px;
}

/* Advanced Code Editor Styles */
.editor-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: auto;
}

.tab {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  color: #b8b8b8;
}

.tab.active {
  background: rgba(74, 105, 189, 0.6);
  color: white;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.add-tab-btn {
  background: rgba(48, 187, 120, 0.6);
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

.editor-toolbar select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
}

.editor-toolbar button {
  background: rgba(74, 105, 189, 0.6);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.editor-toolbar button:hover {
  background: rgba(74, 105, 189, 0.8);
}

.editor-main {
  display: flex;
  height: 400px;
}

.editor-side-panel {
  width: 200px;
  background: rgba(0, 0, 0, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.file-tree-header {
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

.editor-content {
  flex: 1;
  position: relative;
}

.editor-wrapper {
  display: flex;
  height: 100%;
}

.line-numbers {
  background: rgba(0, 0, 0, 0.6);
  color: #666;
  padding: 10px 8px;
  text-align: right;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  min-width: 40px;
}

#advanced-code-editor {
  flex: 1;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: none;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  resize: none;
  outline: none;
  tab-size: 4;
}

.editor-bottom-panel {
  display: flex;
  height: 150px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.output-panel, .console-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.console-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-header {
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: bold;
  font-size: 0.9rem;
}

.output-content, .console-content {
  flex: 1;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff88;
  padding: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Collaborative Canvas Styles */
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 10px;
}

.tool-group, .color-group, .action-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tool {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.tool.active {
  background: rgba(74, 105, 189, 0.6);
  border-color: #4a69bd;
}

.tool:hover {
  background: rgba(255, 255, 255, 0.2);
}

.canvas-area {
  position: relative;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

#collaboration-canvas {
  border: 2px solid rgba(74, 105, 189, 0.5);
  border-radius: 8px;
  background: white;
  cursor: crosshair;
}

#collab-cursors {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.1s ease;
}

.collab-users {
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.user-list {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.user {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.user.online {
  background: rgba(72, 187, 120, 0.3);
}

.user.offline {
  background: rgba(239, 68, 68, 0.3);
}

/* 3D Model Viewer Styles */
.model-controls {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  align-items: center;
}

.viewer-main {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px;
  background: radial-gradient(circle, #2d3748, #1a202c);
}

.viewer-info {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #b8b8b8;
}

.lighting-controls {
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Social Media Section Styles */
.social-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-card {
  background: rgba(20, 25, 35, 0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feed-card {
  grid-column: 1 / -1;
}

.post-creator {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#social-post-content {
  width: 100%;
  min-height: 80px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #e8e8e8;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

#social-post-content::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.post-creator-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.character-count {
  color: #b8b8b8;
  font-size: 12px;
}

.post-options {
  display: flex;
  gap: 8px;
  align-items: center;
}

.emoji-btn, .hashtag-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.emoji-btn:hover, .hashtag-btn:hover {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

.post-btn {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.post-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 105, 189, 0.4);
}

.feed-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.filter-btn, .generate-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 8px 15px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.filter-btn:hover, .generate-btn:hover {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

.filter-btn.active {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  border-color: #4a69bd;
}

.generate-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  border-color: #ff6b6b;
}

.social-feed {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.social-post {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.social-post:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(74, 105, 189, 0.3);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.post-author {
  font-weight: 600;
  color: #4a69bd;
}

.post-timestamp {
  font-size: 12px;
  color: #b8b8b8;
}

.post-content {
  margin: 10px 0;
  line-height: 1.5;
}

.post-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
  background: none;
  border: none;
  color: #b8b8b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  color: #4a69bd;
}

.action-btn.liked {
  color: #ff6b6b;
}

.trending-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trending-item {
  background: rgba(74, 105, 189, 0.2);
  color: #4a69bd;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.trending-item:hover {
  background: rgba(74, 105, 189, 0.4);
  color: white;
}

.suggested-users {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggested-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.suggested-user:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

.follow-btn {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  border: none;
  color: white;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.follow-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(74, 105, 189, 0.4);
}

.activity-feed {
  max-height: 200px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-text {
  font-size: 13px;
}

.activity-time {
  font-size: 11px;
  color: #b8b8b8;
}

.social-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.stat-label {
  font-size: 12px;
  color: #b8b8b8;
}

.stat-value {
  font-size: 16px;
  font-weight: 600;
  color: #4a69bd;
}

/* Crystal Blade Game Styles */
.crystal-blade-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, #0a0a0f, #1a1a2e);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.crystal-loading-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, #000, #1a1a2e);
  z-index: 10;
  transition: opacity 0.5s ease-in-out;
}

.crystal-logo {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: crystalPulse 2s infinite;
}

.crystal-loading-text {
  color: #8b5cf6;
  font-size: 1.2rem;
  font-weight: 600;
  animation: fadeInOut 2s infinite;
}

@keyframes crystalPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.crystal-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.crystal-controls {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 15px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  z-index: 5;
}

.crystal-controls button {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.crystal-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.crystal-controls label {
  color: #e8e8e8;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crystal-controls input[type="range"] {
  width: 100px;
}

.crystal-stats {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #8b5cf6;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  z-index: 5;
}

.fullscreen-active .crystal-blade-container {
  height: 90vh !important;
}

.fullscreen-active .crystal-controls {
  bottom: 30px;
  left: 30px;
  right: 30px;
}

/* Responsive design for social media */
@media (max-width: 768px) {
  .social-container {
      grid-template-columns: 1fr;
      gap: 15px;
  }

  .post-creator-actions {
      flex-direction: column;
      align-items: stretch;
  }

  .feed-controls {
      justify-content: center;
  }

  .social-stats {
      grid-template-columns: 1fr;
  }

  .crystal-blade-container {
      height: 400px;
  }

  .crystal-controls {
      flex-wrap: wrap;
      gap: 8px;
  }

  .crystal-controls label {
      font-size: 0.8rem;
  }

  .crystal-controls input[type="range"] {
      width: 80px;
  }
}

/* Game Styles */
.fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.fullscreen-btn:hover {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

/* Memory Game Styles */
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.memory-card {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  perspective: 1000px;
}

.memory-card:hover {
  border-color: #4a69bd;
  transform: scale(1.05);
}

.memory-card.flipped {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

.memory-card.matched {
  background: rgba(72, 187, 120, 0.3);
  border-color: #48bb78;
  cursor: default;
}

.card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back {
  transform: rotateY(180deg);
}

/* Tic Tac Toe Styles */
.tictactoe-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 15px 0;
  max-width: 200px;
}

.tictactoe-cell {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tictactoe-cell:hover {
  background: rgba(74, 105, 189, 0.2);
  border-color: #4a69bd;
}

.tictactoe-cell.x {
  color: #ff6b6b;
}

.tictactoe-cell.o {
  color: #4a69bd;
}

/* Quiz Game Styles */
.quiz-container {
  text-align: center;
}

.quiz-question {
  font-size: 16px;
  margin: 15px 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-option:hover {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

.quiz-start {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
}

/* Simon Says Styles */
.simon-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 15px 0;
  max-width: 200px;
}

.simon-button {
  width: 80px;
  height: 80px;
  border-radius: 15px;
  cursor: pointer;
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.simon-red {
  background: #cc0000;
}

.simon-blue {
  background: #0066cc;
}

.simon-green {
  background: #00cc00;
}

.simon-yellow {
  background: #cccc00;
}

.simon-button:hover {
  transform: scale(1.05);
  border-color: white;
}

.simon-button.active {
  transform: scale(1.1);
  filter: brightness(1.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* Game Controls Styles */
.game-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.game-controls button {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.game-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 105, 189, 0.4);
}

.game-info {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 12px;
  color: #b8b8b8;
}

.game-status {
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
  color: #4a69bd;
}

.game-reset {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  margin-top: 10px;
}

/* Advanced Features Styles */

/* Code Editor Styles */
.code-editor-container {
  background: rgba(15, 20, 30, 0.95);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-toolbar {
  background: rgba(10, 15, 25, 0.95);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-toolbar select,
.editor-toolbar button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.editor-toolbar button:hover {
  background: rgba(74, 105, 189, 0.3);
  border-color: #4a69bd;
}

.editor-status {
  margin-left: auto;
  font-size: 11px;
  color: #b8b8b8;
}

.editor-status.error {
  color: #ff6b6b;
}

.editor-main {
  display: flex;
  min-height: 300px;
}

.line-numbers {
  background: rgba(5, 10, 20, 0.95);
  color: #666;
  padding: 12px 8px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  user-select: none;
  white-space: pre;
}

.code-textarea {
  flex: 1;
  background: rgba(20, 25, 35, 0.95);
  color: #e8e8e8;
  border: none;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  resize: none;
  outline: none;
  white-space: pre;
  overflow-wrap: normal;
}

.editor-output {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.output-tabs {
  display: flex;
  background: rgba(5, 10, 20, 0.95);
}

.output-tab {
  background: none;
  border: none;
  color: #b8b8b8;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.output-tab.active {
  color: #4a69bd;
  border-bottom-color: #4a69bd;
}

.output-content {
  display: none;
  padding: 15px;
  background: rgba(15, 20, 30, 0.95);
  color: #e8e8e8;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  min-height: 120px;
  white-space: pre-wrap;
  overflow-y: auto;
}

.output-content.active {
  display: block;
}

/* Particle Engine Styles */
.particle-container {
  text-align: center;
}

#particle-canvas {
  border: 2px solid rgba(74, 105, 189, 0.3);
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.95);
}

.particle-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.control-group label {
  font-size: 12px;
  color: #b8b8b8;
  font-weight: 600;
}

.control-group select,
.control-group input[type="range"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e8e8e8;
  padding: 6px;
  border-radius: 4px;
}

.particle-btn {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.particle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 105, 189, 0.4);
}

/* 3D Visualization Styles */
.viz3d-container {
  text-align: center;
}

#webgl-canvas {
  border: 2px solid rgba(74, 105, 189, 0.3);
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.95);
}

.viz3d-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.viz-btn {
  background: linear-gradient(45deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.viz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(72, 187, 120, 0.4);
}

/* Collaboration Styles */
.collab-container {
  background: rgba(15, 20, 30, 0.95);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.collab-header {
  background: rgba(10, 15, 25, 0.95);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
}

.user-avatar.online {
  background: linear-gradient(45deg, #48bb78, #38a169);
}

.user-avatar.away {
  background: linear-gradient(45deg, #ed8936, #dd6b20);
}

.user-name {
  font-weight: 600;
  color: #e8e8e8;
}

.active-users {
  display: flex;
  align-items: center;
  gap: 8px;
}

.online-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48bb78;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.collab-workspace {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 400px;
}

.document-area {
  padding: 20px;
}

#collab-editor {
  width: 100%;
  height: 360px;
  background: rgba(20, 25, 35, 0.95);
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: none;
  outline: none;
}

.collab-sidebar {
  background: rgba(10, 15, 25, 0.95);
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.collab-sidebar h4 {
  color: #4a69bd;
  margin-bottom: 15px;
  font-size: 14px;
}

.user-list {
  margin-bottom: 25px;
}

.collab-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.collab-user:last-child {
  border-bottom: none;
}

.collab-user span:nth-child(2) {
  flex: 1;
  font-size: 13px;
  color: #e8e8e8;
}

.user-status {
  font-size: 11px;
  color: #b8b8b8;
  font-style: italic;
}

.change-log {
  max-height: 150px;
  overflow-y: auto;
}

.change-item {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.change-user {
  color: #4a69bd;
  font-weight: 600;
}

.change-action {
  color: #e8e8e8;
  margin: 0 5px;
}

.change-time {
  color: #b8b8b8;
}

/* Neural Network Styles */
.neural-container {
  text-align: center;
}

#neural-canvas {
  border: 2px solid rgba(74, 105, 189, 0.3);
  border-radius: 8px;
  background: rgba(26, 26, 46, 0.95);
}

.neural-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.training-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.stat-item {
  text-align: center;
}

.stat-item span:first-child {
  display: block;
  font-size: 11px;
  color: #b8b8b8;
  margin-bottom: 5px;
}

.stat-item span:last-child {
  font-size: 18px;
  font-weight: 600;
  color: #4a69bd;
}

.neural-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.neural-btn {
  background: linear-gradient(45deg, #9f7aea, #805ad5);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.neural-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(159, 122, 234, 0.4);
}

/* Featured card styling */
.featured-card {
  border: 2px solid rgba(74, 105, 189, 0.3);
  background: rgba(25, 30, 42, 0.98);
  box-shadow: 0 20px 60px rgba(74, 105, 189, 0.2);
}

.featured-card h3 {
  color: #4a69bd;
}

/* Responsive design for advanced features */
@media (max-width: 768px) {
  .collab-workspace {
      grid-template-columns: 1fr;
  }

  .collab-sidebar {
      border-left: none;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .particle-controls,
  .viz3d-controls,
  .neural-controls {
      grid-template-columns: 1fr;
  }

  .training-stats {
      grid-template-columns: 1fr;
  }

  .editor-main {
      flex-direction: column;
  }

  .line-numbers {
      display: none;
  }
}

.light-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.light-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e8e8e8;
  font-size: 0.9rem;
}

/* Blockchain Explorer Styles */
.blockchain-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4ecdc4;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.8rem;
  color: #b8b8b8;
  text-transform: uppercase;
}

.blockchain-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.block-explorer, .transaction-pool {
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.blocks-list, .tx-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
}

.block-item, .tx-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid #4ecdc4;
}

.block-item:hover, .tx-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.tx-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tx-actions button {
  background: rgba(74, 105, 189, 0.6);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.block-details {
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.block-info-content {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #e8e8e8;
}

/* AI Training Lab Styles */
.ai-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
  gap: 15px;
}

.model-config {
  display: flex;
  gap: 15px;
  align-items: center;
}

.model-config label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8e8e8;
  font-size: 0.9rem;
}

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

.training-actions button {
  background: rgba(74, 105, 189, 0.6);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.training-actions button:hover {
  background: rgba(74, 105, 189, 0.8);
}

.ai-visualization {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.training-canvas, .loss-chart {
  text-align: center;
}

.training-canvas canvas, .loss-chart canvas {
  border: 2px solid rgba(74, 105, 189, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.ai-metrics {
  display: flex;
  justify-content: space-around;
  padding: 15px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.metric {
  text-align: center;
  color: #e8e8e8;
  font-size: 0.9rem;
}

.metric span {
  display: block;
  font-weight: bold;
  color: #4ecdc4;
  font-size: 1.1rem;
  margin-top: 5px;
}

/* Responsive adjustments for file system */
@media (max-width: 768px) {
  .file-explorer-content {
      grid-template-columns: 1fr;
  }

  .file-toolbar {
      justify-content: space-between;
  }

  .file-toolbar button {
      font-size: 0.8rem;
      padding: 6px 10px;
  }

  .dialog {
      min-width: 90%;
      margin: 20px;
  }

  .social-platform {
      grid-template-columns: 1fr;
  }

  .trending-sidebar {
      grid-column: 1;
      grid-row: 3;
  }

  .social-header {
      flex-direction: column;
      gap: 15px;
      text-align: center;
  }

  .social-stats {
      justify-content: center;
  }

  .feed-filters {
      overflow-x: auto;
      white-space: nowrap;
  }

  .social-notification {
      right: 10px;
      left: 10px;
      max-width: none;
      transform: translateY(-100px);
  }

  .social-notification.notification-show {
      transform: translateY(0);
  }
}

/* Minigames Styles */

/* Snake Game */
#snake-canvas {
  border: 3px solid #4a69bd;
  border-radius: 10px;
  background: #000;
  display: block;
  margin: 10px auto;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #b8b8b8;
}

/* Memory Game */
.memory-game-container {
  text-align: center;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 300px;
  margin: 0 auto;
}

.memory-card {
  aspect-ratio: 1;
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  user-select: none;
}

.memory-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(74, 105, 189, 0.5);
}

.memory-card.flipped {
  background: linear-gradient(45deg, #48bb78, #38a169);
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  opacity: 0.7;
  cursor: default;
  transform: scale(0.95);
}

/* Tic Tac Toe */
.tictactoe-container {
  text-align: center;
}

.game-status {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #4ecdc4;
}

.tictactoe-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-width: 300px;
  margin: 0 auto 15px auto;
}

.tictactoe-cell {
  aspect-ratio: 1;
  background: linear-gradient(45deg, #2d3748, #1a202c);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  transition: all 0.2s ease;
  user-select: none;
}

.tictactoe-cell:hover {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  transform: scale(1.05);
}

.tictactoe-cell.x {
  color: #ef4444;
}

.tictactoe-cell.o {
  color: #48bb78;
}

.game-reset {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Quiz Game */
.quiz-container {
  text-align: center;
}

.quiz-score {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #4ecdc4;
}

.quiz-question {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #4a69bd;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  background: linear-gradient(45deg, #2d3748, #1a202c);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-size: 0.95rem;
}

.quiz-option:hover {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  transform: translateX(5px);
}

.quiz-option.correct {
  background: linear-gradient(45deg, #48bb78, #38a169);
  border-color: #48bb78;
}

.quiz-option.wrong {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  border-color: #ef4444;
}

.quiz-start, .quiz-restart {
  background: linear-gradient(45deg, #4a69bd, #3742fa);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.quiz-start:hover, .quiz-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 105, 189, 0.4);
}

/* Simon Says */
.simon-container {
  text-align: center;
}

.simon-level {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #4ecdc4;
}

.simon-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 200px;
  margin: 0 auto 20px auto;
}

.simon-button {
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.simon-red {
  background: #dc2626;
}

.simon-blue {
  background: #2563eb;
}

.simon-green {
  background: #16a34a;
}

.simon-yellow {
  background: #ca8a04;
}

.simon-button:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.simon-button.active {
  transform: scale(1.1);
  opacity: 1;
  box-shadow: 0 0 20px currentColor;
  filter: brightness(1.5);
}

.simon-start {
  background: linear-gradient(45deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.simon-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Breakout Game */
#breakout-canvas {
  border: 3px solid #4a69bd;
  border-radius: 10px;
  background: #000;
  display: block;
  margin: 10px auto;
}

/* General Game Controls Enhancement */
.game-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  text-align: center;
}

.control-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.control-instructions {
  font-size: 0.8rem;
  color: #b8b8b8;
  font-style: italic;
}

/* Game Container Fullscreen Enhancements */
.fullscreen-active .game-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  padding: 15px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.fullscreen-active canvas {
  max-width: 80vw !important;
  max-height: 70vh !important;
}

/* Game Status Enhancements */
.game-status {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Minigames */
@media (max-width: 768px) {
  .memory-board {
      max-width: 250px;
  }

  .tictactoe-board {
      max-width: 250px;
  }

  .simon-board {
      max-width: 180px;
  }

  .quiz-question {
      font-size: 1rem;
      padding: 12px;
  }

  .quiz-option {
      padding: 10px 12px;
      font-size: 0.9rem;
  }

  #snake-canvas, #breakout-canvas {
      max-width: 100%;
      height: auto;
  }

  .fullscreen-active canvas {
      max-width: 95vw !important;
      max-height: 60vh !important;
  }
}

/* Animation for game transitions */
@keyframes gameLoad {
  from { 
      opacity: 0; 
      transform: scale(0.9);
  }
  to { 
      opacity: 1; 
      transform: scale(1);
  }
}

.demo-card canvas, .demo-card .memory-board, .demo-card .tictactoe-board, .demo-card .simon-board {
  animation: gameLoad 0.5s ease-out;
}

/* Terminal Styles */
.terminal-output {
  background: #000;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  padding: 15px;
  border-radius: 8px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid #333;
}

.terminal-input {
  display: flex;
  align-items: center;
  background: #000;
  padding: 10px 15px;
  border-radius: 0 0 8px 8px;
  border: 1px solid #333;
  border-top: none;
}

.terminal-prompt {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

#terminal-command {
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  outline: none;
  flex: 1;
  margin-left: 5px;
}

/* Mining Interface */
.mining-dashboard {
  text-align: center;
}

.mining-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
  font-family: 'Courier New', monospace;
}

.mining-visual {
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, #1a1a1a, #333, #1a1a1a);
  background-size: 200% 100%;
  border-radius: 8px;
  margin-top: 15px;
  position: relative;
  overflow: hidden;
}

.mining-active {
  animation: miningPulse 2s infinite;
}

@keyframes miningPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Weather Canvas */
#weather-canvas {
  background: linear-gradient(to bottom, #87CEEB, #98FB98);
  border-radius: 10px;
}

/* Social Feed */
.social-interface {
  max-height: 400px;
  overflow-y: auto;
}

.post-creator {
  margin-bottom: 20px;
}

.post-creator textarea {
  width: 100%;
  min-height: 60px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  resize: vertical;
}

.social-feed {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.social-post {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  animation: postAppear 0.5s ease-out;
}

@keyframes postAppear {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #b8b8b8;
}

.post-content {
  margin-bottom: 10px;
}

.post-actions {
  display: flex;
  gap: 15px;
  font-size: 0.9rem;
}

.post-action {
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.2s;
}

.post-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Pet Canvas */
#pet-canvas {
  border: 2px solid #48bb78;
  border-radius: 10px;
  background: linear-gradient(to bottom, #87CEEB, #98FB98);
  display: block;
  margin: 0 auto 15px auto;
}

.pet-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.pet-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pet-controls button {
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.pet-controls button:hover {
  transform: scale(1.1);
}

/* Scan Progress */
.scan-progress {
  margin: 15px 0;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #48bb78, #38a169);
  width: 0%;
  transition: width 0.3s ease;
}

.threat-log {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 10px;
  max-height: 150px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

/* Trading Interface */
.trading-interface {
  text-align: center;
}

.portfolio {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  font-weight: bold;
}

.trading-controls {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Compiler Output */
.compiler-output {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  min-height: 100px;
  white-space: pre-wrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ML Visualization */
.ml-interface {
  margin-bottom: 15px;
}

.training-data textarea {
  width: 100%;
  height: 80px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: 'Courier New', monospace;
}

/* Analysis Results */
.analysis-results {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

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

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(74, 105, 189, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 105, 189, 0.8);
}