/* ============================================================
   SidaOS — Text/Content Viewer App
   ============================================================ */

/* --- Viewer Container --- */
.viewer-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: #e0e0e0;
}

/* --- Toolbar --- */
.viewer-toolbar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #2d2d2d;
  border-bottom: 1px solid #404040;
  flex-shrink: 0;
}

.viewer-filename {
  font-size: 13px;
  color: #aaa;
  font-family: 'JetBrains Mono', monospace;
}

/* --- Content Area --- */
.viewer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  scrollbar-width: thin;
  scrollbar-color: #555 #1a1a1a;
}

.viewer-content::-webkit-scrollbar {
  width: 6px;
}

.viewer-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.viewer-content::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 3px;
}

/* --- Content Text Styles --- */
.viewer-content .h1 {
  color: #ff6ac1;
  font-weight: bold;
  font-size: 16px;
}

.viewer-content .h2 {
  color: #ffb800;
  font-weight: bold;
  font-size: 14px;
}

.viewer-content a {
  color: #00d4ff;
  text-decoration: none;
}

.viewer-content a:hover {
  text-decoration: underline;
}

/* --- Back Button --- */
.viewer-back-btn {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 3px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  margin-right: 10px;
  white-space: nowrap;
}

.viewer-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .viewer-back-btn {
    padding: 8px 14px;
    font-size: 16px;
  }

  .viewer-filename {
    font-size: 15px;
  }

  .viewer-content {
    padding: 16px 18px;
    font-size: 14px;
  }

  .viewer-content .h1 {
    font-size: 20px;
  }

  .viewer-content .h2 {
    font-size: 17px;
  }
}
