/* Dashboard and sidebar layout */
.dash {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 240px;
  padding: 2rem 1rem;
  color: #fff;
  background: linear-gradient(#0f62fe 0%, #20c9d1 100%);
  display: flex;
  flex-direction: column;
}
.sidebar-title {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
}
.sidebar nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.15);
}
.dash-header {
  position: fixed;
  left: 240px;
  right: 0;
  height: 56px;
  background: var(--bg-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1rem;
  z-index: 10;
}
.dash-content {
  margin-top: 56px;
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.card {
  background: var(--bg-light);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.card:hover {
  /* Subtle hover effect for cards */
  background: #11244d;
  transform: translateY(-3px);
}

/* Overview layout with navigation list and detail tile */
.overview-layout {
  display: flex;
  gap: 2rem;
}
.overview-list {
  flex: 1;
}
.overview-list ul {
  list-style: none;
  padding: 0;
}
.overview-list li {
  margin-bottom: 0.5rem;
}
.overview-detail {
  flex: 2;
}

/* Page header for lists */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Assessments list */
#assessments-list table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px #0001;
}
#assessments-list th,
#assessments-list td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}
#assessments-list th {
  background: var(--bg-light);
  font-weight: 600;
}
#assessments-list tr:last-child td {
  border-bottom: none;
}

/* Documents list */
#docs-list ul {
  list-style: none;
}
#docs-list li {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px #0001;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Wizard container */
.wizard-container {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--text-light);
}
.wizard-step {
  margin-bottom: 2rem;
}
.wizard-step h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.wizard-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Wizard progress bar and options */
.wizard-progress-container {
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  z-index: 5;
  padding: 0.5rem 0;
}
.wizard-progress {
  height: 8px;
  background: #0e2548;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}
.wizard-progress .progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--brand1), var(--brand2));
  width: 0%;
}
.wizard-progress-text {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  text-align: right;
}
.wizard-options {
  margin: 1rem 0;
}
.wizard-options label {
  margin-right: 1rem;
}

.btn--export {
  background: #00a2ff;
  color: #fff;
}
#export-dialog {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
}
#export-dialog .format-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
}
#export-dialog .format-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#export-dialog .dialog-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Bullet list for reasons */
.reason ul {
  margin: 0;
  padding-left: 1.2rem;
}
.reason li {
  margin: 0.25rem 0;
}

/* Summary dialog styling */
.summary-header {
  background: var(--brand1);
  color: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ddd;
}
.summary-header h3 {
  margin: 0 0 0.5rem;
}
.summary-header p {
  margin: 0.25rem 0;
}
.summary-header .badge {
  margin-left: 0.25rem;
}
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.summary-table thead {
  background: var(--brand1);
  color: #fff;
}
.summary-table thead th {
  border-bottom: none;
}
.summary-table th,
.summary-table td {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.summary-table tbody tr:nth-child(even) {
  background: #f5f5f5;
}
.summary-answer {
  padding: 0 0.5rem;
  border-radius: var(--radius);
  color: #fff;
  display: inline-block;
}
.summary-answer.yes {
  background: #2e7d32;
}
.summary-answer.no {
  background: #c62828;
}
