/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific.css ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Funding Activities Table Styles */
.funding-activities-table-container {
  padding: 2rem;
  border-radius: 8px;
}

.funding-activities-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table {
  width: 100%;
  border-collapse: collapse;
  /* background: white; */
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.funding-activities-table thead {
  border-bottom: 1px solid #DDDDDD;
  text-align: center;
}

.funding-activities-table th {
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #333333;
  font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table th:first-child {
  text-align: left;
}

.funding-activities-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #cbcbcb;
  vertical-align: middle;
  text-align: center;
}

.funding-activities-table td:first-child {
  text-align: left;
}

.funding-activities-table tr {
  /* border-bottom: 1px solid #f0f0f0 !important;  */
}

.funding-activities-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.funding-activities-table tfoot {}

.funding-activities-table tfoot td {
  padding: 1rem 0.75rem;
  font-weight: 600;
  color: #333333;
  text-align: center;
}

.funding-activities-table tfoot td:first-child {
  text-align: left;
}

/* Program item styling */
.program-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333333;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.color-indicator.horizon {
  background-color: #345B8B;
}

.color-indicator.interreg {
  background-color: #5B8BB4;
}

.color-indicator.tecnonidi {
  background-color: #4A8B8B;
}

.color-indicator.trasformazioni {
  background-color: #6BB4B4;
}

.color-indicator.reti {
  background-color: #8BCACA;
}

/* Value container styling */
.value-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.funding-activities-table-container .main-value {
  font-weight: 500;
  color: #333333;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funding-activities-table-container .percentage {
  font-size: 0.8rem;
  color: #666666;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .funding-activities-table-container {
    padding: 1rem;
  }

  .funding-activities-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .funding-activities-table th,
  .funding-activities-table td {
    padding: 0.75rem 0.5rem;
  }

  .funding-activities-table-container .main-value {
    font-size: 0.9rem;
  }

  .funding-activities-table-container .percentage {
    font-size: 0.75rem;
  }
}

/* Funding Sources Table Styles */
.funding-sources-table,
.funding-programs-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1.8fr 3.2fr 0.8fr 0.8fr;
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0;
  align-items: stretch;
}

