/**
 * ============================================================================
 * THE HIGHTOWER SCHOOL OF DIGITAL ARTS & APPLIED SCIENCES
 * Master Theme & Global Component Stylesheet (v9.05.00)
 * File: css/styles.css
 * ============================================================================
 */

:root,
[data-theme="dark"] {
  --bg-app: #060911;
  --bg-stage: #090d16;
  --bg-panel: rgba(15, 23, 42, 0.9);
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(56, 189, 248, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --blur-hud: blur(14px);
}

[data-theme="day"] {
  --bg-app: #f8fafc;
  --bg-stage: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(241, 245, 249, 0.9);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-glow: rgba(2, 132, 199, 0.3);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-cyan: #0284c7;
  --accent-blue: #1d4ed8;
  --accent-gold: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;

  --blur-hud: blur(10px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================================================
   UNIVERSAL MODAL OVERLAYS (POINTER-EVENTS GUARD TO PREVENT CLICKS BLOCKING)
   ========================================================================= */
.hightower-modal-overlay {
  display: none !important;
  pointer-events: none !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hightower-modal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.notebook-glm-window {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  background: #0b1120;
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { transform: scale(0.95) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.glm-modal-header {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.glm-header-title-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.glm-backpack-badge {
  font-size: 1.3rem;
}

.glm-brand-heading {
  font-family: 'Fredoka', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.glm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.glm-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.glm-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
}

.glm-tabs-navbar {
  background: #070a12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 12px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
}

.glm-nav-tab {
  flex: 1 1 0;
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-width: 0;
}

.glm-nav-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.glm-nav-tab.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.glm-studio-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  box-sizing: border-box;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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