body {
  background: #0a0a0f;
  color: #00ff00;
  font-family: 'Share Tech Mono', 'Orbitron', monospace;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanline Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.03) 2px,
    rgba(0, 255, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* Blocky Loader */
.blocky-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader-text {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #00ff00;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.blocky-bar-container {
  width: 80%;
  max-width: 600px;
  height: 20px;
  background: #111;
  border: 2px solid #00ff00;
  position: relative;
}

.blocky-bar {
  height: 100%;
  background: #00ff00;
  box-shadow: 0 0 20px #00ff00;
  transition: width 0.1s;
}

/* Main Container */
.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0a0f;
  position: relative;
}

/* Header */
.header {
  background: #0a0a0f;
  padding: 1rem 2rem;
  border-bottom: 2px solid #00ff00;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.universe-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.universe-label {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.universe-select {
  background: #111;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.universe-select:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px #00ff00;
}

.universe-select:focus {
  outline: none;
  box-shadow: 0 0 15px #00ff00;
}

.glitch-title {
  font-family: 'Orbitron', 'Share Tech Mono', monospace;
  font-size: 2.5rem;
  color: #00ff00;
  letter-spacing: 0.15em;
  text-shadow: 0 0 8px #00ff00, 0 0 24px #00ff00;
  margin: 0;
  text-transform: uppercase;
  text-align: center;
}

.title-line {
  height: 2px;
  background: #00ff00;
  margin: 1rem auto;
  width: 80%;
  box-shadow: 0 0 10px #00ff00;
  transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease;
}


/* Pipboy Menu */
.pipboy-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #00ff00 #111; /* Firefox */
  -ms-overflow-style: auto; /* IE and Edge */
}

/* Custom scrollbar for Pipboy Menu - Chrome, Safari, Opera */
.pipboy-menu::-webkit-scrollbar {
  height: 8px;
  display: block;
}

.pipboy-menu::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.pipboy-menu::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
  box-shadow: 0 0 8px #00ff00;
}

.pipboy-menu::-webkit-scrollbar-thumb:hover {
  background: #00ffaa;
  box-shadow: 0 0 12px #00ffaa;
}

.menu-item {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #00ff00;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.menu-item:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 15px #00ff00;
}

.menu-item.active {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 15px #00ff00;
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* Section Content */
.section-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  animation: loadIn 0.5s ease-out forwards;
}

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

/* Glow Effect */
.glow {
  text-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00, 0 0 24px #00ff00;
}

/* Status Container */
.status-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Loading Container */
.loading-container {
  width: calc(100% - 2rem);
  margin: 0 1rem 2rem 1rem;
  position: relative;
  overflow: visible;
  height: auto;
  border: none;
  background: transparent;
  box-sizing: border-box;
}

.loading-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #00ff00;
}

.loading-info span {
  text-shadow: 0 0 4px #00ff00;
}

.loading-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.loading-bar {
  height: 100%;
  width: 0%;
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
  transition: width 3s ease;
}

.loading-bar-wrapper {
  flex: 1;
  height: 12px;
  background: #111;
  border: 1px solid #00ff00;
  position: relative;
  overflow: hidden;
}

.loading-label {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: #00ff00;
  white-space: nowrap;
  text-shadow: 0 0 4px #00ff00;
}

.loading-info-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #00aa00;
  text-align: center;
  margin-top: 0.5rem;
  text-shadow: 0 0 3px #00aa00;
  min-height: 1.2rem;
}

/* Glitch Sections */
.glitch-section {
  opacity: 0;
  transform: translateY(20px);
  animation: loadIn 0.5s ease-out forwards;
}

.glitch-section:nth-child(1) { animation-delay: 0.2s; }
.glitch-section:nth-child(2) { animation-delay: 0.4s; }
.glitch-section:nth-child(3) { animation-delay: 0.6s; }

@keyframes loadIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glitch-section.loaded {
  opacity: 1;
  transform: translateY(0);
  animation: glitchEffect 0.3s ease-out;
}