.header-cell {
  padding: 15px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.header-cell:last-child {
  border-right: none;
}

.table-row {
  display: grid;
  grid-template-columns: 1.8fr 3.2fr 0.8fr 0.8fr;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

/* .table-row:hover {
  background-color: #f9fafb;
} */

.table-row:last-child {
  border-bottom: none;
}

/* Row background colors */
.row-light-provinciali {
  background-color: rgba(138, 190, 27, 0.1);
  /* Light provinciali */
}

.row-light-provinciali:hover {
  background-color: rgba(138, 190, 27, 0.2);
}

.row-light-coesione {
  background-color: rgba(195, 216, 27, 0.1);
  /* Light coesione */
}

.row-light-coesione:hover {
  background-color: rgba(195, 216, 27, 0.2);
}

.row-light-nazionali {
  background-color: rgba(0, 146, 70, 0.1);
  /* Light nazionali */
}

.row-light-nazionali:hover {
  background-color: rgba(0, 146, 70, 0.2);
}

.row-light-europei {
  background-color: rgba(var(--primary-rgb), 0.1);
  /* Light europei */
}

.row-light-europei:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
}

.row-light-misti {
  background-color: rgba(206, 43, 54, 0.1);
  /* Light misti */
}

.row-light-misti:hover {
  background-color: rgba(206, 43, 54, 0.2);
}

.source-cell,
.program-cell {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-right: 1px solid #e5e7eb;
}

.source-icon,
.program-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-provinciali {
  background-color: #8abe1b;
  /* Provinciali */
}

.icon-coesione {
  background-color: #c3d81b;
  /* Politica di Coesione */
}

.icon-nazionali {
  background-color: #009246;
  /* Nazionali */
}

.icon-europei {
  background-color: var(--primary);
  /* Europei */
}

.icon-misti {
  background-color: #ce2b36;
  /* Misti */
}

.source-content,
.program-content {
  flex: 1;
}

.source-name,
.program-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.program-subtitle {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.program-subtitle div {
  margin-bottom: 4px;
}

.program-link a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.program-link a:hover {
  text-decoration: underline;
}

.description-cell {
  padding: 20px;
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.5;
  border-right: 1px solid #e5e7eb;
}

.finanziati-cell,
.investment-cell,
.data-cell {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
  font-weight: 600;
  color: #1f2937;
  font-size: 1.05rem;
}

.finanziati-cell:last-child,
.investment-cell:last-child,
.data-cell:last-child {
  border-right: none;
}

/* Legend Styles */
.legend {
  margin-bottom: 2rem;
}

.legend-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Roboto Mono', monospace;
  text-transform: uppercase;
  color: #6E7880 !important;
  fill: #6E7880 !important;
}

.legend-grid {
  display: flex;
  gap: 1rem;
  /* wrap*/
  flex-wrap: wrap;
}

.legend-item-text {
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}

/* Subdivision Section Styles */
.subdivision-section {
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.subdivision-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.subdivision-description {
  font-size: 1.25rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Responsive design */
@media (max-width: 1200px) {

  .table-header,
  .table-row {
    grid-template-columns: 1.8fr 3.2fr 0.8fr;
  }
}

@media (max-width: 992px) {

  .table-header,
  .table-row {
    grid-template-columns: 1fr;
  }

  .header-cell,
  .source-cell,
  .program-cell,
  .description-cell,
  .finanziati-cell,
  .investment-cell,
  .data-cell {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .header-cell:last-child,
  .source-cell:last-child,
  .program-cell:last-child,
  .description-cell:last-child,
  .finanziati-cell:last-child,
  .investment-cell:last-child,
  .data-cell:last-child {
    border-bottom: none;
  }

  .table-header {
    display: none;
  }

  .table-row {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .source-cell,
  .program-cell {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
  }

  .description-cell {
    padding: 15px 20px;
    background: #ffffff;
  }

  .finanziati-cell,
  .investment-cell,
  .data-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
    padding: 15px 20px;
  }

  .finanziati-cell::before,
  .investment-cell::before,
  .data-cell::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
  }
}

/* Actors Diagram Styles */
.actors-diagram-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.actors-diagram-image {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.actors-diagram-overlay {
  position: absolute;
  /* background-color: rgba(0, 0, 0, 0.1); */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  /* Center circles on (left, top) and use % size so they scale 1:1 with the image */
  transform: translate(-50%, -50%);
  aspect-ratio: 1;
  height: auto;
}

/*.actors-diagram-overlay:hover {
  background-color: rgba(var(--primary-rgb), 0.3);
  border: 2px solid rgba(var(--primary-rgb), 0.5);
}*/

/* Overlay positions and sizes in % of container (matches image; 1:1 mapping on resize) */
#uni-trento {
  top: 82.5%;
  left: 31.5%;
  width: 12%;
}

#fbk {
  top: 62.5%;
  left: 6.5%;
  width: 12%;
}

#fem {
  top: 22%;
  left: 27%;
  width: 12%;
}

#apss {
  top: 15%;
  left: 50%;
  width: 11%;
}

#trentino-sviluppo {
  top: 80%;
  left: 74%;
  width: 13%;
}

#muse {
  top: 23%;
  left: 73%;
  width: 11%;
}

#hit {
  top: 48%;
  left: 95%;
  width: 12%;
}

@media (max-width: 768px) {
  .actors-diagram-overlay {
    border-radius: 50%;
  }
}

/* S3 Numbers Section Styles */
.s3-number-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem;
  min-height: 240px;
  background: #ffffff;
  border: 1px solid rgba(13, 71, 161, 0.08);
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.04);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  color: inherit;
  height: 100%;
}

.s3-number-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.12);
  border-color: rgba(13, 71, 161, 0.2);
}

.s3-number-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s3-number-icon svg {
  width: 100%;
  height: 100%;
}

.s3-number-card-projects .s3-number-icon {
  color: #43A047;
}

.s3-number-card-funding .s3-number-icon {
  color: #EF6C00;
}

.s3-number-card-actors .s3-number-icon {
  color: #F9A825;
}

