/* ==========================================================================
   EdCatalyst — Faculty Tools Suite Dashboard Shell
   Replaces the old fixed sidebar+topbar with the site's standard
   navbar/footer + an in-page tab switcher for the 3 tools.
   (Layers on top of ../../styles/main.css for shared variables/navbar/footer.)
   ========================================================================== */

body {
  font-family: 'Poppins', sans-serif;
  background: var(--ec-bg);
}

/* ---------------- Hero ---------------- */
.suite-hero {
  position: relative;
  overflow: hidden;
}

.suite-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0 1rem;
}

.suite-hero-sub {
  font-size: 1.05rem;
  color: var(--ec-ink-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------------- Tool tabs (replaces sidebar nav) ---------------- */
.suite-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.suite-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #f0e2d3;
  border-radius: 16px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ec-ink-soft);
  cursor: pointer;
  transition: all 0.25s ease;
  flex: 1;
  min-width: 220px;
  justify-content: center;
}

.suite-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: var(--ec-gradient-1);
}

.suite-tab.tab-co .suite-tab-icon { background: var(--ec-gradient-3); }
.suite-tab.tab-audit .suite-tab-icon { background: linear-gradient(135deg, var(--ec-peacock-blue), var(--ec-ink)); }

.suite-tab:hover {
  border-color: var(--ec-terracotta);
  color: var(--ec-terracotta);
  transform: translateY(-2px);
}

.suite-tab.active {
  background: var(--ec-gradient-1);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--ec-shadow-soft);
}

.suite-tab.active.tab-co { background: var(--ec-gradient-3); }
.suite-tab.active.tab-audit { background: linear-gradient(135deg, var(--ec-peacock-blue), var(--ec-ink)); }

.suite-tab.active .suite-tab-icon {
  background: rgba(255, 255, 255, 0.25);
}

/* ---------------- Tool panel container ---------------- */
.suite-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.tool-panel {
  display: none;
}

.tool-panel.panel-visible {
  display: block;
  animation: panelFadeIn 0.3s ease;
}

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

/* ---------------- Per-panel mini header (was .panel-hero) ---------------- */
.panel-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ec-shadow-soft);
  border: 1px solid rgba(168, 60, 12, 0.06);
}

.panel-hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
  background: var(--ec-gradient-1);
}

.panel-hero-icon.co { background: var(--ec-gradient-3); }
.panel-hero-icon.audit { background: linear-gradient(135deg, var(--ec-peacock-blue), var(--ec-ink)); }

.panel-hero-text h2 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 3px;
  color: var(--ec-ink);
}

.panel-hero-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ec-ink-soft);
}

/* ---------------- Dark mode toggle (kept, repositioned) ---------------- */
.dark-toggle {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 1200;
  background: var(--ec-card-bg);
  border: 1.5px solid #f0e2d3;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ec-shadow-soft);
  font-size: 1.05rem;
  color: var(--ec-ink);
  transition: all 0.25s ease;
}

.dark-toggle:hover {
  border-color: var(--ec-terracotta);
  color: var(--ec-terracotta);
  transform: scale(1.08);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .suite-hero-title {
    font-size: 1.8rem;
  }
  .suite-tabs {
    flex-direction: column;
  }
  .suite-tab {
    min-width: 100%;
  }
  .panel-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
  .dark-toggle {
    bottom: 80px;
    right: 16px;
  }
}