@keyframes glitchEffect {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

/* Countdown Section */
.countdown-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.terminal-panel {
  background: #111;
  border: 2px solid #00ff00;
  padding: 1.5em 2em;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
}

.countdown-text {
  font-size: 1.3em;
  letter-spacing: 0.05em;
  margin: 0 0 0.5em 0;
}

.countdown-desc {
  color: #00aa00;
  font-size: 1em;
  margin: 0;
}

/* Stats Section */
.stats-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.stats-container {
  display: flex;
  gap: 2rem;
  margin-bottom: 1em;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  background: #111;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 1.5em 2em;
  min-width: 200px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  box-shadow: 0 0 32px #00ff00, inset 0 0 20px #000;
  transform: translateY(-2px);
}

.stat-title {
  font-size: 1.1em;
  font-weight: bold;
  color: #00ff00;
  letter-spacing: 0.04em;
  margin-bottom: 0.7em;
  text-transform: uppercase;
  text-align: center;
}

.stat-value {
  font-size: 2em;
  color: #00ff00;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #00ff00;
}

.stats-updated {
  color: #00aa00;
  font-size: 1em;
  text-align: center;
  margin-top: 0.5em;
  font-family: 'Share Tech Mono', monospace;
}

/* Milestone Section */
.milestone-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.milestone-panel {
  background: #111;
  border: 2px solid #00ff00;
  padding: 1.5em 2em;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  width: 100%;
  max-width: 800px;
}

.milestone-title {
  color: #00ff00;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1em;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 0.2em;
}

.milestone-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.milestone-item {
  margin-bottom: 1.5em;
  font-size: 1.1em;
  font-family: 'Share Tech Mono', monospace;
}

.milestone-item:last-child {
  margin-bottom: 0;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.milestone-name {
  font-weight: bold;
  color: #00ff00;
}

.milestone-progress {
  color: #00aa00;
  font-size: 0.9em;
}

.milestone-bar-container {
  width: 100%;
  height: 8px;
  background: #222;
  border: 1px solid #00ff00;
  margin-bottom: 0.5em;
  position: relative;
}

.milestone-bar {
  height: 100%;
  width: 0%;
  background: #00ff00;
  box-shadow: 0 0 8px #00ff00;
  transition: width 1s ease;
}

.milestone-reward {
  color: #00aa00;
  font-size: 0.95em;
  font-style: italic;
}

/* Scanner Section */
.scanner-container {
  max-width: 1000px;
  margin: 0 auto;
}

.scanner-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #00ff00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scanner-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.drop-zone {
  background: #111;
  border: 2px dashed #00ff00;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: #00ff00;
  box-shadow: 0 0 32px #00ff00, inset 0 0 20px #000;
  background: #1a1a1a;
}

.drop-zone-content {
  pointer-events: none;
}

.drop-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.drop-zone-text {
  font-size: 1.2rem;
  color: #00ff00;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.drop-zone-hint {
  font-size: 0.9rem;
  color: #00aa00;
  opacity: 0.8;
}

/* Image Preview */
.image-preview {
  background: #111;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
}

.preview-title {
  color: #00ff00;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #000;
  border: 1px solid #00ff00;
  border-radius: 4px;
  overflow: hidden;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 8px #00ff0044;
}

.metadata-section {
  background: #111;
  border: 2px solid #00ff00;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
}

.metadata-title {
  color: #00ff00;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metadata-output {
  background: #000;
  border: 1px solid #00ff00;
  border-radius: 4px;
  padding: 1rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #00ff00;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 0 0 8px #00ff0044, inset 0 0 10px #000;
}

.metadata-output::-webkit-scrollbar {
  width: 8px;
}

.metadata-output::-webkit-scrollbar-track {
  background: #111;
}

.metadata-output::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

.metadata-output::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}

/* Highlighted metadata values */
.metadata-key {
  color: #00ff00;
  font-weight: bold;
}

.metadata-value {
  color: #00aa00;
}

.metadata-value.highlight {
  color: #ffff00;
  text-shadow: 0 0 8px #ffff00;
}

.metadata-match {
  background: #ffff00;
  color: #000;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  font-weight: bold;
}

/* Documents Section */
.documents-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.documents-title {
  font-size: 2rem;
  color: #00ff00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.documents-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.document-search {
  background: #111;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  width: 300px;
  max-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.document-search:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 15px #00ffff, inset 0 0 10px rgba(0, 0, 0, 0.5);
  color: #00ffff;
}

.document-search::placeholder {
  color: #00aa00;
  opacity: 0.6;
}

.document-search:focus::placeholder {
  color: #00ffff;
  opacity: 0.5;
}

.search-icon {
  position: absolute;
  right: 0.8rem;
  color: #00ff00;
  pointer-events: none;
  font-size: 1rem;
}

.document-search:focus + .search-icon {
  color: #00ffff;
}

.view-controls {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  background: #111;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.view-btn:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px #00ff00;
}

.view-btn.active {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 15px #00ff00;
}

.folder-path {
  background: #111;
  border: 2px solid #00ff00;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;
  font-family: 'Share Tech Mono', monospace;
  color: #00ff00;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.path-display {
  padding: 0.4rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: #00ff00;
  text-shadow: 0 0 4px #00ff00;
}

