/* Datadini Custom Styles */
/* Load Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply Poppins as the default font */
body, 
.ant-typography,
.superset-dashboard,
.dashboard-component {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ============================================
   DATADINI CUSTOM LOADER
   Replaces default Superset spinner with Datadini icon
   ============================================ */

/* Pulse animation - smooth fade in/out */
@keyframes datadini-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide default Ant Design spinner dots */
.ant-spin .ant-spin-dot,
.ant-spin-dot {
  display: none !important;
}

/* Replace spinner with Datadini icon */
.ant-spin {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ant-spin::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  background-image: url('/static/assets/custom/images/datadini-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: datadini-pulse 1.2s ease-in-out infinite;
}

/* Larger spinner variant */
.ant-spin-lg::before {
  width: 64px;
  height: 64px;
}

/* Smaller spinner variant */
.ant-spin-sm::before {
  width: 32px;
  height: 32px;
}

/* Loading overlay backdrop */
.ant-spin-container.ant-spin-blur::after {
  background: rgba(255, 255, 255, 0.85);
}

/* Full page loading state */
.loading .ant-spin::before,
.dashboard--loading .ant-spin::before {
  width: 72px;
  height: 72px;
}

