/*
 * ITR SCA Portal — Dashboard Styles (FTR12)
 * Defines its own design tokens as a fallback so this page renders
 * correctly even if itr-sca-portal.css isn't also enqueued.
 */

#itr-sca-dashboard {
  --itr-teal:        #1B6B7B;
  --itr-teal-light:  #e8f4f6;
  --itr-teal-dark:   #145462;
  --itr-text:        #3e3e3e;
  --itr-muted:       #666;
  --itr-border:      #d0dde0;
  --itr-bg:          #ffffff;
  --itr-surface:     #f9fafb;
  --itr-radius:      6px;
  --itr-radius-lg:   12px;
  /* --itr-font:        'Segoe UI', system-ui, -apple-system, sans-serif; */

  font-family: var(--itr-font);
  color: var(--itr-text);
  margin: 0 auto;
  /* padding: 32px 20px 60px; */

 /* Font Families */
  --font-heading: "Montserrat", sans-serif;
  --font-body-1:  "Poppins", sans-serif;
  --font-body-2:  "Poppins", sans-serif;
  --font-body-3:  "Poppins", sans-serif;
  --itr-font:     "Poppins", sans-serif;

  /* H1 */
  --h1-size:   38px;
  --h1-line:   50px;
  --h1-weight: 700;

  /* H2 */
  --h2-size:   32px;
  --h2-line:   42px;
  --h2-weight: 700;

  /* H3 */
  --h3-size:   26px;
  --h3-line:   36px;
  --h3-weight: 700;

  /* H4 */
  --h4-size:   20px;
  --h4-line:   28px;
  --h4-weight: 700;

  /* Body 1 */
  --body1-size: 18px;
  --body1-line: 26px;

  /* Body 2 */
  --body2-size: 16px;
  --body2-line: 24px;

  /* Body 3 */
  --body3-size: 14px;
  --body3-line: 24px;
}

/* Laptop */
@media (max-width: 1366px) {
  :root {
    --h1-size:    38px;
    --h2-size:    32px;
    --h3-size:    26px;
    --h4-size:    20px;
    --body1-size: 18px;
    --body2-size: 16px;
    --body3-size: 14px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --h1-size:    32px;
    --h1-line:    38px;
    --h2-size:    26px;
    --h2-line:    36px;
    --h3-size:    22px;
    --h3-line:    28px;
    --h4-size:    18px;
    --h4-line:    24px;
    --body1-size: 16px;
    --body2-size: 14px;
    --body3-size: 12px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --h1-size:    26px;
    --h1-line:    32px;
    --h2-size:    22px;
    --h2-line:    32px;
    --h3-size:    18px;
    --h3-line:    24px;
    --h4-size:    18px;
    --h4-line:    24px;
    --body1-size: 16px;
    --body2-size: 14px;
    --body3-size: 12px;
  }
}

/* ── Welcome banner ─────────────────────────────────────────────────────── */
.itr-dash-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--itr-teal-light);
  border-radius: var(--itr-radius-lg);
  padding: 32px 40px;
  margin-bottom: 40px;
  height: 282px;
}

.itr-dash-banner-text h1 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  margin: 0 0 8px;
  color: #0F4C6A;
}

.itr-dash-banner-text p {
  font-size: var(--body3-size);
  color: var(--itr-muted);
  margin: 0 0 18px;
  max-width: 480px;
}

.itr-dash-continue-btn {
  display: inline-flex;
}

.itr-dash-banner-art {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--itr-teal);
}

.itr-dash-banner-art svg {
  width: 32px;
  height: 32px;
}

/* ── Categories header ──────────────────────────────────────────────────── */
.itr-dash-categories-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.itr-dash-categories-header .itr-dash-categories-header-title {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  color: #0F4C6A;
  margin: 0 0 4px;
}

.itr-dash-categories-header .itr-dash-categories-header-desc {
  font-size: var(--body1-size);
  color: var(--itr-text);
  margin: 0;
}

.itr-dash-search {
  display: flex;
  align-items: center;
  background: var(--itr-bg);
  border: 1px solid var(--itr-border);
  border-radius: 30px;
  padding: 8px 16px;
  min-width: 240px;
}

.itr-dash-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: var(--body3-size);
  font-family: var(--itr-font);
  color: var(--itr-text);
  background: transparent;
}

.itr-dash-search-btn {
   height: 46px;
    border-radius: 100%;
    align-items: center;
    align-content: center;
    text-align: center;
    background: #0c4a68;
    width: 46px;
    border: none;
  /* background: var(--itr-teal);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer; */
}

/* ── Category grid ──────────────────────────────────────────────────────── */
.itr-dash-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.itr-dash-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  background: var(--itr-bg);
  border: 1px solid #F3F5F7;
  box-shadow: 0 0 4px 0 #E5EDF4;
  border-radius: 24px;
  padding: 24px 16px;
  text-decoration: none;
  color: var(--itr-text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

/* Radial gradient background — faint at rest, intensifies on hover */
/* .itr-dash-category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(27, 107, 123, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
} */

/* Teal chevron arrow — hidden at rest, slides in on hover */
.itr-dash-category-tile::after {
  content: '';
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0F4D6A;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.itr-dash-category-tile:hover {
   /* Background */
    background: radial-gradient(
        circle,
        #D6F1FF 0%,
        #F9FDFF 100%
    );

    /* Border */
    border: 1px solid #DAF2FF;

    /* Shadow */
    box-shadow: 0 2px 4px rgba(212, 241, 255, 0.3);
  transform: translateY(-2px);
}

/* .itr-dash-category-tile:hover::before {
  opacity: 1;
} */

.itr-dash-category-tile:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* .itr-dash-category-tile:hover {
  border-color: var(--itr-teal);
  box-shadow: 0 4px 18px rgba(27, 107, 123, 0.12);
  transform: translateY(-2px);
} */

.itr-dash-category-icon img{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  /* background: radial-gradient(circle, rgba(27, 107, 123, 0.08) 0%, rgba(27, 107, 123, 0.03) 100%); */
  /* display: flex;
  align-items: center;
  justify-content: center;
  color: var(--itr-teal);
  transition: background 0.2s;
  position: relative;
  z-index: 1; */
}

/* .itr-dash-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 107, 123, 0.08) 0%, rgba(27, 107, 123, 0.03) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--itr-teal);
  transition: background 0.2s;
  position: relative;
  z-index: 1;
} */

/* .itr-dash-category-tile:hover .itr-dash-category-icon {
  background: radial-gradient(circle, rgba(27, 107, 123, 0.15) 0%, rgba(27, 107, 123, 0.05) 100%);
} */

/* .itr-dash-category-icon img, */
.itr-dash-category-icon svg {
  width: 24px;
  height: 24px;
}

.itr-dash-category-name {
    width: 180px;
    font-size: var(--body1-size);
    font-weight: 500;
    color: #081136;
  line-height: 1.35;
}

/* ── Empty / no-results states ──────────────────────────────────────────── */
.itr-dash-empty-state,
.itr-dash-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--itr-muted);
}

.itr-dash-empty-state svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--itr-border);
}

.itr-dash-empty-state h3 {
  font-size: var(--body2-size);
  margin: 0 0 6px;
  color: var(--itr-text);
}

.itr-dash-empty-state p,
.itr-dash-no-results p {
  font-size: var(--body3-size);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .itr-dash-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .itr-dash-banner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 24px;
  }

  .itr-dash-banner-art {
    display: none;
  }

  .itr-dash-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .itr-dash-search {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .itr-dash-category-grid {
    grid-template-columns: 1fr;
  }
}