.path-separator {
  color: #00aa00;
  margin: 0 0.2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.documents-list-view {
  display: block;
}

.list-view-header {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.back-button {
  background: #111;
  border: 2px solid #00ff00;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.back-button:hover {
  background: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 10px #00ff00;
}

.back-button span {
  font-size: 1.2rem;
}

.list-content {
  background: #111;
  border: 2px solid #00ff00;
  padding: 1rem;
}

.list-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #00ff00;
}

.list-item:hover {
  background: rgba(0, 255, 0, 0.1);
}

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

.list-item-icon {
  font-size: 1.2rem;
}

.list-item-name {
  flex: 1;
}

.list-item-type {
  color: #00aa00;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.folder-item {
  color: #00ffff;
}

.entity-item {
  color: #ff0066;
}

.location-item {
  color: #00ffff;
}

.incident-item {
  color: #ffff00;
}

.documents-grid-view {
  display: block;
}

.grid-view-container {
  display: flex;
  gap: 1rem;
  min-height: 500px;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.folder-tree-sidebar {
  width: 250px;
  min-width: 200px;
  max-width: 100%;
  background: #111;
  border: 2px solid #00ff00;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Share Tech Mono', monospace;
  flex-shrink: 0;
  box-sizing: border-box;
}

.folder-tree-item {
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  color: #00ff00;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 2px solid transparent;
  margin: 0;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
}

.folder-tree-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.2s;
}

.folder-tree-item:hover {
  background: rgba(0, 255, 0, 0.08);
  border-left-color: #00ff00;
}

.folder-tree-item:hover::before {
  background: #00ff00;
  box-shadow: 0 0 8px #00ff00;
}

.folder-tree-item.active {
  background: rgba(0, 255, 255, 0.12);
  border-left-color: #00ffff;
  color: #00ffff;
  text-shadow: 0 0 4px #00ffff;
}

.folder-tree-item.active::before {
  background: #00ffff;
  box-shadow: 0 0 8px #00ffff;
}

.folder-tree-item-icon {
  font-size: 0.75rem;
  transition: transform 0.2s;
  width: 0.8rem;
  text-align: center;
  color: #00aa00;
  font-family: 'Courier New', monospace;
}

.folder-tree-item.expanded .folder-tree-item-icon {
  transform: rotate(90deg);
  color: #00ff00;
}

.folder-tree-item.active .folder-tree-item-icon {
  color: #00ffff;
}

.folder-tree-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.folder-tree-item-count {
  color: #00aa00;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: auto;
}

.folder-tree-children {
  display: none !important;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(0, 255, 0, 0.2);
  padding-left: 0.5rem;
}

.folder-tree-item.expanded ~ .folder-tree-children {
  display: block !important;
}

.grid-content-panel {
  flex: 1;
  background: #111;
  border: 2px solid #00ff00;
  padding: 1rem;
  overflow-y: auto;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.category-section {
  margin-bottom: 2rem;
}

.category-header {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #00ff00;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-header.entities-header {
  color: #ff0000;
  border-bottom-color: #ff0000;
}

.category-header.locations-header {
  color: #3399ff;
  border-bottom-color: #3399ff;
}

.category-header.incidents-header {
  color: #ffcc00;
  border-bottom-color: #ffcc00;
}

.category-header.artifacts-header {
  color: #ff00ff;
  border-bottom-color: #ff00ff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.documents-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.document-card {
  background: #111;
  color: #00ff00;
  border: 2px solid #00ff00;
  padding: 1em 1.5em;
  display: flex;
  flex-direction: column;
  font-family: 'Share Tech Mono', monospace;
  position: relative;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 140px;
}

.document-card:hover {
  box-shadow: 0 0 32px #00ff00, inset 0 0 20px #000;
  transform: translateY(-2px);
}

.document-card.entity-doc {
  border-color: #ff0000;
  box-shadow: 0 0 16px #ff000044, inset 0 0 20px #000;
}

.document-card.entity-doc:hover {
  box-shadow: 0 0 32px #ff0000, inset 0 0 20px #000;
}

.document-card.entity-doc:active,
.document-card.entity-doc:focus {
  border-color: #ff0000;
  box-shadow: 0 0 32px #ff0000, inset 0 0 20px #000;
}

.document-card.location-doc {
  border-color: #3399ff;
  box-shadow: 0 0 16px #3399ff44, inset 0 0 20px #000;
}

.document-card.location-doc:hover {
  box-shadow: 0 0 32px #3399ff, inset 0 0 20px #000;
}

.document-card.location-doc:active,
.document-card.location-doc:focus {
  border-color: #3399ff;
  box-shadow: 0 0 32px #3399ff, inset 0 0 20px #000;
}

.document-card.incident-doc {
  border-color: #ffcc00;
  box-shadow: 0 0 16px #ffcc0044, inset 0 0 20px #000;
}

.document-card.incident-doc:hover {
  box-shadow: 0 0 32px #ffcc00, inset 0 0 20px #000;
}

.document-card.incident-doc:active,
.document-card.incident-doc:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 32px #ffcc00, inset 0 0 20px #000;
}

.document-card.artifact-doc {
  border-color: #ff00ff;
  box-shadow: 0 0 16px #ff00ff44, inset 0 0 20px #000;
}

.document-card.artifact-doc:hover {
  box-shadow: 0 0 32px #ff00ff, inset 0 0 20px #000;
}

.document-card.artifact-doc:active,
.document-card.artifact-doc:focus {
  border-color: #ff00ff;
  box-shadow: 0 0 32px #ff00ff, inset 0 0 20px #000;
}

.document-title {
  font-size: 1em;
  font-weight: bold;
  color: #00ff00;
  letter-spacing: 0.04em;
  margin-bottom: 0.8em;
  text-transform: uppercase;
  border-bottom: 1px solid #00ff00;
  width: 100%;
  padding-bottom: 0.2em;
}

.entity-doc .document-title {
  color: #ff0000;
  border-bottom-color: #ff0000;
}

.location-doc .document-title {
  color: #3399ff;
  border-bottom-color: #3399ff;
}

.incident-doc .document-title {
  color: #ffcc00;
  border-bottom-color: #ffcc00;
}

.artifact-doc .document-title {
  color: #ff00ff;
  border-bottom-color: #ff00ff;
}

.document-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  flex: 1;
}

.document-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2em 0;
  border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.document-label {
  font-size: 0.8em;
  color: #00aa00;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.document-value {
  font-size: 0.9em;
  color: #00ff00;
  font-family: 'Orbitron', monospace;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-shadow: 0 0 4px #00ff00;
}

.entity-doc .document-value {
  color: #ff0000;
  text-shadow: 0 0 4px #ff0000;
}

.location-doc .document-value {
  color: #3399ff;
  text-shadow: 0 0 4px #3399ff;
}

