/* ============================================================
   styles-extra.css — Auth Pages, Dashboard, Admin Topbar,
   Animations, Additional Components
   ============================================================ */

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-alt);
}

.auth-left {
  background: linear-gradient(
    135deg,
    #1a1a1a 0%,
    #2d2d2d 50%,
    var(--primary-dark) 100%
  );
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-left-content {
  position: relative;
  z-index: 1;
}
.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}
.auth-left-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
}
.auth-left-logo-name {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 800;
}
.auth-left-logo-tag {
  font-size: 0.65rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-left-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.auth-left-title span {
  color: #fb923c;
}
.auth-left-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.75;
  margin-bottom: 36px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
}
.auth-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── AUTH RIGHT ─────────────────────────────────────────────── */
.auth-right {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
  overflow-y: auto;
}
.auth-right-header {
  margin-bottom: 28px;
}
.auth-right-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-right-desc {
  font-size: 0.875rem;
  color: var(--muted);
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-alt);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: var(--r-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all var(--t);
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}
.auth-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}
.auth-footer a,
.auth-footer button {
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.auth-footer a:hover,
.auth-footer button:hover {
  text-decoration: underline;
}

/* ── STEP INDICATOR ─────────────────────────────────────────── */
.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background var(--t);
}
.step-dot.done {
  background: var(--green);
}
.step-dot.active {
  background: var(--primary);
}
.step-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.step-label strong {
  color: var(--primary);
}

/* ── SKILLS INPUT ───────────────────────────────────────────── */
.skills-input-wrap {
  display: flex;
  gap: 8px;
}
.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.skill-tag {
  background: var(--navy-light);
  color: var(--navy);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.skill-tag button {
  background: none;
  border: none;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  line-height: 1;
}

/* ── UPLOAD PREVIEW ─────────────────────────────────────────── */
.upload-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-top: 8px;
}
.upload-preview-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
  flex: 1;
}
.upload-preview-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 0.9rem;
}

/* ── ADMIN TOPBAR ────────────────────────────────────────────── */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.admin-topbar-left {
  display: flex;
  flex-direction: column;
}
.admin-topbar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.admin-topbar-crumb {
  font-size: 0.75rem;
  color: var(--muted);
}
.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── DASH SIDEBAR (for separate dashboard pages) ────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background: #1c1917;
  color: #fff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform var(--t) var(--ease);
}
.dash-sidebar-logo {
  padding: 16px 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.dash-sidebar-logo-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}
.dash-sidebar-logo-tag {
  font-size: 0.65rem;
  color: #78716c;
}
.dash-sidebar-user {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.dash-sidebar-user-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
}
.dash-sidebar-user-role {
  font-size: 0.72rem;
  color: #78716c;
}
.dash-nav-section {
  padding: 8px 20px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d6d3d1;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  text-align: left;
}
.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.dash-nav-item.active {
  background: var(--primary);
  color: #fff;
}
.dash-main {
  background: var(--bg-alt);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.dash-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.dash-topbar-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-body {
  padding: 28px 24px;
  flex: 1;
}
.dash-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.dash-page-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.dash-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--bg-alt);
  color: var(--ink);
  font-size: 1.1rem;
}

/* ── CARD ────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.card-body {
  padding: 20px;
}

/* ── STAT CARD ───────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow var(--t);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-card-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.stat-card-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ── SEARCH BAR ──────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 16px;
  transition:
    border-color var(--t),
    box-shadow var(--t);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.1);
}
.search-bar input {
  border: none;
  outline: none;
  background: none;
  font-size: 0.875rem;
  color: var(--ink);
  flex: 1;
}

/* ── ALERT ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #bbf7d0;
}
.alert-error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #fecaca;
}
.alert-warning {
  background: var(--amber-light);
  color: var(--amber);
  border: 1px solid #fde68a;
}
.alert-info {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid #bfdbfe;
}

/* ── SPINNER ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-dark {
  border-color: rgba(0, 0, 0, 0.1);
  border-top-color: var(--primary);
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── RESPONSIVE: AUTH ────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 28px;
  }
  .dash-layout {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-hamburger {
    display: flex;
  }
  .dash-body {
    padding: 20px 16px;
  }
}
@media (max-width: 600px) {
  .auth-right {
    padding: 32px 20px;
  }
  .dash-topbar {
    padding: 0 16px;
  }
  .dash-page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