.s3-number-value {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary, #0D47A1);
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.s3-number-label {
  font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--primary, #0D47A1);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

@media (max-width: 992px) {
  .s3-number-card {
    min-height: 220px;
    padding: 2rem 1.25rem;
    margin-bottom: 1rem;
  }

  .s3-number-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
  }

  .s3-number-value {
    font-size: 2.25rem;
  }

  .s3-number-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .s3-number-card {
    min-height: 200px;
    padding: 1.75rem 1rem;
  }

  .s3-number-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
  }

  .s3-number-value {
    font-size: 2rem;
  }

  .s3-number-label {
    font-size: 0.8rem;
  }
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific-components/Card/index.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* border radius 0 0 40 40 */
.custom-card {
    /* border-radius: 0 0 40px 40px !important; */
    border-radius: 0 0 0px 0px !important;
    border-top: 1px solid var(--primary);
}

/* Custom Card Component Styles */
.custom-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 0 auto;
    /* max-width: 300px; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    /* background-color: #f8f9fa; */
    border-radius: 8px;
    flex-shrink: 0;
}

.card-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Default colors for white background */
.card-value {
    font-size: 2.2rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 4px;
    font-family: 'Roboto Mono', serif;
}

.card-description {
    font-size: 1.25rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: lowercase;
    line-height: 1.3;
}

/* Colors for colored background (like P_Card) */
.custom-card[style*="background-color"] .card-value,
.custom-card[style*="backgroundColor"] .card-value {
    color: #fff;
}

.custom-card[style*="background-color"] .card-description,
.custom-card[style*="backgroundColor"] .card-description {
    color: #fff;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific-components/Card/StatisticsCard.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.statistics-card {
    background: white;
    /* border-radius: 0 0 40px 40px; */
    border-radius: 0 0 0px 0px;
    border-top: 1px solid var(--primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 0 auto;
    /* max-width: 400px; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.statistics-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7cb342;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 12px;
}

.card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    /* background-color: #f8f9fa; */
    border-radius: 50%;
    flex-shrink: 0;
}

.card-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.main-statistic {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-bottom: 5px;
}

.main-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 8px;
}

.main-label {
    font-size: 1.5rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: lowercase;
}

.progress-bar-container {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.additional-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 0;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 400;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.3;
    text-transform: lowercase;
}

/* Responsive design */
@media (max-width: 768px) {
    .statistics-card {
        padding: 20px;
        max-width: 100%;
    }
    
    .main-value {
        font-size: 3rem;
    }
    
    .additional-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        text-align: center;
    }
} 
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific-components/Card/LinkCard.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.link-card {
    background: white;
    /* border-radius: 0 0 40px 40px; */
    border-radius: 0 0 0px 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    min-height: 320px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15); */
}

.link-card__layout {
    display: flex;
    height: 100%;
    min-height: 320px;
}

.link-card__image-section {
    background-color: var(--primary);
    width: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.link-card__main-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    filter: invert(1) saturate(0);
}