.incident-doc .document-value {
  color: #ffcc00;
  text-shadow: 0 0 4px #ffcc00;
}

.artifact-doc .document-value {
  color: #ff00ff;
  text-shadow: 0 0 4px #ff00ff;
}

/* Document Modal */
.document-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.document-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #0a0a0f;
  margin: 0;
  padding: 0;
  border: 2px solid #00ff00;
  width: 95%;
  max-width: 1400px;
  height: 95vh;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 32px #00ff00, inset 0 0 20px #000;
  position: relative;
  box-sizing: border-box;
}

.entity-modal .modal-content {
  border-color: #ff0000;
  box-shadow: 0 0 32px #ff0000, inset 0 0 20px #000;
}

.location-modal .modal-content {
  border-color: #3399ff !important;
  box-shadow: 0 0 32px #3399ff, inset 0 0 20px #000 !important;
}

.incident-modal .modal-content {
  border-color: #ffcc00;
  box-shadow: 0 0 32px #ffcc00, inset 0 0 20px #000;
}

.artifact-modal .modal-content {
  border-color: #ff00ff;
  box-shadow: 0 0 32px #ff00ff, inset 0 0 20px #000;
}

.modal-header {
  background: #111;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #00ff00;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.entity-modal .modal-header {
  border-bottom-color: #ff0000;
}

.location-modal .modal-header {
  border-bottom-color: #3399ff !important;
}

.incident-modal .modal-header {
  border-bottom-color: #ffcc00;
}

.artifact-modal .modal-header {
  border-bottom-color: #ff00ff;
}

.modal-title {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 0 8px #00ff00;
}

.entity-modal .modal-title {
  color: #ff0000;
  text-shadow: 0 0 8px #ff0000;
}

.location-modal .modal-title {
  color: #3399ff !important;
  text-shadow: 0 0 8px #3399ff !important;
}

.incident-modal .modal-title {
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
}

.artifact-modal .modal-title {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
}

.modal-close {
  background: none;
  border: none;
  color: #00ff00;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-shadow: 0 0 8px #00ff00;
  transition: all 0.2s ease;
}

.entity-modal .modal-close {
  color: #ff0000;
  text-shadow: 0 0 8px #ff0000;
}

.location-modal .modal-close {
  color: #3399ff !important;
  text-shadow: 0 0 8px #3399ff !important;
}

.incident-modal .modal-close {
  color: #ffcc00;
  text-shadow: 0 0 8px #ffcc00;
}

.artifact-modal .modal-close {
  color: #ff00ff;
  text-shadow: 0 0 8px #ff00ff;
}

.modal-close:hover {
  color: #ff0066;
  text-shadow: 0 0 12px #ff0066;
}

.entity-modal .modal-close:hover {
  color: #ff6666;
  text-shadow: 0 0 12px #ff6666;
}

.location-modal .modal-close:hover {
  color: #66b3ff;
  text-shadow: 0 0 12px #66b3ff;
}

.incident-modal .modal-close:hover {
  color: #ffdd66;
  text-shadow: 0 0 12px #ffdd66;
}

.artifact-modal .modal-close:hover {
  color: #ff66ff;
  text-shadow: 0 0 12px #ff66ff;
}

.modal-body {
  padding: 2rem;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #00ff00 #111; /* Firefox */
}

/* Custom scrollbar for modal body - Chrome, Safari, Opera */
.modal-body::-webkit-scrollbar {
  width: 10px;
}

.modal-body::-webkit-scrollbar-track {
  background: #111;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
  box-shadow: 0 0 8px #00ff00;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #00ffaa;
  box-shadow: 0 0 12px #00ffaa;
}

/* Entity modal scrollbar */
.entity-modal .modal-body {
  scrollbar-color: #ff0000 #111; /* Firefox */
}

.entity-modal .modal-body::-webkit-scrollbar-thumb {
  background: #ff0000;
  box-shadow: 0 0 8px #ff0000;
}

.entity-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #ff6666;
  box-shadow: 0 0 12px #ff6666;
}

/* Location modal scrollbar */
.location-modal .modal-body {
  scrollbar-color: #3399ff #111 !important; /* Firefox */
}

.location-modal .modal-body::-webkit-scrollbar-thumb {
  background: #3399ff !important;
  box-shadow: 0 0 8px #3399ff !important;
}

.location-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #66b3ff !important;
  box-shadow: 0 0 12px #66b3ff !important;
}

/* Incident modal scrollbar */
.incident-modal .modal-body {
  scrollbar-color: #ffcc00 #111; /* Firefox */
}

.incident-modal .modal-body::-webkit-scrollbar-thumb {
  background: #ffcc00;
  box-shadow: 0 0 8px #ffcc00;
}

.incident-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #ffdd66;
  box-shadow: 0 0 12px #ffdd66;
}

/* Artifact modal scrollbar */
.artifact-modal .modal-body {
  scrollbar-color: #ff00ff #111; /* Firefox */
}

.artifact-modal .modal-body::-webkit-scrollbar-thumb {
  background: #ff00ff;
  box-shadow: 0 0 8px #ff00ff;
}

.artifact-modal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #ff66ff;
  box-shadow: 0 0 12px #ff66ff;
}

.entity-modal .modal-body {
  color: #ff6666;
}

.location-modal .modal-body {
  color: #3399ff !important;
}

