/* ═══════════════════════════════════════════════
   DMAI-ID Portal — White Sentinel Design System
   Matching DeepMatch AI Console design language
   ═══════════════════════════════════════════════ */

/* ── Login Screen ── */
.login {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f2ff 0%, #f9f9f9 50%, #eef4ff 100%);
}
.login__card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px);
  border: 1px solid #e2e2e2; border-radius: 16px;
  padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,80,203,0.06), 0 1px 3px rgba(0,0,0,0.04);
  animation: fadeIn 0.4s ease-out;
}
.login__header { text-align: center; margin-bottom: 2rem; }
.login__icon { font-size: 40px; display: block; margin-bottom: 0.75rem; }
.login__title { font-family: 'Space Grotesk'; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: #1a1c1c; }
.login__subtitle { font-family: 'Inter'; font-size: 0.8rem; color: #727687; margin-top: 0.25rem; letter-spacing: 0.02em; }
.login__footer { text-align: center; font-size: 0.65rem; color: #727687; margin-top: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: 'Space Grotesk'; }
.login__error { background: #ffdad6; color: #93000a; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.8rem; margin-top: 1rem; }
.login__google { display: flex; justify-content: center; margin: 1rem 0; }

/* Tabs */
.login__tabs { display: flex; gap: 2px; background: #f3f3f4; border-radius: 10px; padding: 3px; margin-bottom: 1.5rem; }
.login__tab {
  flex: 1; padding: 0.5rem 0.75rem; border: none; background: transparent;
  font-family: 'Space Grotesk'; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #727687;
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
}
.login__tab.active { background: #fff; color: #0050cb; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.login__tab:hover:not(.active) { color: #424656; }
.login__tab-content { display: none; }
.login__tab-content.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: #424656; margin-bottom: 0.35rem; font-family: 'Space Grotesk'; letter-spacing: 0.04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.6rem 0.8rem; border: 1.5px solid #c2c6d8;
  border-radius: 8px; font-size: 0.85rem; font-family: 'Inter';
  background: #fff; color: #1a1c1c; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #0050cb; box-shadow: 0 0 0 3px rgba(0,80,203,0.1); }
.form-group input.uppercase { text-transform: uppercase; letter-spacing: 0.15em; font-family: 'Space Grotesk'; font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border-radius: 8px; font-size: 0.8rem;
  font-family: 'Space Grotesk'; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; border: none; cursor: pointer; transition: all 0.2s;
}
.btn--primary { background: #0050cb; color: #fff; }
.btn--primary:hover { background: #003fa4; box-shadow: 0 4px 12px rgba(0,80,203,0.25); }
.btn--outline { background: transparent; border: 1.5px solid #c2c6d8; color: #424656; }
.btn--outline:hover { border-color: #0050cb; color: #0050cb; }
.btn--full { width: 100%; }
.btn--sm { padding: 0.4rem 0.8rem; font-size: 0.7rem; }
.btn--accent { background: #6c5dd3; color: #fff; }
.btn--accent:hover { background: #5a4db8; }

/* ── Sidebar ── */
.sidebar__link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.5rem; font-family: 'Space Grotesk';
  font-size: 0.7rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em; color: #424656; text-decoration: none;
  transition: all 0.15s; border-right: 2px solid transparent;
}
.sidebar__link:hover { color: #1a1c1c; background: rgba(0,0,0,0.03); }
.sidebar__link.active { color: #0050cb; border-right-color: #0050cb; background: rgba(0,80,203,0.05); }

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(12px);
  border: 1px solid #e2e2e2; border-radius: 12px;
  padding: 1.5rem; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.card__title { font-family: 'Space Grotesk'; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #727687; margin-bottom: 0.5rem; }
.card__value { font-family: 'Space Grotesk'; font-size: 2rem; font-weight: 700; color: #1a1c1c; line-height: 1; }
.card__sub { font-size: 0.75rem; color: #727687; margin-top: 0.25rem; }

/* ── Stat Grid ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

/* ── DMAI-ID Display ── */
.dmai-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, #0050cb 0%, #6c5dd3 100%);
  color: #fff; padding: 0.5rem 1rem; border-radius: 8px;
  font-family: 'Space Grotesk'; font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.12em; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.dmai-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,80,203,0.3); }
.dmai-badge .material-symbols-outlined { font-size: 18px; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed #c2c6d8; border-radius: 12px;
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: all 0.25s; background: rgba(255,255,255,0.5);
}
.upload-zone:hover, .upload-zone.dragover { border-color: #0050cb; background: rgba(0,80,203,0.03); }
.upload-zone .material-symbols-outlined { font-size: 48px; color: #c2c6d8; margin-bottom: 0.75rem; transition: color 0.25s; }
.upload-zone:hover .material-symbols-outlined { color: #0050cb; }
.upload-zone__text { font-family: 'Space Grotesk'; font-size: 0.85rem; color: #727687; }
.upload-zone__hint { font-size: 0.7rem; color: #c2c6d8; margin-top: 0.25rem; }

/* ── Progress Bar ── */
.progress-bar { height: 6px; background: #f3f3f4; border-radius: 3px; overflow: hidden; margin: 1rem 0; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, #0050cb, #6c5dd3); border-radius: 3px; transition: width 0.4s ease; width: 0%; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; }
.table-wrap th { font-family: 'Space Grotesk'; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #727687; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e2e2e2; }
.table-wrap td { padding: 0.75rem 1rem; font-size: 0.8rem; border-bottom: 1px solid #f3f3f4; color: #424656; }
.table-wrap tr:hover td { background: rgba(0,80,203,0.02); }

/* ── Status Badges ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 600; font-family: 'Space Grotesk'; letter-spacing: 0.05em; text-transform: uppercase; }
.badge--verified { background: #d1fae5; color: #065f46; }
.badge--claimed { background: #dbeafe; color: #1e40af; }
.badge--unverified { background: #f3f3f4; color: #727687; }
.badge--system { background: #fef3c7; color: #92400e; }

/* ── Toast ── */
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border: 1px solid #e2e2e2; border-radius: 10px; padding: 0.75rem 1rem; font-size: 0.8rem; box-shadow: 0 4px 16px rgba(0,0,0,0.08); animation: fadeIn 0.3s ease, fadeOut 0.3s ease 3.7s; min-width: 280px; display: flex; align-items: center; gap: 0.5rem; }
.toast--success { border-left: 3px solid #059669; }
.toast--error { border-left: 3px solid #ba1a1a; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #c2c6d8; border-top-color: #0050cb; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ── Ownership Timeline ── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: #e2e2e2; }
.timeline__item { position: relative; padding-bottom: 1.25rem; }
.timeline__dot { position: absolute; left: -1.15rem; top: 0.25rem; width: 10px; height: 10px; border-radius: 50%; background: #0050cb; border: 2px solid #fff; box-shadow: 0 0 0 2px #0050cb; }
.timeline__dot--system { background: #727687; box-shadow: 0 0 0 2px #727687; }
.timeline__action { font-family: 'Space Grotesk'; font-size: 0.75rem; font-weight: 600; color: #1a1c1c; text-transform: uppercase; letter-spacing: 0.05em; }
.timeline__detail { font-size: 0.7rem; color: #727687; margin-top: 0.15rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .card__value { font-size: 1.5rem; }
  .login__card { margin: 1rem; padding: 1.5rem; }
}
