html, body { margin: 0; padding: 0; }

/* Bootstrap's default .table-hover tint is too faint to notice against this
   theme's near-white backgrounds — make the whole row clearly highlight on
   hover, not just whichever badge/button the cursor happens to land on. */
.table-hover > tbody > tr:hover > * {
  background-color: #eff6ff !important;
}

.app-body {
  background: #f7f8fb;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2bbcff, #2a6bff);
}

.sidebar {
  background: #ffffff;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: 10px;
  color: #1f2937;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-link:hover {
  background: #f1f5ff;
}

.sidebar-link.active {
  background: #eaf2ff;
  color: #0b5ed7;
}

.dashboard-card {
  border-radius: 16px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #0b5ed7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.login-card { border-radius: 16px; }


.info-tile {
  border: 1px dashed #d7dbe7;
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}

.ai-box{
  border: 2px solid #0b5ed7;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.ai-clear{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 8px;
  color: #6b7280;
}
.ai-clear:hover{ color: #111827; }


.page-subtitle{
  color:#2563eb;
  font-weight:700;
  font-size:28px;
}
.page-title{
  font-weight:600;
  font-size:16px;
  color:#6b7280;
}

/* ── Jobs Grid ─────────────────────────────────────────────────────────── */
.jobs-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap:14px;
}

@media (max-width: 900px){
  .jobs-grid{ grid-template-columns: 1fr; }
}

/* Card */
.job-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:14px 16px;
  box-shadow:0 2px 10px rgba(0,0,0,0.06);
  position:relative;
  overflow:hidden;
  transition:box-shadow 0.18s;
}
.job-card:hover{
  box-shadow:0 6px 20px rgba(37,99,235,0.10);
}

/* Subtle accent gradient */
.job-card:before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:3px;
  background:linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius:14px 14px 0 0;
  pointer-events:none;
}
.job-card > *{ position:relative; }

/* Job title — shown first */
.job-title{
  font-size:15px;
  font-weight:700;
  color:#0f172a;
  margin:0;
  line-height:1.35;
}

