:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
.sidebar {
  width: 250px;
  height: 100vh;
  background-color: #1a1a1a;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #333;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-link:hover {
  background-color: #333;
}

.sidebar-link.active {
  background-color: #2563eb;
}

.sidebar-icon {
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.sidebar-label {
  font-size: 0.95rem;
}
.layout {
  min-height: 100vh;
}

.layout-main {
  margin-left: 250px;
  width: calc(100vw - 250px);
  min-height: 100vh;
  background-color: #f5f5f5;
}
.widget-container {
  padding: 2rem;
  background-color: #f5f5f5;
  min-height: 100vh;
  width: 100%;
}

.widget-wrapper {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.example-widget {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.widget-header {
  background: #2563eb;
  color: white;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ddd;
}

.widget-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.widget-body {
  padding: 1.5rem;
}

.widget-info {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 4px;
}

.widget-info h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #374151;
}

.widget-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.widget-info li:last-child {
  border-bottom: none;
}

.widget-loading {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.widget-error {
  padding: 1rem;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #991b1b;
  margin-bottom: 1rem;
}

.widget-data {
  margin-bottom: 1.5rem;
}

.widget-data h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.widget-data pre {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.875rem;
}

.widget-description {
  padding: 1rem;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
}

.widget-description p {
  margin: 0.5rem 0;
  color: #1e40af;
  font-size: 0.9rem;
}

.widget-description p:first-child {
  margin-top: 0;
}

.widget-description p:last-child {
  margin-bottom: 0;
}
.climate-risk-analysis-fill {
  width: 100%;
  min-height: 100%;
}

.climate-risk-analysis-fill .MuiPaper-root {
  background-color: #ffffff;
}

.climate-risk-analysis-fill .MuiTableCell-root {
  font-size: 0.875rem;
}

.climate-risk-analysis-fill .MuiButton-root {
  font-weight: 500;
}
.climate-risk-analysis-detail {
  width: 100%;
  min-height: 100%;
}

.climate-risk-analysis-detail .MuiSlider-mark {
  background-color: #bdbdbd;
}

.climate-risk-analysis-detail .MuiSlider-markLabel {
  font-size: 0.75rem;
}

.climate-risk-analysis-detail .MuiCard-root {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.climate-risk-analysis-financial {
  width: 100%;
  min-height: 100%;
}

.climate-risk-analysis-financial .MuiCard-root {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.climate-risk-analysis-questions {
  width: 100%;
  min-height: 100%;
}

.climate-risk-analysis-questions .MuiCard-root {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.action-plan-container {
  width: 100%;
  min-height: 100%;
}
.climate-risk-dashboard {
  width: 100%;
  min-height: auto;
}

.climate-risk-dashboard-loading,
.climate-risk-dashboard-error {
  width: 100%;
}

/* Ensure Superset iframe takes full width and fits content */
.climate-risk-dashboard iframe {
  width: 100% !important;
  min-height: 400px;
  height: auto;
  border: none;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  min-height: 100vh;
}