/* Universal selector for location modal to ensure all text is blue */
.location-modal .modal-body * {
  color: #66b3ff !important;
}

.location-modal .modal-body p,
.location-modal .modal-body div,
.location-modal .modal-body span,
.location-modal .modal-body ul,
.location-modal .modal-body li,
.location-modal .modal-body em,
.location-modal .modal-body i {
  color: #66b3ff !important;
}

.location-modal .modal-body strong,
.location-modal .modal-body b {
  color: #3399ff !important;
}

.location-modal .modal-body a {
  color: #3399ff !important;
}

.incident-modal .modal-body {
  color: #ffdd66;
}

.artifact-modal .modal-body {
  color: #ff66ff;
}

.modal-body h3 {
  color: #00ff00;
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #00ff00;
  padding-bottom: 0.3rem;
}

.entity-modal .modal-body h3 {
  color: #ff0000;
  border-bottom-color: #ff0000;
}

.location-modal .modal-body h3 {
  color: #3399ff !important;
  border-bottom-color: #3399ff !important;
}

.incident-modal .modal-body h3 {
  color: #ffcc00;
  border-bottom-color: #ffcc00;
}

.artifact-modal .modal-body h3 {
  color: #ff00ff;
  border-bottom-color: #ff00ff;
}

.modal-body p {
  margin: 0.8rem 0;
  color: #00aa00;
}

.entity-modal .modal-body p {
  color: #ff9999;
}

.location-modal .modal-body p {
  color: #66b3ff !important;
}

.location-modal .modal-body ul,
.location-modal .modal-body li {
  color: #66b3ff !important;
}

.location-modal .modal-body em,
.location-modal .modal-body i {
  color: #66b3ff !important;
}

.incident-modal .modal-body p {
  color: #ffdd99;
}

.artifact-modal .modal-body p {
  color: #ff99ff;
}

.modal-body .classified-info {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.3);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.entity-modal .modal-body .classified-info {
  background: rgba(255, 0, 0, 0.05);
  border-color: rgba(255, 0, 0, 0.3);
}

.location-modal .modal-body .classified-info {
  background: rgba(51, 153, 255, 0.05) !important;
  border-color: rgba(51, 153, 255, 0.3) !important;
}

.location-modal .modal-body .classified-info p,
.location-modal .modal-body .classified-info strong {
  color: #3399ff !important;
}

.incident-modal .modal-body .classified-info {
  background: rgba(255, 204, 0, 0.05);
  border-color: rgba(255, 204, 0, 0.3);
}

.artifact-modal .modal-body .classified-info {
  background: rgba(255, 0, 255, 0.05);
  border-color: rgba(255, 0, 255, 0.3);
}

.modal-body .certification {
  background: rgba(255, 0, 102, 0.05);
  border: 1px solid rgba(255, 0, 102, 0.3);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-style: italic;
}

.modal-body .code-block {
  background: #000;
  border: 1px solid #00ff00;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

.entity-modal .modal-body .code-block {
  border-color: #ff0000;
}

.location-modal .modal-body .code-block {
  border-color: #3399ff !important;
  color: #3399ff !important;
}

.incident-modal .modal-body .code-block {
  border-color: #ffcc00;
}

.artifact-modal .modal-body .code-block {
  border-color: #ff00ff;
}

.modal-body .warning {
  color: #ff0066;
  font-weight: bold;
  text-shadow: 0 0 4px #ff0066;
}

.modal-body .stamp {
  color: #00ffff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 4px #00ffff;
}

/* Aethvion Section */
.aethvion-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.aethvion-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #00ff00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aethvion-content {
  width: 100%;
  box-sizing: border-box;
}