.link-card__links-section {
    flex: 1;
    /* padding: 32px; */
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.link-card__link-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card__link-item:hover {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.link-card--primary {
    background: #4a90a4;
    color: white;
}

.link-card--secondary {
    background: #f8f9fa;
    color: #333;
}

.link-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.link-card__header--with-icon {
    justify-content: flex-start;
}

.link-card__header--no-icon {
    justify-content: start;
}

.link-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.link-card__title {
    font-size: 2.8rem !important;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.link-card__title {
    color: var(--primary);
}

.link-card__link-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--primary);
}

.link-card__content {
    flex: 1;
    margin-bottom: 32px;
}

.link-card__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.link-card--primary .link-card__description {
    color: rgba(255, 255, 255, 0.9);
}

.link-card--secondary .link-card__description {
    color: #6c757d;
}

.link-card__footer {
    margin-top: auto;
}

.link-card__button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .link-card {
        padding: 24px 20px;
        min-height: 280px;
    }

    .link-card__layout {
        flex-direction: column;
    }

    .link-card__image-section {
        width: 100%;
        padding: 20px;
    }

    .link-card__links-section {
        flex-direction: column;
        /* padding: 20px; */
        gap: 20px;
    }

    .link-card__link-title {
        font-size: 1.3rem;
    }

    .link-card__description {
        font-size: 1rem;
    }

    .link-card__header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 16px;
    }
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/Tooltip/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-tooltip {
    z-index: 999999 !important;
    position: fixed;
    text-align: left;
    padding: 0.75rem;
    background: var(--tooltip-background, #fff);
    color: var(--tooltip-text, #333);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid var(--tooltip-border, #e5e7eb);
    pointer-events: none;
    left: 0px;
    top: 0px;
    transition: opacity 0.2s;
    max-width: 16rem;
    min-width: 12rem;
    font-size: 0.875rem;
    line-height: 1.25;
    transform: none;
}

.d3-tooltip .tooltip-title {
    color: var(--tooltip-title-color, #373D3F);
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    padding: 0;
}

.d3-tooltip .tooltip-data {
    color: var(--tooltip-data-color, #373D3F);
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    padding: 0;
}

.d3-tooltip .tooltip-ring {
    color: var(--tooltip-ring-color, #6b7280);
    font-family: 'Titillium Web', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    padding: 0;
    margin-bottom: 4px;
}

.d3-tooltip .tooltip-date {
    color: var(--tooltip-date-color, #6b7280);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 0;
    margin-bottom: 4px;
}

.d3-tooltip p {
    margin: 0;
    margin-bottom: 2px;
}

.d3-tooltip p:last-child {
    margin-bottom: 0;
}

/* animate when showing or hiding the tooltip with fadein and fadeout animation */
.d3-fadein {
    opacity: 1;
    transition: opacity 0.2s;
}

.d3-fadeout {
    /* opacity: 0; */
    transition: opacity 0.2s;
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .d3-tooltip {
        background: var(--tooltip-background, #374151);
        color: var(--tooltip-text, #f9fafb);
        border-color: var(--tooltip-border, #4b5563);
    }
    
    .d3-tooltip .tooltip-title {
        color: var(--tooltip-title-color, #f9fafb);
    }
    
    .d3-tooltip .tooltip-data {
        color: var(--tooltip-data-color, #e5e7eb);
    }
    
    .d3-tooltip .tooltip-date {
        color: var(--tooltip-date-color, #9ca3af);
    }
}
*/
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/EuropeMap/index.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-eu-map {
    position: relative;
}

#legend {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-20rem, 4rem) !important;
}

.legend-title {
    font-size: .8em;
    text-transform: uppercase;
    font-family: 'Roboto Mono', monospace;
    color: #6E7880 !important;
    fill: #6E7880 !important;
}

.legend-axis {
    color: #808990;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.d3-eu-map {
    position: relative;
}

/* only on desktop */
@media (min-width: 1200px) {
    .map {
        position: absolute;
        left: -10%;
        top: 70%;
        /* transform: scale(1.5) */
        /* start scaling centering on top */
    }
}

.map {
    position: relative;
    left: 0;
    top: 0;
    transform: scale(1);

}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/HorizontalStackedBarChart/index.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-stacked-horizontal-bar-chart {
    position: relative;
    padding: 0 40px 20px 15px;
}

@media (max-width: 768px) {
    .d3-stacked-horizontal-bar-chart {
        padding: 0 8px 16px 8px;
    }

    /* Y-axis labels render over colored bars on mobile — use white fill for legibility on saturated bars */
    .d3-stacked-horizontal-bar-chart .y-axis-label text {
        fill: #ffffff !important;
        font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-style: normal !important;
        font-weight: 600 !important;
    }
}

.d3-chart:hover {
    cursor: default;
}



.y-axis-label {
    /* titillium web */
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 500 !important;
    color: #495057 !important;
}

.x-axis-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 500 !important;
    color: #495057 !important;
}

.x-axis-label text,
.y-axis-label text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

}


/*.tick line {
    display: none;
} */

.d3-stacked-horizontal-bar-chart line {
    stroke: #e9ecef;
    stroke-width: 1px;
}

.x-axis-label .tick line,
.y-axis-label .tick line {
    display: none;
}

/* Legend styles */
.legend {
    font-family: 'Titillium Web', sans-serif;
}

.legend-item text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px; /* Limit text width to prevent overflow */
}

.legend-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item rect {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1px;
    transition: all 0.2s ease;
}

.legend-item text {
    font-weight: 500;
    user-select: none;
    transition: all 0.2s ease;
}

.legend-item:hover rect {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2px;
    transform: scale(1.1);
}

.legend-item:hover text {
    font-weight: 600;
}

/* Disabled/inactive legend items */
.legend-item rect[opacity="0.3"] {
    filter: grayscale(70%);
}

.legend-item text[opacity="0.5"] {
    text-decoration: line-through;
    font-style: italic;
}

/* Active legend items on hover */
.legend-item:hover rect[opacity="1"] {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Bar label styles */
.bar-label {
    pointer-events: none;
    user-select: none;
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 600 !important;
}

/* Enhanced hover effects for bars */
.d3-stacked-horizontal-bar-chart rect:hover {
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

/* Smooth transitions for all elements */
.d3-stacked-horizontal-bar-chart * {
    transition: all 0.2s ease;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/SankeyChart/index.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.sankey-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sankey {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Sankey link styles */
.sankey path {
    transition: stroke-opacity 0.2s ease;
    cursor: pointer;
}

.sankey path:hover {
    stroke-opacity: 0.6 !important;
}

/* Sankey node styles */
.sankey rect {
    transition: filter 0.2s ease;
    cursor: pointer;
}

.sankey rect:hover {
    filter: brightness(1.1);
}

/* Node title rectangle styles */
.sankey-node-title-rect {
    transition: all 0.2s ease;
}

/* Text label styles */
.sankey text {
    font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
    pointer-events: none;
}

/* No data text styles */
.no-data-text {
    font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #6b7280;
}

/* Chart overlay for mouse interactions */
.chart-overlay {
    cursor: default;
}

/* Responsive design */
@media (max-width: 768px) {
    .sankey text {
        font-size: 9px;
    }
    
    .no-data-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sankey text {
        font-size: 8px;
    }
    
    .no-data-text {
        font-size: 11px;
    }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .no-data-text {
        fill: #9ca3af;
    }
    
    .sankey text {
        filter: contrast(1.2);
    }
    
    .sankey-node-title-rect {
        filter: brightness(0.9);
    }
}
*/

/* Smooth transitions for animations */
.sankey path,
.sankey rect,
.sankey text {
    transition: opacity 0.3s ease;
}

/* Enhanced hover effects - simplified to reduce flickering */
.sankey-container:hover .sankey path:not(:hover) {
    stroke-opacity: 0.2;
}

.sankey-container:hover .sankey rect:not(:hover) {
    opacity: 0.8;
} 
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/TreeMap/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-tree-map {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.d3-tree-map svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* TreeMap rectangle styles */
.treemap-rect {
    transition: all 0.2s ease;
    cursor: pointer;
}

.treemap-rect:hover {
    filter: brightness(1.1) !important;
    stroke-width: 2 !important;
}

/* Value label styles */
.treemap-value {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: white;
    pointer-events: none;
    text-anchor: left;
    dominant-baseline: left;
}

/* Text label styles */
.treemap-text {
    font-family: 'Titillium Web', sans-serif;
    font-size: 11px;
    font-weight: 500;
    fill: white;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.treemap-text tspan {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 500;
    fill: white;
}

/* No data text styles */
.no-data-text {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #6b7280;
}

/* Chart overlay for mouse interactions */
.chart-overlay {
    cursor: default;
}

/* Responsive design */
@media (max-width: 768px) {
    .treemap-value {
        font-size: 14px;
    }
    
    .treemap-text {
        font-size: 10px;
    }
    
    .treemap-text tspan {
        font-size: 10px;
    }
    
    .no-data-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .treemap-value {
        font-size: 12px;
    }
    
    .treemap-text {
        font-size: 9px;
    }
    
    .treemap-text tspan {
        font-size: 9px;
    }
    
    .no-data-text {
        font-size: 11px;
    }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .no-data-text {
        fill: #9ca3af;
    }
    
    .treemap-text {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
}
*/

/* Additional hover effects for better UX */
.d3-tree-map .treemap-rect:hover {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Smooth transitions for animations */
.d3-tree-map .treemap-rect,
.d3-tree-map .treemap-text {
    transition: opacity 0.3s ease;
} 
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Switch/index.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.switch-container {
    border-radius: 50px;
    background-color: #ebeced;
    width: fit-content;
}

.non-active-switch {
    background-color: #ebeced !important;
}

.switch-button {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 40px;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/ChartTable/ChartTable.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.chart-table-container {
  position: relative;
  /* border: 1px solid #e5e7eb; */
  /* border-radius: 8px; */
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
  overflow: visible;
  border-radius: 0px 0px 40px 40px !important;
}

.chart-table-container .chart-content {
  position: relative;
  background: white;
  min-height: 400px; /* Ensure enough space for chart and axis */
  /* border-radius: 0px 0px 40px 40px !important; */
  border-radius: 0px 0px 0px 0px !important;
}

/* Export dropdown styling */
.chart-table-container .export-dropdown {
  position: relative;
}

.chart-table-container .dropdown-menu {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}

.chart-table-container .dropdown-item {
  padding: 0.5rem 0.75rem;
  color: #374151;
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.chart-table-container .dropdown-item:hover {
  background: #f3f4f6;
  color: #0066cc;
}

/* Button styling */
.chart-table-container .btn-outline-secondary {
  border-color: #d1d5db;
  color: #374151;
}

.chart-table-container .btn-outline-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #0066cc;
}

/* Switch styling in container */
.chart-table-container .btn-group-toggle .btn {
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .chart-table-container {
    padding: .2rem;
  }

  .chart-table-container .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .chart-table-container .d-flex.align-items-center {
    justify-content: flex-end;
  }

  /* Tools row: allow wrapping on mobile to prevent overcrowding */
  .chart-table-container .tools-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
  }

  /* Left group: chart/table and relative/absolute switches */
  .chart-table-container .tools-row > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
  }

  /* Right group: project/funding toggle and export */
  .chart-table-container .tools-row > div:last-child {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
  }

  /* When groups wrap to separate rows, ensure consistent left alignment */
  @media (max-width: 600px) {
    .chart-table-container .tools-row > div:last-child {
      margin-left: 0;
      flex-basis: 100%;
      margin-top: 0.5rem;
    }
  }

  /* Switch stays inline, can shrink slightly */
  .chart-table-container .switch-container {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.25rem !important;
  }

  /* Reduce switch button padding slightly on mobile for better fit */
  .chart-table-container .switch-button {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
  }

  /* Export dropdown stays inline on the right */
  .chart-table-container .export-dropdown {
    display: inline-flex !important;
    flex: 0 0 auto;
  }

  /* Increase tap target on mobile */
  .chart-table-container .export-button {
    width: 44px !important;
    height: 44px !important;
  }

  /* Turn dropdown into a bottom sheet on mobile */
  .chart-table-container .dropdown-menu {
    position: fixed !important;
    right: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    top: auto !important;
    transform: none !important;
    min-width: unset !important;
    width: auto;
    z-index: 1050;
  }

  .chart-table-container .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
  .chart-table-container {
    background: #1f2937;
    border-color: #374151;
  }

  .chart-table-container .chart-content {
    background: #1f2937;
  }

  .chart-table-container .dropdown-menu {
    background: #374151;
    border-color: #4b5563;
  }

  .chart-table-container .dropdown-item {
    color: #d1d5db;
  }

  .chart-table-container .dropdown-item:hover {
    background: #4b5563;
    color: #3b82f6;
  }

  .chart-table-container .btn-outline-secondary {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
  }

  .chart-table-container .btn-outline-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
    color: #3b82f6;
  }
}
*/

.export-button {
  border: none;
  background-color: var(--primary) !important;
  color: white !important;
  cursor: pointer;
  border-radius: 36px !important;
  width: 50px !important;
  height: 40px !important;
}

.tools-row {
  background-color: #F7F7F7;
}
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/components/AreaDetailModal.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Area Detail Modal Platform-Specific Styling */

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden !important;
}

/* Target modal that contains area-detail-content */
.modal:has(.area-detail-content) .modal-content,
.area-detail-modal .modal-content {
  /* border-radius: 0 0 40px 40px !important; */
  border-radius: 0 0 0px 0px !important;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  height: auto;
}

/* When using scrollable, override Bootstrap's behavior to keep header fixed */
.modal:has(.area-detail-content) .modal-dialog-scrollable .modal-content,
.area-detail-modal .modal-dialog-scrollable .modal-content {
  max-height: 90vh;
  overflow: hidden;
  /* Prevent content from scrolling, body will scroll instead */
}

/* Modal dialog - constrain height */
.modal:has(.area-detail-content) .modal-dialog,
.area-detail-modal .modal-dialog {
  max-height: 90vh;
  margin: 1.75rem auto;
  display: flex;
  flex-direction: column;
}

.modal:has(.area-detail-content) .modal-dialog-scrollable,
.area-detail-modal .modal-dialog-scrollable {
  max-height: calc(90vh - 3.5rem);
  height: auto;
}

/* Modal header styling - matching platform SectionHeader style */
.modal:has(.area-detail-content) .modal-header,
.area-detail-modal .modal-header {
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-bottom: 2px solid var(--primary) !important;
  padding: 1.5rem 2rem !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: none !important;
  flex-shrink: 0;
  /* Prevent header from shrinking */
}

.modal:has(.area-detail-content) .modal-title,
.area-detail-modal .modal-title {
  font-size: 1.75rem !important;
  font-weight: 600 !important;
  margin: 0;
  flex: 1;
}

/* Close button styling */
.modal:has(.area-detail-content) .btn-close,
.area-detail-modal .btn-close {
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 0.5rem;
  filter: brightness(0) saturate(100%) invert(23%) sepia(95%) saturate(2000%) hue-rotate(186deg) brightness(95%) contrast(95%);
}

.modal:has(.area-detail-content) .btn-close:hover,
.area-detail-modal .btn-close:hover {
  opacity: 1;
}

/* Modal body - make it scrollable */
.modal:has(.area-detail-content) .modal-body,
.area-detail-modal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  /* Important for flex scrolling */
}

/* Statistics row - horizontal layout */
.area-statistics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.area-stat-item {
  background: white;
  /* border-radius: 8px; */
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
}

.area-stat-item:hover {
  border-color: #b3d9e8;
}

.area-stat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.area-stat-content {
  flex: 1;
  min-width: 0;
}

.area-stat-label {
  font-size: 0.95rem;
  color: #1f2937;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
  line-height: 1.4;
}

.area-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}

/* Responsive statistics */
@media (max-width: 992px) {
  .area-statistics-row {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.875rem;
  }
}

@media (max-width: 768px) {
  .area-statistics-row {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .area-stat-item {
    padding: 1rem;
  }

  .area-stat-icon {
    width: 32px;
    height: 32px;
  }

  .area-stat-value {
    font-size: 1.5rem;
  }

  .area-stat-label {
    font-size: 0.9rem;
  }
}

/* Section titles */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  font-weight: 400;
  margin: 0;
}

/* Trajectories section */
.trajectories-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.trajectories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.trajectory-card {
  background: white;
  /* border-radius: 8px; */
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease;
}

.trajectory-card:hover {
  border-color: #b3d9e8;
}

.trajectory-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

.trajectory-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  flex: 1;
  min-height: 2.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trajectory-statistics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f3f5;
}

.trajectory-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trajectory-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: lowercase;
}

.trajectory-funding {
  margin-top: 0.5rem;
  font-size: 1.25rem;
  white-space: normal;
}

/* Responsive trajectories grid */
@media (max-width: 992px) {
  .trajectories-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem;
  }
}

@media (max-width: 768px) {
  .trajectories-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .trajectory-card-content {
    padding: 1rem;
  }

  .trajectory-title {
    font-size: 0.9rem;
    min-height: auto;
    margin-bottom: 0.875rem;
  }

  .trajectory-value {
    font-size: 1.5rem;
  }

  .trajectories-section-title,
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }

  .section-description {
    font-size: 0.9rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .modal:has(.area-detail-content) .modal-content,
  .area-detail-modal .modal-content {
    /* border-radius: 0 0 24px 24px !important; */
    max-height: 95vh;
  }

  .modal:has(.area-detail-content) .modal-dialog,
  .area-detail-modal .modal-dialog {
    max-height: 95vh;
    margin: 0.5rem;
  }

  .modal:has(.area-detail-content) .modal-dialog-scrollable,
  .area-detail-modal .modal-dialog-scrollable {
    max-height: calc(95vh - 1rem);
  }

  .modal:has(.area-detail-content) .modal-header,
  .area-detail-modal .modal-header {
    padding: 1rem 1.5rem !important;
  }

  .modal:has(.area-detail-content) .modal-title,
  .area-detail-modal .modal-title {
    font-size: 1.5rem !important;
  }

  .modal:has(.area-detail-content) .modal-body,
  .area-detail-modal .modal-body {
    padding: 1.5rem;
    max-height: calc(95vh - 150px);
  }
}