/* Chips row — below title, smaller */
.job-chips{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.chip{
  display:inline-flex;
  align-items:center;
  padding:2px 9px;
  border-radius:999px;
  font-weight:600;
  font-size:10.5px;
  white-space:nowrap;
}

.chip-blue   { background:#dbeafe; color:#1d4ed8; }
.chip-purple { background:#ede9fe; color:#6d28d9; }
.chip-green  { background:#dcfce7; color:#15803d; }
.chip-gray   { background:#f1f5f9; color:#475569; }

/* Kebab menu button */
.kebab{
  background:transparent;
  border:0;
  font-size:18px;
  line-height:1;
  color:#6b7280;
  padding:0 4px;
}
.kebab:hover{ color:#111827; }

/* Created-by inline (no box, just flex row) */
.job-avatar{
  width:28px;
  height:28px;
  border-radius:8px;
  background:linear-gradient(135deg,#4f8ef7,#2563eb);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:12px;
  flex-shrink:0;
}

.created-label{
  color:#9ca3af;
  font-size:10px;
  line-height:1;
}
.created-name{
  color:#2563eb;
  font-weight:700;
  font-size:12px;
  margin-top:1px;
}

/* Candidates pill (right side of meta row) */
.cand-pill{
  display:flex;
  align-items:center;
  gap:5px;
  background:#f0f5ff;
  border:1px solid #dbeafe;
  border-radius:999px;
  padding:4px 10px;
}
.cand-pill-icon{ font-size:13px; }
.cand-pill-num{
  font-size:15px;
  font-weight:800;
  color:#2563eb;
  line-height:1;
}
.cand-pill-label{
  font-size:10px;
  font-weight:600;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.05em;
}

/* Action buttons */
.job-actions{
  display:flex;
  gap:8px;
  margin-top:0;
}

.btn-soft{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:8px;
  font-weight:600;
  font-size:12.5px;
  text-decoration:none;
}

.btn-view{
  background:#2563eb;
  color:#fff;
}
.btn-view:hover{ background:#1d4ed8; color:#fff; }

.btn-upload{
  background:#fff;
  color:#7c3aed;
  border:1.5px solid rgba(124,58,237,0.45);
}
.btn-upload:hover{ background:#faf5ff; color:#6d28d9; }



.fake-video {
  width: 100%;
  max-width: 420px;
  height: 220px;
  border-radius: 16px;
  background: #e9ecf5;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.chip-green{
  background:#16a34a;
  color:#fff;
}
.chip-gray{
  background:#64748b;
  color:#fff;
}


/* ===== LOGIN SECTION ===== */

.login-wrapper{
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: linear-gradient(135deg, #f5f8ff 0%, #f8fafc 100%);
}

/* Card */
.login-card{
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(36,91,255,0.12);
}

/* Muted text */
.login-card .text-muted{
  color: #64748b !important;
}

/* Inputs */
.form-control-dark{
  background: #ffffff;
  border: 1px solid #dbe3f0;
  color: #0f172a;
}

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

.form-control-dark:focus{
  border-color: #245bff;
  box-shadow: 0 0 0 .25rem rgba(36,91,255,.18);
}

/* Input icons */
.input-group-text.input-icon{
  background: #ffffff;
  border: 1px solid #dbe3f0;
  color: #245bff;
}

/* Eye button */
.btn-eye{
  background: #ffffff;
  border: 1px solid #dbe3f0;
  color: #245bff;
}

.btn-eye:hover{
  background: #eef4ff;
}

/* Primary CTA */
.btn-gradient{
  border: none;
  border-radius: 14px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #245bff 0%, #7a3cff 100%);
  box-shadow: 0 8px 24px rgba(36,91,255,0.35);
}

.btn-gradient:hover{
  filter: brightness(1.06);
}

/* Links */
.link-accent{
  color: #245bff;
  font-weight: 600;
}

.link-accent:hover{
  color: #1e4fd9;
}

.link-muted{
  color: #64748b;
}

.link-muted:hover{
  color: #475569;
}

/* Hide Bootstrap's default caret on the profile dropdown — we use our own chevron icon */
.nav-profile-btn::after {
  display: none !important;
}


/* ============================================================
   LAYOUT — NAVBAR
   ============================================================ */

.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Profile trigger button */
.nav-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 6px 12px 6px 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-profile-btn:hover { background: rgba(255,255,255,0.14); }
.nav-profile-btn::after { display: none; } /* hide default dropdown arrow */

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f8ef7, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Profile dropdown */
.profile-dropdown {
  min-width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  padding: 4px 0;
  margin-top: 8px !important;
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8faff;
}

.profile-dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f8ef7, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-detail-icon {
  font-size: 14px;
  color: #4f8ef7;
  margin-top: 2px;
  width: 16px;
  flex-shrink: 0;
}

.profile-detail-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}

.profile-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 1px;
}


/* ============================================================
   LAYOUT — SIDEBAR
   ============================================================ */

.app-layout {
  min-height: calc(100vh - 56px);
  padding-top: 56px;
}

.app-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #f1f3f9;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
  padding: 24px;
  background: #f4f6fb;
  min-width: 0;
}

.content-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* Sidebar user chip */
.sidebar-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 14px 10px;
  padding: 12px;
  background: linear-gradient(135deg, #f0f5ff, #e8f0ff);
  border-radius: 12px;
  border: 1px solid rgba(79,142,247,0.15);
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f8ef7, #2563eb);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.sidebar-user-role {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  margin-top: 2px;
}

/* Sidebar nav */
.sidebar-nav {
  padding: 8px 10px;
}

.sidebar-section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #374151;
  padding: 10px 8px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #374151;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
}
.sidebar-link:hover {
  background: #f0f5ff;
  color: #2563eb;
}
.sidebar-link.active {
  background: linear-gradient(90deg, #eef4ff, #e6efff);
  color: #2563eb;
  font-weight: 600;
}
.sidebar-link.active .sidebar-icon { color: #2563eb; }

.sidebar-icon {
  font-size: 15px;
  color: #9ca3af;
  width: 18px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sidebar-link:hover .sidebar-icon { color: #2563eb; }

/* Sidebar footer / logout */
.sidebar-footer {
  padding: 10px;
  border-top: 1px solid #f1f3f9;
}
.sidebar-logout { color: #ef4444; }
.sidebar-logout:hover { background: #fff1f1; color: #dc2626; }
.sidebar-logout .sidebar-icon { color: #ef4444; }
.sidebar-logout:hover .sidebar-icon { color: #dc2626; }


/* ============================================================
   DASHBOARD
   ============================================================ */

.dash-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #4f8ef7;
  margin-bottom: 2px;
}

.dash-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Stat cards */
.stat-card {
  background: #fff;
  border: 1px solid #f1f3f9;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 6px 20px rgba(79,142,247,0.12); }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* Profile Card */
.profile-card {
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  border: 1px solid #e5e7eb;
}

.profile-card-left {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  text-align: center;
}

.profile-big-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.profile-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.profile-card-role-badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(79,142,247,0.25);
  color: #93c5fd;
  border: 1px solid rgba(79,142,247,0.35);
  border-radius: 999px;
  padding: 3px 12px;
}

.profile-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #4f8ef7, #2563eb);
  color: #fff;
  transition: opacity 0.2s;
}
.profile-action-btn:hover { opacity: 0.88; color: #fff; }

.profile-action-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s;
}
.profile-action-btn-outline:hover { background: rgba(255,255,255,0.16); color: #fff; }

.profile-card-right {
  flex: 1;
  padding: 28px 28px;
  background: #fff;
}

.profile-detail-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 18px;
}

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

@media (max-width: 640px) {
  .profile-card { flex-direction: column; }
  .profile-card-left { width: 100%; }
  .profile-info-grid { grid-template-columns: 1fr; }
}

.profile-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profile-info-icon {
  font-size: 16px;
  color: #4f8ef7;
  margin-top: 2px;
  flex-shrink: 0;
}

.profile-info-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 3px;
}

.profile-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
