*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #003057;
  background-color: #f4f6f8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul {
  list-style: none;
}
a {
  color: #026386;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #003057;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  background-color: #edf0f3;
  color: #026386;
  padding: 2px 5px;
  border-radius: 4px;
}
.print-only {
  display: none;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background-color: #003057;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo .logo-img {
  height: 32px;
  width: auto;
}
.header-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  opacity: 0.92;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.app-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 56px);
}
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel--left {
  width: 380px;
  min-width: 380px;
  flex-shrink: 0;
  border-right: 1px solid #dde2e8;
  background-color: #ffffff;
  overflow-y: auto;
}
.panel--right {
  flex: 1;
  background-color: #f4f6f8;
  overflow-y: auto;
}
.panel-section {
  border-bottom: 1px solid #dde2e8;
  padding: 16px;
}
.panel-section.panel-section--grow {
  flex: 1;
  overflow-y: auto;
  border-bottom: none;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.attendee-count {
  font-weight: 400;
  color: #8895a7;
  font-size: 12px;
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.btn:focus-visible {
  outline: 2px solid #00ADBC;
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary {
  background-color: #F37121;
  border-color: #F37121;
  color: #ffffff;
}
.btn--primary:hover:not(:disabled) {
  background-color: #df5c0c;
  border-color: #df5c0c;
}
.btn--primary:active:not(:disabled) {
  background-color: #c2500a;
}
.btn--secondary {
  background-color: transparent;
  border-color: #003057;
  color: #003057;
}
.btn--secondary:hover:not(:disabled) {
  background-color: #003057;
  color: #ffffff;
}
.btn--ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}
.btn--ghost:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}
.panel .btn--ghost,
.badge-preview-header .btn--ghost {
  border-color: #dde2e8;
  color: #4a5568;
}
.panel .btn--ghost:hover:not(:disabled),
.badge-preview-header .btn--ghost:hover:not(:disabled) {
  background-color: #f4f6f8;
  border-color: #00ADBC;
  color: #00ADBC;
}
.btn--sm {
  padding: 5px 8px;
  font-size: 12px;
}
.btn--lg {
  padding: 12px 32px;
  font-size: 16px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-row.form-row--half {
  flex-direction: row;
  gap: 8px;
}
.form-row.form-row--half > * {
  flex: 1;
  min-width: 0;
}
.form-label {
  font-size: 12px;
  font-weight: 500;
  color: #4a5568;
  letter-spacing: 0.01em;
}
.required {
  color: #F37121;
}
.form-input {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #dde2e8;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #003057;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.form-input::placeholder {
  color: #8895a7;
}
.form-input:focus {
  outline: none;
  border-color: #00ADBC;
  box-shadow: 0 0 0 3px rgba(0, 173, 188, 0.15);
}
.form-input:disabled {
  background-color: #f4f6f8;
  color: #8895a7;
  cursor: not-allowed;
}
.form-input--search {
  padding-left: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2714%27 height=%2714%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238895a7%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2711%27 cy=%2711%27 r=%278%27/%3E%3Cline x1=%2721%27 y1=%2721%27 x2=%2716.65%27 y2=%2716.65%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 9px center;
}
.form-hint {
  font-size: 12px;
  color: #8895a7;
}
.form-error {
  font-size: 12px;
  color: #c0392b;
  background-color: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 4px;
  padding: 4px 8px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  margin-top: 4px;
}
.event-summary {
  background-color: rgba(0, 48, 87, 0.04);
  border: 1px solid #dde2e8;
  border-left: 3px solid #00ADBC;
  border-radius: 6px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-summary__name {
  font-size: 16px;
  font-weight: 600;
  color: #003057;
}
.event-summary__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #4a5568;
}
.event-summary__id {
  font-size: 12px;
  color: #8895a7;
}
.attendee-list-controls {
  margin-bottom: 8px;
}
.attendee-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.attendee-list__empty {
  padding: 16px 8px;
  text-align: center;
  font-size: 12px;
  color: #8895a7;
  font-style: italic;
  margin: 0;
}
.attendee-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  position: relative;
}
.attendee-list__item:hover {
  background-color: rgba(0, 173, 188, 0.08);
}
.attendee-list__item:hover .attendee-list__remove {
  opacity: 1;
}
.attendee-list__item.attendee-list__item--active {
  background-color: rgba(0, 173, 188, 0.12);
  border: 1px solid rgba(0, 173, 188, 0.3);
}
.attendee-list__item.attendee-list__item--active .attendee-list__name {
  color: #003057;
}
.attendee-list__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #003057;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  text-transform: uppercase;
}
.attendee-list__info {
  flex: 1;
  min-width: 0;
}
.attendee-list__name {
  font-size: 14px;
  font-weight: 500;
  color: #003057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attendee-list__meta {
  font-size: 12px;
  color: #8895a7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attendee-list__remove {
  opacity: 0;
  background: none;
  border: none;
  color: #8895a7;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.attendee-list__remove:hover {
  color: #c0392b;
}
.badge-preview-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}
.badge-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 464px;
  margin-bottom: 24px;
}
.badge-preview-actions {
  display: flex;
  gap: 8px;
}
.badge-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #8895a7;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}
.badge-render-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.badge {
  width: 384px;
  height: 288px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 48, 87, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}