.aethvion-panel {
  max-width: 100%;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.aethvion-panel .code-block {
  background: #000;
  border: 1px solid #00ff00;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #00ff00;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.aethvion-panel .classified-info {
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid rgba(0, 255, 0, 0.3);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.aethvion-panel p,
.aethvion-panel h3,
.aethvion-panel h4 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.aethvion-panel h4 {
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  padding-bottom: 0.3rem;
}

.aethvion-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.document-link-entry {
  padding: 0.5rem 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #00ff00;
}

.document-link-entry strong {
  color: #00ffff;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.document-link {
  color: #00ff00;
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 0, 0.5);
  transition: all 0.3s;
}

.document-link:hover {
  color: #00ffff;
  text-decoration-color: #00ffff;
  text-shadow: 0 0 8px #00ffff;
}

.document-link-entry em {
  color: #00aa00;
  font-style: italic;
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

/* Legacy styles for backward compatibility */
.aethvion-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid #00ff00;
  color: #00ff00;
  text-decoration: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aethvion-link:hover {
  background: rgba(0, 255, 0, 0.15);
  box-shadow: 0 0 20px #00ff00;
  transform: translateX(5px);
}

.link-icon {
  font-size: 1.5rem;
}

.link-text {
  flex: 1;
}

@media (max-width: 600px) {
  .aethvion-container {
    padding: 1rem;
  }
  
  .aethvion-title {
    font-size: 1.5rem;
  }
  
  .aethvion-link {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* Footer */
.footer {
  width: 100%;
  background: #050508;
  border-top: 2px solid #00ff00;
  margin-top: auto;
  padding: 3rem 2rem 1.5rem 2rem;
  font-family: 'Share Tech Mono', monospace;
  color: #00aa00;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column-title {
  color: #00ff00;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.footer-description {
  color: #00aa00;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #00ff00;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff00;
  animation: pulse 2s infinite;
}

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links li.footer-link-separator {
  display: block;
  flex-direction: unset;
  gap: 0;
}

.footer-link {
  color: #00aa00;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}

.footer-link:hover {
  color: #00ff00;
  text-shadow: 0 0 8px #00ff00;
  transform: translateX(4px);
}

.footer-link-desc {
  font-size: 0.75rem;
  color: #00aa00;
  opacity: 0.6;
  font-style: italic;
}

.footer-info-item {
  color: #00aa00;
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-link-separator {
  height: 1px;
  background: rgba(0, 255, 0, 0.2);
  margin: 0.5rem 0;
  border: none;
  padding: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #00aa00;
  opacity: 0.8;
}

.footer-copyright {
  color: #00aa00;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #00aa00;
  opacity: 0.7;
}

.footer-meta-separator {
  opacity: 0.5;
}

/* Footer Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .footer-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-meta-separator {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .stats-container {
    flex-direction: column;
    gap: 1.2em;
  }
  .stat-card {
    min-width: 0;
    width: 90vw;
    max-width: 340px;
  }
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .document-card {
    min-width: 0;
    width: 100%;
  }
  .pipboy-menu {
    gap: 1rem;
  }
  .menu-item {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .scanner-panel {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .glitch-title {
    font-size: 1.8rem;
  }
  .content {
    padding: 1rem;
  }
  .terminal-panel, .milestone-panel {
    padding: 1em;
  }
  .pipboy-menu {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .scanner-title {
    font-size: 1.5rem;
  }
  .drop-zone {
    padding: 2rem 1rem;
  }
  .drop-zone-icon {
    font-size: 2rem;
  }
  .drop-zone-text {
    font-size: 1rem;
  }
  .preview-image {
    max-height: 300px;
  }
  .documents-container {
    padding: 1rem;
  }
  .documents-title {
    font-size: 1.5rem;
  }
  .document-card {
    padding: 1em 1.5em;
  }
  .document-title {
    font-size: 1.1em;
  }
  .document-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }
}

/* Echo Terminal Section */
.terminal-echo-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.echo-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #00ff00;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.echo-terminal {
  background: #000;
  border: 2px solid #00ff00;
  border-radius: 8px;
  box-shadow: 0 0 16px #00ff0044, inset 0 0 20px #000;
  padding: 1.5rem 1rem 1rem 1rem;
  font-family: 'Share Tech Mono', monospace;
  color: #00ff00;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.echo-output {
  font-size: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.5rem;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  flex: 1;
}

.echo-message {
  padding: 0.3rem 0.5rem;
  margin: 0.2rem 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Glow effect for user inputs - blue */
.echo-glow-user {
  background: rgba(0, 150, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.25), inset 0 0 8px rgba(0, 150, 255, 0.08);
}

.echo-separator {
  height: 1px;
  background: #00ff00;
  margin: 0.5rem 0;
  opacity: 0.6;
}

.echo-input-line {
  display: flex;
  align-items: center;
  font-size: 1rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.echo-prompt {
  color: #00ff00;
  margin-right: 0.5rem;
  font-weight: bold;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
}

.echo-input {
  background: transparent;
  border: none;
  outline: none;
  color: #00ff00;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  flex: 1;
  caret-color: #00ff00;
  padding: 0;
  margin: 0;
}

.echo-cursor {
  color: #00ff00;
  font-size: 1.1rem;
  margin-left: 2px;
  animation: blink-cursor 1s steps(1) infinite;
}

@keyframes blink-cursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.echo-link {
  color: #00ff00;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.echo-link:hover {
  color: #00ffaa;
}

/* Style links within echo terminal output */
.echo-output a {
  color: #00ff00;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: bold;
  text-shadow: 0 0 3px #00ff00;
  padding: 2px 4px;
  border-radius: 3px;
}
.echo-output a:hover {
  color: #00ffaa;
  text-shadow: 0 0 8px #00ffaa;
  background: rgba(0, 255, 0, 0.1);
  text-decoration: none;
}

@media (max-width: 600px) {
  .terminal-echo-container {
    padding: 1rem 0;
  }
  .echo-title {
    font-size: 1.3rem;
  }
  .echo-terminal {
    min-height: 200px;
    max-height: 320px;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
  }
  .echo-output {
    font-size: 0.95rem;
  }
  .echo-input-line {
    font-size: 0.95rem;
  }
}

/* Custom Scrollbars for Terminal Theme */
.echo-terminal::-webkit-scrollbar,
.echo-output::-webkit-scrollbar,
.metadata-output::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  background: #111;
}
.echo-terminal::-webkit-scrollbar-thumb,
.echo-output::-webkit-scrollbar-thumb,
.metadata-output::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 6px;
  box-shadow: 0 0 8px #00ff00;
}
.echo-terminal::-webkit-scrollbar-thumb:hover,
.echo-output::-webkit-scrollbar-thumb:hover,
.metadata-output::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: #00ffaa;
}
.echo-terminal::-webkit-scrollbar-track,
.echo-output::-webkit-scrollbar-track,
.metadata-output::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #111;
}

/* For Firefox */
.echo-terminal,
.echo-output,
.metadata-output,
body {
  scrollbar-width: thin;
  scrollbar-color: #00ff00 #111;
} 

/* Hologram Map Styles */
.map-container {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  min-width: 0;
}

.map-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
  width: 100%;
  box-sizing: border-box;
}

.map-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid #00ffff;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 300px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.map-control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.map-control-label {
  font-size: 0.9rem;
  color: #00ffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.control-instructions {
  font-size: 0.8rem;
  color: #00ff00;
  opacity: 0.8;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #00ff00;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.research-dot {
  background: #ff0066;
  box-shadow: 0 0 8px #ff0066;
}

.legend-dot.country-dot {
  background: #00ffff;
  box-shadow: 0 0 8px #00ffff;
}

.legend-dot.satellite-dot {
  background: #8000ff;
  box-shadow: 0 0 8px #8000ff;
}

.map-slider {
  width: 150px;
  height: 6px;
  background: #1a1a1a;
  border: 1px solid #00ffff;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.map-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff;
  cursor: pointer;
}

.map-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #00ffff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 10px #00ffff;
  cursor: pointer;
}

