/* Pad: css/style.css */

/* --- FIX VOOR LAYOUT-SPRONG --- */
/* Aangepast: scrollbar alleen tonen indien nodig */
html {
  overflow-y: auto;
}

/* --- CSS Variables / Custom Properties --- */
:root {
  --font-family-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --color-background: #ffffff;
  --color-surface: #fff;
  --color-text-primary: #000000;
  --color-text-secondary: #475569;
  --color-primary: #FFEA00;
  --color-primary-hover: #E6D200;
  --color-primary-tint: rgba(255, 234, 0, 0.1);
  --color-accent: #000000;
  --color-accent-hover: #333333;
  --color-accent-tint: rgba(0, 0, 0, 0.05);
  --color-danger: #E91E63;
  --color-danger-hover: #D81B60;
  --color-border: #e2e8f0;
  --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --border-radius-card: 12px;
  --border-radius-button: 8px;
}

::selection {
  background-color: rgba(233, 30, 99, 0.3);
  color: inherit;
}

/* --- General Styles --- */
body {
  font-family: var(--font-family-sans);
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text-primary);
}

.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 20px);
  /* Aangepast wegens .page-user padding-bottom: 20px */
}

.main-content {
  padding: 80px 40px 40px 40px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .main-content {
    min-width: 0;
    padding: 20px;
  }
}

