@import './meeting-tokens';

:host {
  display: block;
  font-family: $mt-font;
  background: $mt-surface-muted;
  min-height: 100%;
}

.mt-page {
  padding: 28px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.mt-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;

  h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: $mt-ink;
  }
}

.mt-page-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: $mt-ink-muted;
}

.mt-filter-toggle {
  display: inline-flex;
  background: $mt-surface;
  border: 1px solid $mt-border;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 20px;
}

.toggle-btn {
  font-family: $mt-font;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: $mt-ink-muted;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;

  &.active {
    background: $mt-accent;
    color: white;
  }
}

.mt-loading,
.mt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 64px 20px;
  color: $mt-ink-muted;
  text-align: center;

  mat-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: $mt-border;
  }
}

.mt-table-wrap {
  background: $mt-surface;
  border: 1px solid $mt-border;
  border-radius: $mt-radius;
  overflow: hidden;
}

.mt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;

  thead th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: $mt-ink-muted;
    padding: 12px 18px;
    background: $mt-surface-muted;
    border-bottom: 1px solid $mt-border;
  }

  td {
    padding: 13px 18px;
    border-bottom: 1px solid $mt-border;
    color: $mt-ink;
    font-variant-numeric: tabular-nums;
  }

  tbody tr:last-child td {
    border-bottom: none;
  }
}

.mt-row {
  cursor: pointer;
  transition: background 0.12s ease;

  &:hover {
    background: $mt-surface-muted;
  }
}

.mt-title-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mt-title {
  font-weight: 600;
}

.mt-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: $mt-ink-muted;

  mat-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
  }
}

.mt-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
  background: $mt-status-scheduled-bg;
  color: $mt-status-scheduled;

  &.completed {
    background: $mt-status-completed-bg;
    color: $mt-status-completed;
  }

  &.cancelled {
    background: $mt-status-cancelled-bg;
    color: $mt-status-cancelled;
  }
}

.btn {
  font-family: $mt-font;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
}

.btn-primary {
  background: $mt-accent;
  color: white;

  &:hover {
    background: $mt-accent-dark;
  }
}
