/* ===================================================
   MAIN DASHBOARD & 2x3 GRID LAYOUT (APPSCHEMA SPEC)
   =================================================== */

.dashboard-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100vh;
}

/* ----------------------------------------------------
   TOP HEADER HUD & AGENT STATUS
   ---------------------------------------------------- */
.dash-header-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 229, 255, 0.25);
  padding-bottom: 1rem;
}

.system-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sys-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.sys-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.sys-sub {
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
}

.user-clearance-badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.agent-info {
  text-align: right;
  font-size: 0.78rem;
}

.agent-info .name {
  color: var(--neon-green);
  font-weight: bold;
  letter-spacing: 1.5px;
}

.agent-info .badge {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.btn-lockout {
  background: rgba(255, 42, 95, 0.15);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lockout:hover {
  background: var(--neon-red);
  color: #ffffff;
  box-shadow: var(--red-glow);
}

/* ----------------------------------------------------
   STEP 2: TOP NAVIGATION (5 PILL-SHAPED BUTTONS)
   Reference: appschema.png
   ---------------------------------------------------- */
.top-pill-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.nav-pill-btn {
  background: rgba(10, 17, 36, 0.7);
  color: var(--text-primary);
  border: 2px solid #ff2a5f; /* Default red outline styled in schema */
  border-radius: 9999px; /* Pill shape */
  padding: 0.65rem 1.65rem;
  font-family: 'Share Tech Mono', 'Consolas', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s ease;
  position: relative;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 42, 95, 0.15);
}

/* App 4 and 5 in schema with variation */
.nav-pill-btn:nth-child(4),
.nav-pill-btn:nth-child(5) {
  border-color: #ff2a5f;
}

.nav-pill-btn:hover {
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
  transform: translateY(-2px);
}

.nav-pill-btn.active {
  background: rgba(255, 42, 95, 0.2);
  border-color: #ff2a5f;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.6), inset 0 0 10px rgba(255, 42, 95, 0.3);
}

/* ----------------------------------------------------
   STEP 2: RESPONSIVE 2-ROW, 3-COLUMN MODULE GRID
   Reference: appschema.png
   ---------------------------------------------------- */
.modular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: 1.5rem;
  flex-grow: 1;
}

/* Rounded-rectangle Modules */
.grid-module {
  background: rgba(10, 17, 36, 0.85);
  border-radius: 28px; /* Prominent rounded corners matching appschema.png */
  padding: 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Top-Left Red Module (Domain Checker as in appschema.png) */
.module-domain-checker {
  border: 2px solid #ff2a5f;
  box-shadow: 0 0 20px rgba(255, 42, 95, 0.25);
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

/* Top-Middle Red Module in schema */
.module-placeholder-red {
  border: 2px solid #ff2a5f;
  box-shadow: 0 0 15px rgba(255, 42, 95, 0.15);
}

/* Standard Dark Modules in schema */
.module-placeholder-dark {
  border: 2px solid #2a3b5c;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.grid-module:hover {
  transform: translateY(-3px);
}

.module-placeholder-dark:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.module-placeholder-red:hover {
  border-color: #ff4d79;
  box-shadow: 0 0 22px rgba(255, 42, 95, 0.4);
}

/* Placeholder Inner Content */
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  color: var(--text-dim);
  padding: 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  background: rgba(0, 229, 255, 0.08);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.placeholder-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.placeholder-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Responsive Grid Adaptation */
@media (max-width: 1100px) {
  .modular-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

@media (max-width: 720px) {
  .modular-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .top-pill-nav {
    justify-content: center;
  }
  .dash-header-hud {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
