/* =============================================
   DASHBOARD GRID (ENCOM STYLE)
   ============================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  grid-template-rows: 100%;
  gap: 20px;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.dash-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.dash-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.dash-comms {
  flex: 2;
  min-height: 0;
}
.dash-datalink {
  flex: 1.05;
  min-height: 0;
}

.dash-main {
  flex: 1.5;
  min-height: 0;
}

.dash-keyboard {
  flex: 1;
  min-height: 0;
}

/* =============================================
   ENCOM PANELS & BORDERS
   ============================================= */
.encom-panel {
  position: relative;
  border: 1px solid rgba(0, 191, 255, 0.4);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 10px rgba(0, 191, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 12px;
  min-height: 0;
  min-width: 0;
}

.encom-header {
  display: flex;
  justify-content: space-between;
  background: #00bfff;
  color: #000;
  padding: 6px 12px;
  margin-bottom: 12px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.encom-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 191, 255, 0.5);
  padding-top: 6px;
  margin-top: 12px;
  font-size: 18px;
  text-transform: uppercase;
  color: #00bfff;
  letter-spacing: 1px;
}

.panel-content {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* =============================================
   FOLDERS (TABS)
   ============================================= */
.dash-folders {
  display: flex;
  gap: 25px;
  min-height: 0;
  justify-content: center;
  margin: 5px 0;
}

.folder-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0px;
  cursor: pointer;
  visibility: hidden;
}

.folder-tab.revealed {
  visibility: visible;
}

.folder-name {
  color: #00bfff;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: normal;
  z-index: 10;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-bottom: 3px;
  padding: 0 4px;
  background: transparent;
  border: none;
  width: 110px;
  box-sizing: border-box;
}

.folder-tab:hover .folder-name {
  background: #00bfff;
  color: #000;
  text-shadow: none;
}

.folder-icon {
  width: 110px;
  height: 59px;
  position: relative;
  z-index: 1;
}

/* Main body of the folder */
.folder-icon::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 50px;
  border: 2px solid #00bfff;
  background: transparent;
  box-sizing: border-box;
}

/* Top tab of the folder outline */
.folder-icon::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 35px;
  height: 11px;
  border: 2px solid #00bfff;
  border-bottom: none;
  background: #060503;
  z-index: 2;
  box-sizing: border-box;
}

/* Clear gap under the top tab so the folder outline connects perfectly */


/* =============================================
   VIRTUAL KEYBOARD
   ============================================= */
#virtual-keyboard {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.kb-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 800px;
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.kb-key {
  color: #00bfff;
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  min-width: 22px;
  transition: all 0.1s;
}

.kb-key:hover {
  background: rgba(0, 191, 255, 0.2);
}

.kb-active {
  background: #00bfff !important;
  color: #000 !important;
  box-shadow: none;
}

.kb-space {
  min-width: 300px;
  border: 1px solid #00bfff;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kb-special {
  color: rgba(0,191,255,0.6);
  font-size: 18px;
}

/* =============================================
   ROTATE PROMPT
   ============================================= */
#rotate-prompt {
  display: none;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  z-index: 900;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #00bfff;
  padding: 20px;
}


.folder-tab.room {
  border: none;
  background: transparent;
  box-shadow: none;
}
.folder-tab.room:hover {
  background: transparent;
  box-shadow: none;
}
.folder-tab.active-room {
  background: transparent !important;
  box-shadow: none !important;
}

/* =============================================
   DATALINK PLAYROOM VISUALIZATION
   ============================================= */
.radar-subject {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #00bfff;
  border-radius: 50%;
}

.eq-bar {
  width: 4px;
  background: #00bfff;
  height: 5px;
}

.eq-1 { animation: eqBounce 0.4s ease-in-out infinite alternate; }
.eq-2 { animation: eqBounce 0.6s ease-in-out infinite alternate-reverse; }
.eq-3 { animation: eqBounce 0.3s ease-in-out infinite alternate; }
.eq-4 { animation: eqBounce 0.7s ease-in-out infinite alternate-reverse; }
.eq-5 { animation: eqBounce 0.5s ease-in-out infinite alternate; }
.eq-6 { animation: eqBounce 0.8s ease-in-out infinite alternate-reverse; }
.eq-7 { animation: eqBounce 0.45s ease-in-out infinite alternate; }
.eq-8 { animation: eqBounce 0.65s ease-in-out infinite alternate-reverse; }

.radar-red-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ff4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff4444;
  z-index: 10;
}

.radar-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(0,191,255,0.8);
  box-shadow: 0 0 5px #00bfff;
  animation: scanlineSweep 4s linear infinite;
  z-index: 5;
}

.radar-observer {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid #00f0ff;
  background: transparent;
  box-shadow: 0 0 5px #00f0ff;
}


/* Focus Mode Dimming */
body.focus-mode .dash-left,
body.focus-mode .dash-keyboard {
  opacity: 0.8;
  filter: brightness(0.85);
}

.fullscreen-modal { position: fixed !important; top: 0; left: 0; width: 100vw !important; height: 100vh !important; z-index: 1000; background: #000; padding: 40px !important; }

