/* CSS Document */

/* Wrapper generale */
.ngwa-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.ngwa-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ngwa-dashboard__title {
  font-size: 1.5rem;
  font-weight: 600;
}

/* Bottoni custom */
.ngwa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.ngwa-button--primary {
  background: #2563eb;
  color: #ffffff;
}

/* Grid KPI */
.ngwa-dashboard__kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1024px) {
  .ngwa-dashboard__kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ngwa-dashboard__kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Card base */
.ngwa-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Card KPI */
.ngwa-card--kpi {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ngwa-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ngwa-card__label {
  font-size: 0.8rem;
  color: #6b7280;
}

.ngwa-card__value {
  font-size: 1.6rem;
  font-weight: 600;
}

/* Icona KPI */
.ngwa-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.ngwa-card__icon--blue {
  background: #2563eb;
}

.ngwa-card__icon--green {
  background: #22c55e;
}

.ngwa-card__icon--red-soft {
  background: #f97373;
}

.ngwa-card__icon--purple {
  background: #a855f7;
}

/* Layout body: main + side */
.ngwa-dashboard__body {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .ngwa-dashboard__body {
    grid-template-columns: 1fr;
  }
}

/* Header card */
.ngwa-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.ngwa-card__title {
  font-size: 0.95rem;
  font-weight: 600;
}

.ngwa-card__subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

/* Link piccoli */
.ngwa-link-small {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
}

.ngwa-link-small:hover {
  text-decoration: underline;
}

/* Lista assessment */
.ngwa-assessment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ngwa-assessment-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  text-decoration: none;
  background: #f9fafb;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ngwa-assessment-list__item:hover {
  background: #eef2ff;
  transform: translateY(-1px);
}

.ngwa-assessment-list__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ngwa-assessment-list__icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.ngwa-assessment-list__icon--blue {
  background: #2563eb;
}

.ngwa-assessment-list__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.ngwa-assessment-list__subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

.ngwa-assessment-list__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.ngwa-assessment-list__meta {
  font-size: 0.75rem;
  color: #9ca3af;
}

.ngwa-assessment-list__empty {
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 0.75rem 0.5rem;
}

/* Badge stato */
.ngwa-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.ngwa-status--completed {
  background: #dcfce7;
  color: #166534;
}

.ngwa-status--in-progress {
  background: #fef3c7;
  color: #92400e;
}

.ngwa-status--scheduled {
  background: #e0f2fe;
  color: #1d4ed8;
}

.ngwa-status--issues-found{
  background: #fee2e2;
  color: #b91c1c;
}
.ngwa-status--not-set {
  background: #fee2e2;
  color: #b91c1c;
}

/* Quick actions */
.ngwa-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ngwa-quick-actions__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem;
  border-radius: 10px;
  background: #f9fafb;
  text-decoration: none;
  color: #111827;
  font-size: 0.85rem;
}

.ngwa-quick-actions__item:hover {
  background: #eef2ff;
}

.ngwa-quick-actions__icon {
  font-size: 1rem;
}

/* Framework list */
.ngwa-framework-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ngwa-framework-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.ngwa-framework-list__item--empty {
  color: #9ca3af;
}

.ngwa-framework-list__status {
  font-size: 0.75rem;
}

.ngwa-framework-list__status.is-active {
  color: #16a34a;
}

.ngwa-framework-list__status.is-inactive {
  color: #9ca3af;
}

.ngwa-dashboard__side .ngwa-card{
  margin-bottom: 1rem;
}


.ngwa-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-color: currentColor;
}

/* icone dal subtheme stesso */
.ngwa-icon--reports {
  -webkit-mask: url("../icons/reports.svg") no-repeat center / contain;
  mask: url("../icons/reports.svg") no-repeat center / contain;
}

.ngwa-icon--tool {
  -webkit-mask: url("../icons/tool.svg") no-repeat center / contain;
  mask: url("../icons/tool.svg") no-repeat center / contain;
}

.ngwa-icon--warning {
  -webkit-mask: url("../icons/warning.svg") no-repeat center / contain;
  mask: url("../icons/warning.svg") no-repeat center / contain;
}

.ngwa-icon--php {
  -webkit-mask: url("../icons/php.svg") no-repeat center / contain;
  mask: url("../icons/php.svg") no-repeat center / contain;
}

.ngwa-icon--shortcut {
  -webkit-mask: url("../icons/shortcut.svg") no-repeat center / contain;
  mask: url("../icons/shortcut.svg") no-repeat center / contain;
}

.ngwa-icon--shortcut {
  -webkit-mask: url("../icons/shortcut-filled.svg") no-repeat center / contain;
  mask: url("../icons/shortcut-filled.svg") no-repeat center / contain;
}

.ngwa-icon--checked {
  -webkit-mask: url("../icons/shortcut-checked.svg") no-repeat center / contain;
  mask: url("../icons/shortcut-checked.svg") no-repeat center / contain;
}

.ngwa-icon--status {
  -webkit-mask: url("../icons/status.svg") no-repeat center / contain;
  mask: url("../icons/status.svg") no-repeat center / contain;
}

.ngwa-icon--list {
  -webkit-mask: url("../icons/list.svg") no-repeat center / contain;
  mask: url("../icons/list.svg") no-repeat center / contain;
}

.ngwa-icon--user {
  -webkit-mask: url("../icons/user.svg") no-repeat center / contain;
  mask: url("../icons/user.svg") no-repeat center / contain;
}
