/* Shared dashboard loading shell — index.html + React use identical markup/classes */
html,
body,
#root {
  margin: 0;
  min-height: 100%;
  background: #f8f9fa;
  font-family: Inter, system-ui, sans-serif;
}

html.embedded-in-crm,
html.embedded-in-crm body,
html.embedded-in-crm #root {
  height: 100%;
  overflow: hidden;
}

html.embedded-in-crm #root {
  overflow-x: hidden;
  overflow-y: auto;
}

html.embedded-in-crm,
html.embedded-in-crm * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.embedded-in-crm::-webkit-scrollbar,
html.embedded-in-crm *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.dashboard-loading-screen {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 1.5rem;
  box-sizing: border-box;
}

html.embedded-in-crm .dashboard-loading-screen {
  min-height: 100%;
}

.dashboard-loading-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.dashboard-loading-icon-wrap {
  margin: 0 auto;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #eef2ff;
}

.dashboard-loading-spinner {
  height: 1.5rem;
  width: 1.5rem;
  border: 2px solid #e5e7eb;
  border-top-color: #0033ff;
  border-radius: 50%;
  animation: dashboard-loading-spin 1s linear infinite;
}

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

.dashboard-loading-title {
  margin: 1.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.dashboard-loading-description {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #6b7280;
}