.page-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Behoud padding links/rechts/onder specifiek voor .page-user indien nodig */
.page-user {
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

/* --- Block: welcome-card --- */
.welcome-card {
  background-color: var(--color-surface);
  padding: 50px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 500px;
  /* Constrain width */
  margin-bottom: 20px;
  /* Add space between cards */
}

.welcome-card__heading {
  color: var(--color-text-primary);
}

.welcome-card__text {
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.welcome-card__nav {
  margin-top: 20px;
}

/* --- Block: login-card --- */
.login-card {
  text-align: center;
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0 auto;
}

.login-card__heading {
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

.login-card__text {
  color: var(--color-text-secondary);
}

.login-card__google-btn {
  margin-top: 20px;
  display: inline-block;
  text-decoration: none;
}

.login-card__error {
  background: var(--color-danger, #dc3545);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--border-radius-card);
  margin: 16px 0;
  font-weight: bold;
  text-align: center;
}

/* --- Block: overview-card --- */
.overview-card {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
  border: 1px solid var(--color-border);
}

.overview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.overview-card__heading {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.overview-card__text {
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.overview-card__link {
  color: var(--color-primary);
  text-decoration: none;
}

.overview-card__link:hover {
  text-decoration: underline;
}

/* --- Block: overview-card user-profile (used within overview-card) --- */
.overview-card__user-profile {
  display: flex;
  align-items: center;
}

.overview-card__user-profile__picture {
  border-radius: 50%;
  margin-right: 20px;
}

.overview-card__user-profile__info {
  /* Add any needed styles for info wrapper */
}

.overview-card__user-profile__heading {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

.overview-card__user-profile__text {
  color: var(--color-text-secondary);
  margin-top: 5px;
}

/* Global Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
select,
textarea {
  padding: 12px 16px;
  border-radius: var(--border-radius-button);
  border: 1px solid var(--color-border);
  background-color: #f8fafc;
  font-family: var(--font-family-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px var(--color-primary-tint);
}

/* --- Reusable Block: button --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.button--primary {
  background-color: var(--color-primary);
  color: #000000;
}

.button--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 234, 0, 0.3);
}

.button--logout {
  background-color: #f1f5f9;
  color: var(--color-text-secondary);
}

.button--logout:hover {
  background-color: #e2e8f0;
  color: var(--color-text-primary);
}

.button--results {
  background-color: var(--color-primary);
  color: #000;
}

.button--results:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
}

.button--delete {
  background-color: #ffe4e6;
  color: #E91E63;
}

.button--delete:hover {
  background-color: #E91E63;
  color: #fff;
}

.button--copy {
  background-color: #f1f5f9;
  color: var(--color-text-secondary);
}

.utm-table__actions-container .button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0.85rem;
}

.button--copy:hover {
  background-color: #e2e8f0;
  color: var(--color-text-primary);
}

.button--tracking {
  background-color: #f1f5f9;
  color: var(--color-text-secondary);
}

.button--tracking:hover {
  background-color: #e2e8f0;
  color: var(--color-text-primary);
}

/* --- User List Grid (Admin User Management) --- */
.user-list {
  display: grid;
  grid-template-columns: 60px 1.3fr 2fr 0.9fr 1fr 80px 1.2fr 1.5fr;
  gap: 0;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  margin-bottom: 30px;
}

.user-list__row {
  display: contents;
}

.user-list__row--header .user-list__cell {
  background: var(--color-background);
  font-weight: bold;
  border-bottom: 2px solid var(--color-border);
  padding-top: 10px;
  padding-bottom: 10px;
}

.user-list__cell {
  padding: 12px 10px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  min-width: 0;
  word-break: break-word;
}

.user-list__row--edit .user-list__cell {
  background: #f9f9f9;
}

.user-list__input,
.user-list__select {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border-radius: var(--border-radius-button);
  border: 1px solid var(--color-border);
  font-size: 1em;
}

.user-list__action-form {
  display: inline;
}

/* --- Block: db-badge --- */
.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.db-badge--active {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.db-badge--missing {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.db-badge--error {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fef3c7;
  cursor: help;
}

.db-badge--admin {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.db-badge__btn-copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #991b1b;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  vertical-align: middle;
}

.db-badge__btn-copy:hover {
  background-color: rgba(153, 27, 27, 0.1);
  color: #7f1d1d;
}

.db-badge__btn-copy svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

/* --- Block: db-dot --- */
.db-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.db-dot--active {
  background-color: #10b981;
  border: 1.5px solid #047857;
}

.db-dot--missing {
  background-color: #ef4444;
  border: 1.5px solid #b91c1c;
}

.db-dot--error {
  background-color: #f59e0b;
  border: 1.5px solid #d97706;
  cursor: help;
}

.db-dot--admin {
  background-color: #64748b;
  border: 1.5px solid #475569;
}

@media (max-width: 900px) {
  .user-list {
    grid-template-columns: 40px 1.1fr 1.5fr 0.7fr 0.7fr 60px 1fr 1.3fr;
  }
}

@media (max-width: 600px) {
  .user-list {
    grid-template-columns: 1fr 1fr;
  }

  .user-list__cell--id,
  .user-list__cell--email,
  .user-list__cell--role,
  .user-list__cell--created,
  .user-list__cell--campaigns,
  .user-list__cell--database,
  .user-list__cell--last-login {
    display: none;
  }
}

/* --- Block: form-card (reusable card for forms) --- */
.form-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-card);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.form-card__header {
  margin-bottom: 25px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
}

.form-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.form-card__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-card__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.form-card__input,
.form-card__select {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-button);
  font-size: 1rem;
  background-color: #f8fafc;
  color: var(--color-text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.form-card__input:focus,
.form-card__select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-primary-tint);
}

/* --- Block: user-list-wrapper --- */
.user-list-wrapper {
  overflow-x: auto;
  width: 100%;
  border-radius: var(--border-radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

/* --- Sidebar Navigation --- */
.sidebar {
  background-color: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
}

.sidebar__header {
  margin-bottom: 40px;
  padding: 0 10px;
}

.sidebar__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar__item {
  margin-bottom: 8px;
}

.sidebar__link {
  display: block;
  padding: 12px 16px;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--border-radius-button);
  transition: all 0.2s ease;
}

.sidebar__link:hover {
  background-color: var(--color-primary-tint);
  color: var(--color-primary);
}

.sidebar__link--active {
  background-color: var(--color-primary);
  color: #000000;
}

@media (max-width: 1024px) {
  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .sidebar__header {
    margin-bottom: 0;
  }

  .sidebar__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .sidebar__item {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .sidebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }

  .sidebar__list {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar__link {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  
  .overview-card {
    padding: 20px;
  }

  .overview-card__heading {
    font-size: 1.5rem;
  }
}

/* --- Block: user-card --- */
/* Opmerking: .user-card lijkt op .overview-card. Mogelijk later samenvoegen. */
.user-card {
  background-color: var(--color-surface);
  padding: 50px;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 500px;
  /* Constrain width */
  margin-bottom: 20px;
  /* Add space between cards */
}

.user-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.user-card__heading {
  color: var(--color-text-primary);
}

.user-card__text {
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.user-card__link {
  color: var(--color-primary);
  text-decoration: none;
}

.user-card__link:hover {
  text-decoration: underline;
}

/* --- Block: user-profile (used within user-card) --- */
.user-card__user-profile {
  display: flex;
  align-items: center;
}

.user-card__user-profile__picture {
  border-radius: 50%;
  margin-right: 20px;
}

.user-card__user-profile__heading {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

.user-card__user-profile__text {
  color: var(--color-text-secondary);
  margin-top: 5px;
}

.utm-table {
  width: 100%;
  border-collapse: collapse;
}

.utm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
}

.utm-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.utm-table th.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.utm-table th.sortable:hover {
  background-color: var(--color-primary-tint);
  color: var(--color-text-primary);
}

.utm-table th.sortable::after {
  content: ' ⇅';
  font-size: 0.8rem;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: inline-block;
  vertical-align: middle;
}

.utm-table th.sortable:hover::after {
  opacity: 0.6;
}

.utm-table th.sortable.asc::after {
  content: ' ▲';
  opacity: 1;
  color: var(--color-accent);
}

.utm-table th.sortable.desc::after {
  content: ' ▼';
  opacity: 1;
  color: var(--color-accent);
}

.utm-table th:nth-child(1) {
  width: 250px;
}

.utm-table th:nth-child(2) {
  width: auto;
}

.utm-table th:nth-child(3) {
  width: 150px;
}

/* --- Block: utm-table updates --- */
.utm-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.utm-table__actions-container {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.utm-table__url-cell {
  display: block;
  max-width: 0;
  min-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  color: var(--color-text-secondary);
}

.utm-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.utm-table tbody tr:hover {
  background-color: #f1f1f1;
}

/* --- User Add Form --- */
.user-add {
  margin-bottom: 20px;
}

.user-add__form {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.user-add__input,
.user-add__select {
  margin-bottom: 0;
  min-width: 160px;
  padding: 8px;
  /* Consistent padding */
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-button);
  font-size: 1em;
}

.user-add__form button {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .user-add__form {
    flex-direction: column;
    align-items: stretch;
  }

  .user-add__input,
  .user-add__select {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    /* Zorgt dat padding de width niet beïnvloedt */
  }
}

/* --- Block: performance-grid --- */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.performance-card {
  background-color: var(--color-surface);
  padding: 20px;
  border-radius: var(--border-radius-card);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.performance-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.performance-card--primary {
  border-color: var(--color-primary);
  background-color: var(--color-primary-tint);
}

.performance-card__value {
  display: block;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 5px;
}

.performance-card--primary .performance-card__value {
  color: var(--color-primary);
}

.performance-card--secondary {
  border-color: var(--color-accent);
  background-color: var(--color-accent-tint);
}

.performance-card--secondary .performance-card__value {
  color: var(--color-accent);
}

.performance-card--secondary .performance-card__label {
  color: var(--color-accent);
}

.performance-card__label {
  display: block;
  font-size: 0.9em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Block: hero --- */
.hero {
  margin-bottom: 32px;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-family-sans);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
  line-height: 1;
  letter-spacing: -1.5px;
  text-transform: uppercase;
}

.hero__subtitle {
  font-family: var(--font-family-sans);
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-top: 16px;
  line-height: 1.5;
}

/* --- Modifier: overview-card--compact --- */
.overview-card--compact {
  padding: 24px;
}

/* Adjustments for no-scroll on laptops */
@media (min-height: 700px) and (max-height: 900px) {
  .main-content {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero {
    margin-bottom: 24px;
  }

  .hero__title {
    font-size: 2.2rem;
  }
}

/* --- Landing Mode: No Sidebar --- */
.app-layout--landing {
  grid-template-columns: 1fr;
}

.app-layout--landing .main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 20px);
  /* Aangepast wegens .page-user padding-bottom: 20px */
  padding: 20px;
  box-sizing: border-box;
}

.app-layout--landing .overview-card {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
}

utm-helper {
  display: block;
  width: 100%;
}


/* --- Block: user-status --- */
.user-status {
  position: absolute;
  top: 20px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}

@media (max-width: 1024px) {
  .user-status {
    position: static;
    margin-bottom: 24px;
    justify-content: flex-end;
    width: 100%;
  }
}

.user-status__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--border-radius-button);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.user-status__profile:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.user-status__dashboard-text {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.user-status__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.user-status__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}

.user-status__login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
  transition: background 0.2s;
}

.user-status__login-btn:hover {
  background-color: #f8fafc;
}

.user-status__google-icon {
  width: 18px;
  height: 18px;
}

/* --- Block: hero updates --- */
.hero__logo {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--color-primary);
  letter-spacing: -1px;
}

/* --- Block: code-block --- */
.code-block {
  background-color: #000000;
  color: #f1f5f9;
  padding: 24px;
  border-radius: var(--border-radius-card);
  overflow-x: auto;
  margin: 15px 0 30px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  border: 1px solid #1a1a1a;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.code-block__copy {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.code-block__copy:hover {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.code-block__copy svg {
  width: 18px;
  height: 18px;
}

.code-block__copy--success {
  background: #22c55e !important;
  color: #fff !important;
  border-color: #22c55e !important;
}

.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-block code {
  font-family: inherit;
}

/* --- Block: overview-card additions --- */
.overview-card__subheading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
/* --- Dashboard Mobile Optimization --- */

@media (max-width: 767px) {
  /* Task 2.1: Reduce main content padding on mobile */
  .main-content {
    padding: 20px 15px;
  }

  /* Task 2.2: Adjust dashboard heading font size */
  .overview-card__heading {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

@media (max-width: 600px) {
  /* Task 3.1: Change grid to 2 columns on mobile */
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Task 3.2: Scale down metric values */
  .performance-card {
    padding: 15px 10px;
  }
  .performance-card__value {
    font-size: 1.4em;
  }
  .performance-card__label {
    font-size: 0.75em;
  }
}

@media (max-width: 767px) {
  /* Task 4.1: Convert table elements to block display */
  .utm-table, 
  .utm-table thead, 
  .utm-table tbody, 
  .utm-table th, 
  .utm-table td, 
  .utm-table tr {
    display: block;
    width: 100%;
  }

  /* Hide table header but keep for screen readers */
  .utm-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .utm-table tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-card);
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  }

  .utm-table td {
    border: none;
    position: relative;
    padding-left: 45%;
    margin-bottom: 12px;
    text-align: right;
  }

  /* Task 4.2: Add labels using ::before */
  .utm-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 40%;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    color: var(--color-text-secondary);
    font-size: 0.85em;
    text-transform: uppercase;
  }
  
  /* Fix specific cell alignments */
  .utm-table__url-cell {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Stack cell for long scrollable content */
  .utm-table__cell--stack {
    padding-left: 0;
    text-align: left;
    overflow: hidden; /* Contains the scrollable child */
  }

  .utm-table__cell--stack::before {
    position: relative;
    display: block;
    left: 0;
    width: 100%;
    margin-bottom: 8px;
  }

  .utm-table__scrollable {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  /* Task 5.1: Style actions container for mobile cards */
  .utm-table td:last-child {
    padding-left: 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-bottom: 0;
  }

  .utm-table td:last-child::before {
    display: none;
  }

  .utm-table__actions-container {
    justify-content: center !important;
    gap: 20px;
  }

  .utm-table__actions-container .button {
    padding: 10px 20px;
    min-width: 100px;
    justify-content: center;
  }
}

/* --- Block: landing-usps --- */
.landing-usps {
  width: 100%;
  max-width: 1200px;
  margin-top: 50px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

.landing-usps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.landing-usps__card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-card);
  padding: 32px 28px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.landing-usps__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.landing-usps__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 234, 0, 0.5);
}

.landing-usps__card:hover::before {
  opacity: 1;
}

.landing-usps__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-danger);
  margin-bottom: 16px;
  background-color: rgba(233, 30, 99, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.landing-usps__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin: 0 0 16px 0;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.landing-usps__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .landing-usps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .landing-usps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .landing-usps {
    margin-top: 35px;
  }

  .landing-usps__card {
    padding: 24px 20px;
  }
}

