/* ============================================================
   SEPI LAB PORTAL — Additional Styles
   Works alongside Tailwind CDN. Matches existing site design.
   ============================================================ */

/* ── 2-Step Registration ─────────────────────────────────── */
.reg-step { display: none; animation: regFade .35s ease; }
.reg-step.active { display: block; }
@keyframes regFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.category-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem 1rem; border: 2px solid #e2e8f0; border-radius: 12px;
  background: #fff; cursor: pointer; transition: all .25s ease; flex: 1; text-align: center;
}
.category-btn:hover { border-color: #0d6efd; background: #f0f7ff; }
.category-btn.selected { border-color: #0a4275; background: #e8f0fe; box-shadow: 0 0 0 3px rgba(10,66,117,.12); }
.category-btn i { font-size: 2.2rem; margin-bottom: .5rem; color: #0a4275; }
.category-btn .cb-label { font-weight: 600; font-size: .95rem; color: #1e293b; }
.category-btn .cb-sub { font-size: .78rem; color: #64748b; margin-top: .15rem; }

.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.role-chip {
  padding: .85rem .75rem; border: 2px solid #e2e8f0; border-radius: 10px;
  background: #fff; cursor: pointer; text-align: center; transition: all .25s ease;
}
.role-chip:hover { border-color: #0d6efd; background: #f0f7ff; }
.role-chip.selected { border-color: #0a4275; background: #e8f0fe; box-shadow: 0 0 0 3px rgba(10,66,117,.12); }
.role-chip i { font-size: 1.4rem; display: block; margin-bottom: .3rem; color: #0a4275; }
.role-chip span { font-weight: 600; font-size: .85rem; }

/* ── Photo Upload Zone ───────────────────────────────────── */
.photo-upload-zone {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 2rem;
  text-align: center; cursor: pointer; transition: all .25s ease;
  background: #f8fafc;
}
.photo-upload-zone:hover { border-color: #0a4275; background: #f0f7ff; }
.photo-upload-zone.dragover { border-color: #0d6efd; background: #dbeafe; }
.photo-quality-note {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem;
  padding: .5rem 1rem; background: #fef9c3; border-radius: 8px;
  font-size: .8rem; color: #92400e; font-weight: 500;
}

/* ── Dashboard Tabs ──────────────────────────────────────── */
.dash-tab {
  padding: .6rem 1.2rem; border-radius: 8px; font-weight: 500;
  cursor: pointer; transition: all .2s; font-size: .9rem; white-space: nowrap;
}
.dash-tab:hover { background: #e2e8f0; }
.dash-tab.active { background: #0a4275; color: #fff; }

.dash-panel { display: none; animation: regFade .3s ease; }
.dash-panel.active { display: block; }

/* ── Profile Popup Overlay ───────────────────────────────── */
.profile-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.55); align-items: center; justify-content: center;
  padding: 1rem; animation: overlayIn .25s ease;
}
.profile-overlay.show { display: flex; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.profile-modal {
  background: #fff; border-radius: 16px; max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0,0,0,.2);
  animation: modalSlide .3s ease;
}
@keyframes modalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Admin Sections ──────────────────────────────────────── */
.admin-section { margin-bottom: 2rem; }
.admin-section h3 { font-size: 1.1rem; font-weight: 700; color: #0a4275; margin-bottom: 1rem;
  padding-bottom: .5rem; border-bottom: 2px solid #e2e8f0; }

.pending-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 1rem; margin-bottom: .75rem; transition: box-shadow .2s;
}
.pending-card:hover { box-shadow: 0 4px 16px rgba(10,66,117,.1); }

.badge {
  display: inline-block; padding: .15rem .6rem; border-radius: 50px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ── Misc ────────────────────────────────────────────────── */
.btn-primary {
  background: #0a4275; color: #fff; padding: .6rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: background .2s; display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { background: #0d5a9e; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-danger { background: #dc2626; color: #fff; padding: .45rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: .82rem; border: none; cursor: pointer; transition: background .2s; }
.btn-danger:hover { background: #b91c1c; }

.btn-outline {
  background: transparent; color: #0a4275; padding: .45rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: .82rem; border: 2px solid #0a4275; cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: #0a4275; color: #fff; }

.form-input {
  width: 100%; padding: .6rem .85rem; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; transition: border-color .2s; outline: none; font-family: inherit;
}
.form-input:focus { border-color: #0a4275; box-shadow: 0 0 0 3px rgba(10,66,117,.1); }

.form-label { display: block; font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: .3rem; }

.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  padding: .8rem 1.5rem; border-radius: 10px; color: #fff; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.15); animation: toastIn .3s ease; font-size: .9rem;
}
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
@keyframes toastIn { from { transform: translateY(20px); opacity:0; } to { transform: translateY(0); opacity:1; } }

.loading-spinner {
  display: inline-block; width: 2rem; height: 2rem;
  border: 3px solid #e2e8f0; border-top-color: #0a4275; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Team Page Role Sub-sections ─────────────────────────── */
.role-section-title {
  font-size: 1.15rem; font-weight: 700; color: #0a4275;
  margin: 2rem 0 1rem; padding-bottom: .4rem; border-bottom: 2px solid #e2e8f0;
  display: flex; align-items: center; gap: .5rem;
}
.role-section-title i { font-size: 1rem; opacity: .7; }
