:root {
  --bg-1: #f2f6f7;
  --bg-2: #e7eef0;
  --ink: #1a2b2f;
  --muted: #607178;
  --card: #ffffff;
  --brand: #0f7a74;
  --brand-dark: #0a5b56;
  --accent: #e58e2b;
  --danger: #c74343;
  --ok: #2f8f57;
  --line: #d7e2e4;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 122, 116, 0.12), transparent 32%),
    radial-gradient(circle at 85% 90%, rgba(229, 142, 43, 0.16), transparent 30%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-mark {
  font-family: "Space Grotesk", sans-serif;
}

.auth-screen {
  min-height: 100vh;
  min-width: 100vw;
  background-color: #e9f9f8; /* cinza levinho de fundo, igual Salesforce */
}

.auth-card {
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffff !important;
}

.auth-title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.sidebar {
  background: #f8fbfb;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(130deg, var(--brand), #2da49d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-pills .nav-link {
  color: var(--ink);
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.content-area {
  animation: fadeIn 0.5s ease;
  position: relative;
}

#alerts {
  position: fixed;
  top: 0.75rem;
  left: calc(16.666667% + 1rem);
  right: 1rem;
  z-index: 1080;
  margin-bottom: 0 !important;
  padding: 0;
  pointer-events: none;
}

#alerts .alert {
  margin-bottom: 0;
  margin-left: auto;
  max-width: 720px;
  box-shadow: 0 10px 24px rgba(20, 48, 58, 0.12);
  pointer-events: auto;
}

.content-inner {
  padding-top: 0.75rem;
}

@media (max-width: 991.98px) {
  #alerts {
    left: calc(25% + 0.75rem);
    right: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  #alerts {
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
  }

  #alerts .alert {
    max-width: none;
  }
}

.card {
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(20, 48, 58, 0.06);
}

.metric-card .metric-value {
  font-size: 1.75rem;
  font-weight: 800;
}

.metric-card-clickable .metric-value {
  color: #1d66d1;
}

.metric-card-clickable {
  cursor: pointer;
}

.metric-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge-soft {
  background: #eaf4f3;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.kanban-col {
  min-height: 320px;
  background: #f8fbfb;
  border: 1px dashed #c6d6d9;
  border-radius: 12px;
  padding: 0.75rem;
}

.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
}

.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d4e2e4;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
}

.small-muted {
  color: var(--muted);
}

.table thead th {
  border-top: none;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-pills {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }

  .nav-pills .nav-link {
    margin-right: 0.35rem;
    margin-bottom: 0;
  }
}

/* ─── Notification bell ─────────────────────────────────────────────────── */
.btn-notif {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.btn-notif:hover {
  background: var(--bg-2);
}
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ─── Notification panel ────────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 4px 0 24px rgba(20,48,58,0.12);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.notif-panel-hidden {
  transform: translateX(-100%);
  pointer-events: none;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.notif-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--bg-2);
  position: relative;
  transition: background 0.12s;
}
.notif-item:hover {
  background: var(--bg-1);
}
.notif-unread {
  background: #f0faf9;
}
.notif-read {
  opacity: 0.7;
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #2da49d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.notif-read .notif-icon {
  background: #c8d8da;
}
.notif-body {
  flex: 1;
  min-width: 0;
}
.notif-name {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 1px;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.opp-path-wrap {
  gap: 0.5rem;
}

.opp-path-step {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.opp-path-step:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #eef8f7;
}

.opp-path-step.is-completed {
  background: #e8f5f3;
  border-color: #bfe1dd;
  color: var(--brand-dark);
}

.opp-path-step.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark);
  color: #fff;
}

.opp-path-step.is-locked {
  opacity: 0.72;
  cursor: not-allowed;
}

.opp-path-sep {
  color: #9aaeb4;
  font-size: 0.75rem;
}

.auth-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.auth-split-card {
  display: flex;
  width: 1100px;
  max-width: 98vw;
  min-height: 680px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #fafbf8;
}

.auth-split-left {
  flex: 0 0 42%;
  padding: 4rem 3.5rem;
  background-color: #fafbf8;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-split-divider {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, transparent, #8BAEC8 20%, #8BAEC8 80%, transparent);
}

.auth-split-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0; /* <- isso corrige o flex ignorando o overflow */
}

.auth-split-right img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Responsivo: empilha no mobile */
@media (max-width: 600px) {
  .auth-split-card {
    flex-direction: column;
  }
  .auth-split-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8BAEC8 20%, #8BAEC8 80%, transparent);
  }
  .auth-split-right {
    min-height: 220px;
  }
}

.auth-title{
  text-align:center;
}
