* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.brand-link {
  color: #2563eb;
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.page-subtitle {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 13px;
}

.back-link {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.page-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 70px;
}

.page-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-title-section h1 {
  margin: 0;
  font-size: 30px;
}

.page-title-section p {
  margin: 8px 0 0;
  color: #64748b;
}

.primary-button,
.secondary-button,
.action-button {
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  min-height: 44px;
  padding: 0 18px;
  background: #2563eb;
  color: #ffffff;
}

.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  background: #e2e8f0;
  color: #334155;
}

.toolbar-card {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.club-select-group {
  flex: 1;
  max-width: 420px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-group span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.field-group input,
.field-group select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.field-group input:focus,
.field-group select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-group--full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding-top: 22px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 20px;
}

.count-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.meeting-list {
  display: grid;
  gap: 14px;
}

.meeting-card {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.meeting-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.meeting-card__title {
  margin: 0;
  font-size: 19px;
}

.meeting-code {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.meeting-info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.info-item {
  padding: 12px;
  border-radius: 11px;
  background: #f8fafc;
}

.info-label {
  display: block;
  margin-bottom: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.info-value {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.meeting-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.action-button {
  min-height: 36px;
  padding: 0 13px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
}

.action-button--primary {
  background: #dbeafe;
  color: #1d4ed8;
}

.action-button--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-badge {
  flex-shrink: 0;
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-draft {
  background: #e2e8f0;
  color: #475569;
}

.status-open {
  background: #dcfce7;
  color: #15803d;
}

.status-closed {
  background: #fef3c7;
  color: #b45309;
}

.status-finished {
  background: #ede9fe;
  color: #6d28d9;
}

.empty-state {
  padding: 52px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.empty-state strong {
  font-size: 17px;
}

.empty-state p {
  margin: 8px 0 0;
  color: #64748b;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(2px);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-overlay p {
  color: #334155;
  font-weight: 700;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .page-header {
    padding: 15px 16px;
  }

  .page-container {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .page-title-section {
    align-items: flex-start;
  }

  .page-title-section h1 {
    font-size: 25px;
  }

  .toolbar-card {
    align-items: stretch;
    flex-direction: column;
  }

  .club-select-group {
    max-width: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-group--full {
    grid-column: auto;
  }

  .meeting-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .page-title-section {
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  .meeting-card__header {
    flex-direction: column;
  }

  .status-badge {
    align-self: flex-start;
  }

  .meeting-info {
    grid-template-columns: 1fr;
  }

  .meeting-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* v1.9.31 모임목록 리뉴얼 */
.page-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-delete-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #ef4444;
  border-radius: 11px;
  background: #ffffff;
  color: #dc2626;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.bulk-delete-button:not(:disabled):hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
}

.bulk-delete-button:disabled {
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
}

.meeting-search-group {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  max-width: 360px;
}

.meeting-search-group span {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.meeting-search-group input {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
}

.meeting-search-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.section-header {
  justify-content: space-between;
}

.section-heading-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-all-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.select-all-control input,
.meeting-select-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.meeting-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: #dbe3ef;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.meeting-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg,#2563eb,#60a5fa);
  content: "";
}

.meeting-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 15px 38px rgba(15,23,42,.10);
  transform: translateY(-2px);
}

.meeting-card.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12), 0 15px 38px rgba(15,23,42,.10);
}

.meeting-card__body {
  padding: 20px 20px 18px 24px;
}

.meeting-card__header-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.meeting-card__checkbox-wrap {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
}

.meeting-card__title-wrap {
  min-width: 0;
}

.meeting-card__title {
  overflow: hidden;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-code {
  display: inline-flex;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.info-item {
  border: 1px solid #eef2f7;
  background: linear-gradient(180deg,#fbfdff,#f8fafc);
}

.meeting-actions {
  margin: 0;
  padding: 14px 20px 14px 24px;
  border-top: 1px solid #eef2f7;
  background: #fbfdff;
}

.delete-verification-message {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.65;
  white-space: pre-line;
}

.verification-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 13px;
  background: #fff7f7;
}

.verification-code-box span {
  color: #991b1b;
  font-size: 13px;
  font-weight: 800;
}

.verification-code-box strong {
  color: #dc2626;
  font-size: 30px;
  letter-spacing: .12em;
}

.verification-input-group input {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .18em;
  text-align: center;
}

.verification-error {
  margin: 9px 0 0;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width:760px) {
  .page-title-actions { width: 100%; }
  .page-title-actions > button { flex: 1; }
  .meeting-search-group { max-width: none; }
  .section-header { align-items: flex-start; }
}

@media (max-width:480px) {
  .page-title-actions { display:grid; grid-template-columns:1fr 1fr; }
  .page-title-actions .primary-button { width:auto; }
  .section-header { gap:12px; }
  .meeting-card__body { padding:17px 14px 15px 18px; }
  .meeting-actions { padding:12px 14px 12px 18px; }
}


.meeting-tabs { display:flex; gap:8px; margin:0 0 16px; padding:6px; border:1px solid #e2e8f0; border-radius:14px; background:#fff; width:max-content; max-width:100%; overflow:auto; }
.meeting-tab { border:0; border-radius:10px; padding:10px 16px; background:transparent; color:#64748b; font-weight:800; cursor:pointer; white-space:nowrap; }
.meeting-tab.is-active { background:#0f172a; color:#fff; box-shadow:0 4px 12px rgba(15,23,42,.18); }
.meeting-card.is-trash { border-style:dashed; background:#f8fafc; opacity:.92; }
.status-deleted { background:#e2e8f0; color:#475569; }
.meeting-card.is-trash .meeting-card__title, .meeting-card.is-trash .info-value { color:#64748b; }
@media (max-width:640px){ .meeting-tabs{width:100%;} .meeting-tab{flex:1;} }