.badge__header {
  height: 64px;
  background-color: #003057;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex-shrink: 0;
}
.badge__event-logo {
  flex-shrink: 0;
}
.badge__event-logo .badge__logo-img {
  height: 28px;
  width: auto;
}
.badge__event-info {
  flex: 1;
  min-width: 0;
}
.badge__event-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.badge__event-date,
.badge__event-location {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.3;
}
.badge__body {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 16px;
  gap: 16px;
}
.badge__attendee-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.badge__name {
  font-size: 22px;
  font-weight: 400;
  color: #003057;
  line-height: 1.2;
  margin-bottom: 4px;
}
.badge__name strong {
  font-weight: 700;
}
.badge__title {
  font-size: 12px;
  color: #026386;
  font-weight: 500;
  margin-bottom: 2px;
}
.badge__company {
  font-size: 14px;
  color: #4a5568;
}
.badge__qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.badge__qr-container {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge__qr-image {
  width: 120px;
  height: 120px;
  display: block;
}
.badge__attendee-id {
  font-size: 9px;
  color: #8895a7;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #00ADBC 0%, #6FCCDD 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.qr-error {
  font-size: 12px;
  color: #c0392b;
}
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #003057;
  background-image: linear-gradient(135deg, #003057 0%, #026386 100%);
  padding: 24px;
}
.login-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 48, 87, 0.16);
  padding: 48px 32px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.login-card__logo {
  margin-bottom: 8px;
}
.login-card__logo .login-logo {
  height: 52px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(10%) sepia(61%) saturate(1200%) hue-rotate(185deg) brightness(85%) contrast(110%);
}
.login-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #003057;
  text-align: center;
  margin: 0;
}
.login-card__subtitle {
  font-size: 12px;
  color: #8895a7;
  text-align: center;
  margin: 0 0 16px;
}
.login-card .form {
  width: 100%;
}
.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 10px;
  font-size: 16px;
}
.header-user {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-right: 4px;
}
.view-tabs {
  display: flex;
  border-bottom: 2px solid #dde2e8;
  background-color: #ffffff;
  padding: 0 24px;
}
.view-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 16px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #8895a7;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.view-tab:hover {
  color: #003057;
}
.view-tab.view-tab--active {
  color: #00ADBC;
  border-bottom-color: #00ADBC;
}
#dashboard-panel {
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 56px - 49px);
}
.dashboard__event-name {
  font-size: 20px;
  font-weight: 700;
  color: #003057;
  margin-bottom: 24px;
}
.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.stat-card {
  background-color: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 48, 87, 0.08);
}
.stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: #003057;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label {
  font-size: 12px;
  color: #8895a7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-card--checked-in {
  border-color: #00ADBC;
  background-color: rgba(0, 173, 188, 0.06);
}
.stat-card--checked-in .stat-card__value {
  color: #026386;
}
.stat-card--percent .stat-card__value {
  color: #F37121;
}
.dashboard__progress {
  margin-bottom: 24px;
}
.progress-bar {
  height: 8px;
  background-color: #dde2e8;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #00ADBC 0%, #6FCCDD 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 0;
}
.dashboard__table-wrapper {
  background-color: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 48, 87, 0.08);
}
.attendee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.attendee-table th {
  background-color: rgba(0, 48, 87, 0.04);
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  padding: 8px 16px;
  text-align: left;
  border-bottom: 1px solid #dde2e8;
}
.attendee-table td {
  padding: 8px 16px;
  border-bottom: 1px solid #edf0f3;
  color: #003057;
  vertical-align: middle;
}
.attendee-table tr:last-child td {
  border-bottom: none;
}
.attendee-table tr.row--checked-in td {
  background-color: rgba(0, 173, 188, 0.04);
}
.attendee-table tr:hover td {
  background-color: rgba(0, 173, 188, 0.06);
}
.td--name {
  font-weight: 500;
}
.td--muted {
  color: #8895a7;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge--checked-in {
  background-color: rgba(0, 173, 188, 0.15);
  color: #026386;
  border: 1px solid rgba(0, 173, 188, 0.4);
}
.status-badge--pending {
  background-color: #f4f6f8;
  color: #8895a7;
  border: 1px solid #dde2e8;
}
.dashboard-loading,
.dashboard-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: #8895a7;
  font-style: italic;
}
.dashboard-error {
  color: #c0392b;
}
@media print {
  .app-wrapper {
    display: none !important;
  }
  #print-container {
    display: block !important;
    margin: 0;
    padding: 0;
  }
  @page {
    size: 4in 3in landscape;
    margin: 0.125in;
  }
  body {
    background: none;
    margin: 0;
    padding: 0;
  }
  .print-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .print-page-break {
    page-break-after: always;
    break-after: page;
  }
  .badge {
    width: 384px;
    height: 288px;
    box-shadow: none;
    border: 1px solid #cccccc;
    border-radius: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .badge__header {
    background-color: #003057 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .badge::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .badge__qr-image {
    width: 120px !important;
    height: 120px !important;
  }
}

