@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #2B2D42;
  --primary-dark: #1f2133;
  --accent: #ff2b61;
  --muted: #94a3b8;
  --surface: #ffffff;
  --surface-alt: #f6f8ff;
  --text-dark: #1f2430;
  --text-muted: #4b5563;
  --border: #e2e8f0;
  --success: #27ae60;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f8fc;
  color: var(--text-dark);
  min-height: 100vh;
}

a {
  color: var(--primary);
}

.react-center-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, #fff4f8, #f4f7fb 65%);
}

.react-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.react-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.react-card p {
  margin: 0;
  color: var(--text-muted);
}

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 24px;
}

.code-box {
  width: 52px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  outline: none;
}

.code-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 43, 97, 0.1);
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  color: #fff;
  font-weight: 600;
  background: var(--primary);
  padding: 14px 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(43, 45, 66, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 120ms ease;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-btn:not(:disabled):hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.muted-link {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.join-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #ffffff;
}

.join-form-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.join-form-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 32px 0;
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}

.form-input,
.form-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 14px 18px 14px 50px;
  font-size: 15px;
  background: #ffffff;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 50px;
  cursor: pointer;
}

.join-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.join-button:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.join-button:active:not(:disabled) {
  transform: translateY(0);
}

.join-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
}

.alert-summary-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 35px 70px rgba(15, 23, 42, 0.12);
}

.alert-summary-card h3 {
  margin: 0;
  font-size: 26px;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.alert-badge {
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  border-radius: 999px;
  padding: 6px 14px;
  background: #f1f5f9;
  font-size: 13px;
}

.details-page {
  min-height: 100vh;
  padding: 32px clamp(16px, 6vw, 80px);
  background: #f5f6fb;
}

.details-header {
  background: var(--surface);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.details-header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tab-switcher {
  margin-top: 24px;
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px;
}

.tab-switcher button {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.tab-switcher button.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(43, 45, 66, 0.12);
}

.details-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.details-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.document-tile {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(43, 45, 66, 0.08);
}

.alert-actions {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.secondary-btn,
.ghost-btn {
  width: 100%;
  border-radius: 20px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}

.secondary-btn .meta,
.ghost-btn .meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.map-page {
  min-height: 100vh;
  background: #0b1222;
  color: #fff;
  padding: 24px;
}

.map-card {
  max-width: 1040px;
  margin: 0 auto;
  background: #121a2d;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(8, 15, 40, 0.45);
}

.map-embed {
  width: 100%;
  height: 420px;
  border: none;
  filter: grayscale(0.3) brightness(0.7) contrast(1.2);
}

.map-details {
  padding: 28px;
}

.map-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.map-pill {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .react-card {
    padding: 28px;
  }

  .join-page-container {
    padding: 16px;
  }

  .join-form-card {
    padding: 32px 24px;
  }

  .join-form-card h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .alert-summary-card {
    padding: 24px;
  }

  .details-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
