/* =======================================================
   Sistema DISC — design tokens e componentes visuais
   ======================================================= */

:root {
  --disc-primary: #6552f6;
  --disc-primary-dark: #4d3ce0;
  --disc-accent: #17c3b2;
  --disc-bg: #f5f6fb;
  --disc-surface: #ffffff;
  --disc-surface-2: #fafbff;
  --disc-border: #eaecf5;
  --disc-text: #1c1e2b;
  --disc-text-muted: #6b7086;
  --disc-shadow: 0 4px 24px rgba(31, 35, 70, 0.06);
  --disc-shadow-lg: 0 12px 40px rgba(31, 35, 70, 0.10);
  --disc-radius: 1rem;

  --disc-dominancia: #ef4d5e;
  --disc-influencia: #f5a623;
  --disc-estabilidade: #17c3b2;
  --disc-conformidade: #4d7cf5;
}

[data-bs-theme="dark"] {
  --disc-bg: #12131c;
  --disc-surface: #191b28;
  --disc-surface-2: #1f2233;
  --disc-border: #2a2d40;
  --disc-text: #eef0f8;
  --disc-text-muted: #9296ad;
  --disc-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --disc-shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
}

body {
  background-color: var(--disc-bg);
  color: var(--disc-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- Layout: Auth (login / registro / recuperacao) ---------- */

.disc-auth-shell {
  min-height: 100vh;
  display: flex;
}

.disc-auth-brand {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--disc-primary) 0%, var(--disc-primary-dark) 55%, #2c1f6b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.disc-auth-brand::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(23, 195, 178, 0.25);
  bottom: -160px;
  right: -120px;
  filter: blur(10px);
}

.disc-auth-form-col {
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.disc-auth-card {
  width: 100%;
  max-width: 420px;
}

.disc-factor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  margin: 0.2rem 0.3rem 0.2rem 0;
}

.disc-factor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Cards / Surfaces ---------- */

.disc-card {
  background: var(--disc-surface);
  border: 1px solid var(--disc-border);
  border-radius: var(--disc-radius);
  box-shadow: var(--disc-shadow);
}

.disc-card-lg {
  border-radius: 1.25rem;
  box-shadow: var(--disc-shadow-lg);
}

.disc-stat-card {
  background: var(--disc-surface);
  border: 1px solid var(--disc-border);
  border-radius: var(--disc-radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--disc-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.disc-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--disc-shadow-lg);
}

.disc-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ---------- App shell (dashboard) ---------- */

.disc-app-shell {
  display: flex;
  min-height: 100vh;
}

.disc-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--disc-surface);
  border-right: 1px solid var(--disc-border);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.disc-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.disc-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  color: var(--disc-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  margin-bottom: 0.15rem;
}

.disc-nav-link:hover {
  background: var(--disc-surface-2);
  color: var(--disc-text);
}

.disc-nav-link.active {
  background: rgba(101, 82, 246, 0.12);
  color: var(--disc-primary);
}

.disc-nav-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.disc-nav-badge {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--disc-surface-2);
  color: var(--disc-text-muted);
}

.disc-main {
  flex: 1;
  min-width: 0;
}

.disc-topbar {
  background: var(--disc-surface);
  border-bottom: 1px solid var(--disc-border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.disc-content {
  padding: 1.75rem;
}

.disc-theme-toggle {
  border: 1px solid var(--disc-border);
  background: var(--disc-surface-2);
  color: var(--disc-text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Form controls ---------- */

.form-control, .form-select {
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  border-color: var(--disc-border);
  background-color: var(--disc-surface);
  color: var(--disc-text);
}

.btn-disc-primary {
  background: linear-gradient(135deg, var(--disc-primary), var(--disc-primary-dark));
  color: #fff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.65rem 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(101, 82, 246, 0.25);
}

.btn-disc-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

@media (max-width: 991.98px) {
  .disc-auth-brand {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .disc-sidebar {
    position: fixed;
    left: -280px;
    z-index: 1050;
    transition: left 0.2s ease;
    box-shadow: var(--disc-shadow-lg);
  }
  .disc-sidebar.show {
    left: 0;
  }
}