.hologram-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 700px;
  max-height: 700px;
  min-width: 300px;
  min-height: 300px;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
  border: 2px solid #00ffff;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.3),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  flex-shrink: 0;
}

.hologram-canvas {
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  max-width: 100%;
}

.hologram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.location-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.location-marker:hover {
  transform: scale(1.2);
}

.marker-pulse {
  width: 100%;
  height: 100%;
  background: #ff0066;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px #ff0066;
  animation: pulse 2s infinite;
}

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

.marker-label {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #00ffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  border: 1px solid #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.location-marker:hover .marker-label {
  opacity: 1;
}

.map-info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 280px;
  max-width: calc(100% - 40px);
  max-height: 400px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00ffff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  z-index: 10;
  overflow-y: auto;
}

.info-title {
  color: #00ffff;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.location-info {
  color: #00ff00;
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.info-text {
  margin: 0;
  opacity: 0.8;
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.location-details {
  margin-top: 1rem;
}

.location-name {
  color: #00ffff;
  font-weight: bold;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.place-name {
  color: #00ffff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.country-name {
  color: #00ff00;
  font-weight: normal;
  font-size: 0.9rem;
  opacity: 0.8;
}

.location-description {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
}

.location-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.location-stat {
  background: rgba(0, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid #00ffff;
  text-align: center;
  flex: 1;
  min-width: 60px;
}

.stat-number {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ffff;
}

.stat-label {
  font-size: 0.7rem;
  color: #00ff00;
  text-transform: uppercase;
}

/* Hologram grid effect */
.hologram-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

/* Responsive design for map */
@media (max-width: 768px) {
  .map-container {
    padding: 1rem;
  }
  
  .map-controls {
    flex-direction: column;
    gap: 1rem;
  }
  
  .map-control-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .map-slider {
    width: 120px;
  }
  
  .hologram-container {
    height: 500px;
    max-width: 800px;
    max-height: 800px;
    min-width: 300px;
    min-height: 300px;
    margin: 0 auto 1rem auto;
  }
  
  .map-info-panel {
    position: static;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    max-height: none;
  }
  
  .location-description {
    max-height: none;
  }
  
  .location-stats {
    gap: 0.3rem;
  }
  
  .location-stat {
    padding: 0.3rem 0.6rem;
    min-width: 50px;
  }
  
  .stat-number {
    font-size: 1rem;
  }
  
  .stat-label {
    font-size: 0.6rem;
  }
  
  .location-marker {
    width: 15px;
    height: 15px;
  }
  
  .marker-label {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}

/* Mobile Optimizations - Maintain structure, improve usability */
@media (max-width: 768px) {
  /* Header adjustments */
  .header-top {
    flex-direction: row;
    gap: 1rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .glitch-title {
    font-size: 1.2rem;
    text-align: center;
    flex: 1;
    min-width: 0;
  }
  
  .universe-selector {
    flex-shrink: 0;
  }
  
  .universe-select {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  /* Navigation menu - keep horizontal on mobile */
  .pipboy-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #00ff00 #111; /* Firefox */
    -ms-overflow-style: auto; /* IE and Edge */
  }
  
  .pipboy-menu::-webkit-scrollbar {
    height: 8px;
    display: block;
  }
  
  .pipboy-menu::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
  }
  
  .pipboy-menu::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
    box-shadow: 0 0 8px #00ff00;
  }
  
  .pipboy-menu::-webkit-scrollbar-thumb:hover {
    background: #00ffaa;
    box-shadow: 0 0 12px #00ffaa;
  }
  
  .menu-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
    min-width: auto;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Header adjustments for mobile */
  .header {
    padding: 0.5rem 1rem;
  }
  
  .header-top {
    margin-bottom: 0.5rem;
  }
  
  /* Documents section */
  .documents-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .documents-title {
    font-size: 1.3rem;
  }
  
  .documents-controls {
    width: 100%;
    flex-direction: column;
    gap: 1rem;
  }
  
  .document-search {
    width: 100%;
    max-width: 100%;
  }
  
  .view-controls {
    width: 100%;
    justify-content: flex-end;
  }
  
  .view-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    min-width: 50px;
  }
  
  .folder-path {
    font-size: 0.75rem;
    padding: 0.6rem 0.8rem;
    word-break: break-all;
  }
  
  .path-display {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
  
  /* Grid view - stack on mobile */
  .grid-view-container {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .folder-tree-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 200px;
    order: 2;
    box-sizing: border-box;
  }
  
  .grid-content-panel {
    order: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* List view */
  .list-content {
    padding: 0.8rem;
  }
  
  .list-item {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .back-button {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
  
  /* Category sections */
  .category-section {
    margin-bottom: 1.5rem;
  }
  
  .category-header {
    font-size: 1.1rem;
    padding: 0.8rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  /* Document cards */
  .document-card {
    padding: 1rem;
  }
  
  .document-title {
    font-size: 1rem;
  }
  
  /* Map section */
  .map-controls {
    padding: 0.8rem;
  }
  
  .control-instructions {
    font-size: 0.75rem;
  }
  
  .legend-items {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Terminal section */
  .echo-terminal {
    min-height: 250px;
    max-height: 400px;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
  }
  
  .echo-output {
    font-size: 0.85rem;
    min-height: 150px;
    max-height: 250px;
  }
  
  .echo-input-line {
    font-size: 0.9rem;
  }
  
  /* Status section */
  .stats-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-card {
    width: 100%;
    max-width: 100%;
  }
  
  /* Scanner section */
  .scanner-panel {
    flex-direction: column;
  }
  
  .scanner-controls {
    width: 100%;
  }
  
  /* Aethvion section */
  .aethvion-container {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }
  
  .aethvion-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .aethvion-content {
    width: 100%;
  }
  
  .aethvion-panel {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .aethvion-links {
    gap: 0.8rem;
    margin: 1rem 0;
  }
  
  .document-link-entry {
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
  }
  
  .document-link-entry em {
    font-size: 0.8rem;
    display: block;
    margin-left: 0;
    margin-top: 0.3rem;
  }
  
  .terminal-panel {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  /* Documents section improvements */
  .documents-container {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .document-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .document-title {
    font-size: 1rem;
    word-wrap: break-word;
  }
  
  .document-section {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .document-label {
    font-size: 0.75rem;
  }
  
  .document-value {
    font-size: 0.85rem;
    word-wrap: break-word;
  }
  
  /* General content */
  .content {
    padding: 0.5rem;
  }
  
  .section-content {
    padding: 1rem 0.5rem;
  }
  
  /* Map canvas responsive */
  .hologram-canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    touch-action: pan-x pan-y pinch-zoom;
  }
  
  /* Touch-friendly buttons */
  .view-btn,
  .back-button,
  .menu-item {
    min-height: 44px; /* iOS recommended touch target */
    -webkit-tap-highlight-color: rgba(0, 255, 0, 0.2);
  }
  
  /* Prevent text selection on buttons */
  .view-btn,
  .back-button,
  .menu-item,
  .folder-tree-item {
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Improve scrolling on mobile */
  .folder-tree-sidebar,
  .echo-output,
  .list-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Document modal mobile */
  .modal-content {
    width: 98%;
    height: 98vh;
    max-height: 98vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .modal-header {
    padding: 0.8rem;
    font-size: 1rem;
    flex-wrap: wrap;
  }
  
  .modal-title {
    font-size: 1rem;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
  }
  
  .modal-close {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
  }
  
  .modal-body {
    padding: 0.8rem;
    font-size: 0.85rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .modal-body h3 {
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .modal-body p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
  }
  
  .modal-body .code-block {
    font-size: 0.75rem;
    padding: 0.8rem;
    overflow-x: auto;
  }
  
  .modal-body .classified-info {
    font-size: 0.75rem;
    padding: 0.8rem;
  }
  
  .modal-body .certification {
    font-size: 0.75rem;
    padding: 0.8rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .glitch-title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }
  
  .menu-item {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
  }
  
  .documents-title {
    font-size: 1.1rem;
  }
  
  .folder-path {
    font-size: 0.7rem;
  }
  
  .view-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  .folder-tree-item {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
  
  .list-item {
    font-size: 0.85rem;
    padding: 0.6rem;
  }
  
  .document-card {
    padding: 0.8rem;
    min-height: 120px;
  }
  
  .document-title {
    font-size: 0.95rem;
    word-wrap: break-word;
  }
  
  /* Aethvion section small mobile */
  .aethvion-container {
    padding: 0.8rem 0.5rem;
  }
  
  .aethvion-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .aethvion-panel {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .document-link-entry {
    font-size: 0.8rem;
  }
  
  .document-link-entry em {
    font-size: 0.75rem;
  }
  
  /* Documents section small mobile */
  .documents-container {
    padding: 0.5rem;
  }
  
  .documents-title {
    font-size: 1rem;
  }
  
  .folder-path {
    font-size: 0.65rem;
    padding: 0.5rem 0.6rem;
  }
  
  .category-header {
    font-size: 1rem;
    padding: 0.6rem;
  }
  
  /* Modal small mobile */
  .modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
  }
  
  .modal-header {
    padding: 0.6rem;
  }
  
  .modal-title {
    font-size: 0.9rem;
  }
  
  .modal-body {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .modal-body h3 {
    font-size: 0.95rem;
  }
  
  .modal-body p {
    font-size: 0.8rem;
  }
  
  .echo-terminal {
    min-height: 200px;
    max-height: 350px;
  }
  
  .echo-output {
    font-size: 0.8rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
} 