/* ==========================================================================
   OLAB Assist - Isolated AppShell, Header Navbar, Mobile Drawer & Footer
   ========================================================================== */

/* App Shell Base Layout */
#app-container {
  display: block;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
  padding-top: 64px;
}

main#main-content {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.view-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 3rem 1.5rem;
  transition: opacity 0.25s ease;
}

.view-section.hidden {
  display: none !important;
}

.view-section.active {
  display: block !important;
}

/* Background Glowing Elements */
.bg-gradient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #070a14;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.28) 0%, rgba(6, 182, 212, 0.22) 35%, rgba(59, 130, 246, 0.18) 60%, transparent 80%),
    radial-gradient(circle at 15% 15%, rgba(0, 245, 160, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(0, 242, 254, 0.2) 0%, transparent 45%),
    radial-gradient(circle at 80% 85%, rgba(59, 130, 246, 0.18) 0%, transparent 45%);
  filter: blur(40px);
  opacity: 0.65;
}

.data-wave-container {
  position: fixed;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.55;
}

.data-wave-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}

.data-wave-ring-1 {
  width: 750px;
  height: 750px;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.25), inset 0 0 40px rgba(16, 185, 129, 0.12);
  opacity: 0.7;
}

.data-wave-ring-2 {
  width: 1150px;
  height: 1150px;
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.2), inset 0 0 45px rgba(6, 182, 212, 0.1);
  opacity: 0.5;
}

.data-wave-ring-3 {
  width: 1550px;
  height: 1550px;
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 0 70px rgba(59, 130, 246, 0.15);
  opacity: 0.3;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 80%);
}

.preview-env-banner {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.preview-env-banner .preview-tag {
  background: rgba(79, 70, 229, 0.2);
  color: #818cf8;
  border: 1px solid rgba(79, 70, 229, 0.35);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* Responsive Viewport Adjustments for AppShell */
@media (max-width: 768px) {
  #app-container {
    padding-top: 58px;
  }
  .view-section {
    padding: 0.75rem 0.85rem 2.5rem 0.85rem;
  }
}
