
/*
  Custom Properties for The Human Initiative Theme
  This acts as the single source of truth for the color palette.
  Tailwind CSS is configured in index.html to use these variables.
*/
:root {
  --thi-blue: #0A3D62;
  --thi-blue-dark: #082f49;
  --thi-cyan: #00a8ff;
  --thi-gray-100: #f7fafc;
  --thi-gray-200: #edf2f7;
  --thi-gray-300: #e2e8f0;
  --thi-gray-400: #cbd5e0;
  --thi-gray-500: #a0aec0;
  --thi-gray-600: #718096;
  --thi-gray-700: #4a5568;
  --thi-gray-800: #2d3748;
  --thi-gray-900: #1a202c;
}

/*
  Global Styles & Resets
  Ensures a consistent baseline across browsers.
*/
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--thi-gray-100);
  color: var(--thi-gray-800);
}

#root {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/*
  Application Loader
  This is displayed while the React application is initializing.
  React will automatically remove this content when it mounts into the #root element.
*/
.app-loader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  min-height: 100vh;
  background-color: var(--thi-gray-100);
  color: var(--thi-gray-700);
}

.app-loader .spinner {
  width: 40px;
  height: 40px;
  border: 5px solid var(--thi-cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

/* Keyframes for animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}
