/* ============================================================
   FILENAME: index.css
   AVIS-COMPONENT: SIDEBAR-STYLES
   ARTIFACT-ID: AV-CSS-2026-SB
   STATE-MATRIX-REF: Version 1/STATE/global.state
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: "Inter", "Courier New", monospace;
  color: #eee;
  display: flex;
  flex-direction: row;
  background: rgba(10, 10, 10, 0.0); /* fully transparent overlay */
  background-image: url(rru-bg.png?v=1);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  overflow: hidden;
}

/* Sidebar */
#sidebar {
  flex: 0 0 260px;
  background: rgba(20, 20, 20, 0.0); /* transparent container */
  padding: 20px 15px;
  height: 100%;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #00f7ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.7); /* solid fill behind text */
  padding: 8px 12px;
  border-radius: 6px;
  text-shadow: 0 0 6px #00f7ff;
}

/* Menu sections */
.menu-section { margin-bottom: 18px; }

.menu-header {
  background: rgba(0,0,0,0.7);
  color: #ffd700;
  padding: 12px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-header::after {
  content: "›";
  font-size: 14px;
  color: #ff4500;
  transition: transform 0.3s ease;
}

.menu-header:hover {
  background: rgba(0,0,0,0.85);
  color: #00f7ff;
  box-shadow: 0 0 12px rgba(0,200,255,0.6);
}

.menu-content {
  padding-left: 12px;
  display: none;
}

.menu-content a {
  display: block;
  color: #eee;
  text-decoration: none;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.6);
  transition: all 0.2s ease;
}

.menu-content a:hover {
  color: #ffd700;
  background: rgba(0,0,0,0.8);
  transform: translateX(6px);
  text-shadow: 0 0 6px #ffd700;
}

.menu-content.collapsed { display: none; }
.menu-content:not(.collapsed) { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main content */
#mainContent {
  flex: 1;

  padding: 25px;
  background: rgba(15, 15, 15, 0.0); /* transparent container */
  overflow-y: auto;
}

/* Rich text viewer */
.source-view {
	position:relative;
  background: rgba(0,0,0,0.85); /* solid fill behind text */
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  color: #eee;
  font-family: "Consolas", monospace;
  line-height: 1.6;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.4);
}

/* WebKit Scrollbars */
#sidebar::-webkit-scrollbar,
#mainContent::-webkit-scrollbar,
.source-view::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#sidebar::-webkit-scrollbar-track,
#mainContent::-webkit-scrollbar-track,
.source-view::-webkit-scrollbar-track {
  background: rgba(20, 20, 20, 0.0);
}

#sidebar::-webkit-scrollbar-thumb,
#mainContent::-webkit-scrollbar-thumb,
.source-view::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd700, #00f7ff, #ff4500);
  border-radius: 5px;
}

#sidebar::-webkit-scrollbar-thumb:hover,
#mainContent::-webkit-scrollbar-thumb:hover,
.source-view::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4500, #ffd700, #00f7ff);
}

/* Horizontal scrollbar styling */
#sidebar::-webkit-scrollbar:horizontal,
#mainContent::-webkit-scrollbar:horizontal,
.source-view::-webkit-scrollbar:horizontal {
  height: 6px;
}

#sidebar::-webkit-scrollbar-thumb:horizontal,
#mainContent::-webkit-scrollbar-thumb:horizontal,
.source-view::-webkit-scrollbar-thumb:horizontal {
  background: linear-gradient(90deg, #ffd700, #00f7ff, #ff4500);
  border-radius: 5px;
}
#content-bnr {
  position: relative;
top:1px;
  left: 1px;

  /* Full width minus sidebar width */
  width: calc(100vw - 330px);

  /* Full height minus any header/footer if needed */
  height: 36%;

  background-image: url("new-wav.png?v=1");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;   /* shrink to fit without cutting off */

  overflow: hidden;
  box-sizing: border-box;
}
/* FIXED CONTENT AREA — AJAX visible */
#content {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 220px); /* subtract banner height */
  overflow-y: auto;                /* vertical scroll only */
  overflow-x: hidden;              /* prevent horizontal scroll bar */
  padding: 10px;
  background: transparent !important;
  box-sizing: border-box;

  /* Ensure scrollbar hugs the right edge */
  position: relative;
}

/* Force scrollbar to right edge of content cell */
#contentCell {
  position: relative;
  height: 100vh;
  overflow: hidden;                /* prevent double scrollbars */
}
