.text-visualization-container {
  height: 250px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f8f9fa;
}

.text-output {
  font-family: monospace;
  white-space: pre-wrap;
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e9ecef;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: #6c757d;
}

.tips-list {
  font-size: 0.9rem;
  padding-left: 20px;
  margin-bottom: 0;
}

.tips-list li {
  margin-bottom: 8px;
  color: #495057;
}

.chart-container {
  height: 250px;
  position: relative;
}

.character-box {
  display: inline-block;
  padding: 2px 5px;
  margin: 2px;
  border-radius: 3px;
  font-family: monospace;
}

.character-uppercase {
  background-color: #ffcccc;
  color: #cc0000;
}

.character-lowercase {
  background-color: #ccffcc;
  color: #006600;
}

.character-number {
  background-color: #ccccff;
  color: #0000cc;
}

.character-special {
  background-color: #ffffcc;
  color: #666600;
}

.character-whitespace {
  background-color: #f0f0f0;
  color: #666666;
}

@media (max-width: 768px) {
  .chart-container {
    height: 200px;
  }
  
  .text-visualization-container {
    height: 200px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .stat-value {
    font-size: 1.1rem;
  }
}

/* Text processing indicators */
.text-processing-fast {
  color: #28a745 !important;
}

.text-processing-medium {
  color: #ffc107 !important;
}

.text-processing-slow {
  color: #dc3545 !important;
}

/* Enhanced visualization controls */
.visualization-controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.visualization-controls button {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}

/* Text analysis highlights */
.text-highlight {
  background-color: yellow;
  padding: 0 2px;
  border-radius: 2px;
}

/* 3D visualization enhancements */
.threejs-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.threejs-tooltip.visible {
  opacity: 1;
}