/* ==========================================================================
   TopHire Theme - Global Styles
   ========================================================================== */

:root {
  --th-bg-deep: #0a0e1a;
  --th-bg-card: #1e293b;
  --th-bg-sidebar: #0f1729;
  --th-accent-gold: #f59e0b;
  --th-text-primary: #f8fafc;
  --th-text-secondary: #cbd5e1;
  --th-text-muted: #94a3b8;
  --th-sidebar-width: 260px;
  --th-sidebar-collapsed-width: 80px;

  /* Status Colors */
  --th-status-new: #3b82f6;
  --th-status-screening: #8b5cf6;
  --th-status-interview: #06b6d4;
  --th-status-offer: #f59e0b;
  --th-status-placed: #10b981;
  --th-status-rejected: #ef4444;

  --th-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Overrides */
body {
  background-color: var(--th-bg-deep) !important;
  color: var(--th-text-primary) !important;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  overflow-x: hidden;
}

/* --- SIDEBAR STRUCTURE --- */
#sidebar {
  width: var(--th-sidebar-width);
  height: 100vh;
  background-color: var(--th-bg-sidebar);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1050;
  transition: all var(--th-transition);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

#sidebar.collapsed {
  width: var(--th-sidebar-collapsed-width);
}

.sidebar-header {
  padding: 1.5rem 1rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--th-text-primary);
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--th-transition);
}

#sidebar.collapsed .sidebar-logo {
  opacity: 0;
  pointer-events: none;
}

.sidebar-logo span {
  color: var(--th-accent-gold);
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--th-text-secondary);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--th-transition);
  padding: 0;
}

.toggle-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--th-accent-gold);
}

.toggle-btn i {
  font-size: 1.25rem;
  line-height: 1;
}

#sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1.5rem 0;
}

.sidebar-nav {
  flex-grow: 1;
  padding: 0 0.75rem;
}

.nav-item-th {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  color: var(--th-text-secondary) !important;
  text-decoration: none !important;
  border-radius: 12px;
  transition: all var(--th-transition);
  position: relative;
}

.nav-item-th i {
  font-size: 1.4rem;
  min-width: 40px;
  display: flex;
  justify-content: center;
}

.nav-item-th span {
  font-weight: 500;
  white-space: nowrap;
}

#sidebar.collapsed .nav-item-th span,
#sidebar.collapsed .sidebar-logo {
  display: none;
}

.nav-item-th:hover {
  color: var(--th-text-primary) !important;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.nav-item-th.active {
  color: var(--th-accent-gold) !important;
  background-color: rgba(245, 158, 11, 0.1);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.nav-item-th.active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 20%;
  height: 60%;
  width: 4px;
  background-color: var(--th-accent-gold);
  border-radius: 0 4px 4px 0;
}

/* --- MAIN CONTENT AREA --- */
#main-wrapper {
  margin-left: var(--th-sidebar-width);
  padding: 0;
  transition: all var(--th-transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-wrapper.expanded {
  margin-left: var(--th-sidebar-collapsed-width);
}

@media (max-width: 768px) {
  #sidebar {
    width: var(--th-sidebar-collapsed-width);
  }
  #sidebar.collapsed {
    width: 0;
  }
  #main-wrapper {
    margin-left: var(--th-sidebar-collapsed-width);
  }
  #main-wrapper.expanded {
    margin-left: 0;
  }
}

/* Breadcrumbs */
.breadcrumb-item, .breadcrumb-item + .breadcrumb-item::before {
  color: var(--th-text-secondary) !important;
}

.breadcrumb-item a {
  color: var(--th-accent-gold) !important;
  text-decoration: none !important;
}

.breadcrumb-item a:hover {
  text-decoration: underline !important;
}

.breadcrumb-item.active {
  color: var(--th-text-primary) !important;
  font-weight: 600;
}

/* --- GLOBAL COMPONENT OVERRIDES --- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--th-text-primary) !important;
  font-weight: 700;
}

.card {
  background-color: var(--th-bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px !important;
  color: var(--th-text-primary) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.card-header {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 1.25rem 1.5rem !important;
}

.card-header .card-title {
  color: var(--th-text-primary) !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
}

/* Tables & Grids */
.table {
  color: var(--th-text-primary) !important;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.table thead th {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: var(--th-text-secondary) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.table td {
  border-color: rgba(255, 255, 255, 0.02) !important;
}

/* Forms & Inputs */
.form-label {
  color: var(--th-text-secondary) !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
}

.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--th-text-primary) !important;
  border-radius: 8px !important;
  padding: 0.6rem 1rem !important;
  transition: all var(--th-transition);
}

.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--th-accent-gold) !important;
  color: var(--th-text-primary) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.form-control::placeholder {
  color: var(--th-text-muted) !important;
  opacity: 0.6;
}

/* Style for select options in some browsers */
.form-select option {
  background-color: var(--th-bg-card) !important;
  color: var(--th-text-primary) !important;
}

.form-text {
  color: var(--th-text-muted) !important;
  font-size: 0.75rem !important;
}

.input-group-text {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--th-text-secondary) !important;
}

.text-muted {
  color: var(--th-text-muted) !important;
}

.text-secondary {
  color: var(--th-text-secondary) !important;
}

.btn-primary {
  background-color: var(--th-accent-gold) !important;
  border-color: var(--th-accent-gold) !important;
  color: var(--th-bg-deep) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.btn-outline-primary {
  color: var(--th-accent-gold) !important;
  border-color: var(--th-accent-gold) !important;
}

.btn-outline-primary:hover {
  background-color: var(--th-accent-gold) !important;
  color: var(--th-bg-deep) !important;
}

.navbar {
  display: none !important; /* Hide old navbar */
}

.footer {
  background-color: transparent !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 2rem 0 !important;
}

/* Metric Cards 2.0 (Glassmorphism) */
.metric-card-th {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 1.75rem !important;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card-th:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.6) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.metric-card-th .metric-icon-bg {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 5rem;
  opacity: 0.03;
  color: var(--th-text-primary);
  transform: rotate(-10deg);
  pointer-events: none;
  transition: all 0.4s ease;
}

.metric-card-th:hover .metric-icon-bg {
  opacity: 0.08;
  transform: rotate(0deg) scale(1.1);
}

.metric-label-th {
  color: var(--th-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.metric-value-th {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.metric-footer-th {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-badge-th {
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* User Profile (Sidebar Footer) */
.user-profile-th {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: auto;
}

.user-avatar-th {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.user-info-th span {
  font-size: 0.9rem;
  color: var(--th-text-primary);
}

.user-info-th .small {
  font-size: 0.75rem;
}

/* --- PREMIUM LOGIN OVERHAUL --- */
.login-wrapper-th {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at top right, #1e293b, #0a0e1a);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.login-wrapper-th::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.05), transparent 40%),
              radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.05), transparent 40%);
  animation: mesh-drift 20s infinite alternate ease-in-out;
}

@keyframes mesh-drift {
  from { transform: translate(-10%, -10%); }
  to { transform: translate(10%, 10%); }
}

.glass-card-th {
  background: rgba(30, 41, 59, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header-th {
  text-align: center;
  padding: 3rem 2rem 2rem;
}

.login-logo-th {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--th-text-primary);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.login-logo-th span {
  color: var(--th-accent-gold);
}

.login-form-th {
  padding: 0 3rem 3rem;
}

.login-input-group-th {
  margin-bottom: 1.5rem;
}

.login-input-th {
  background: rgba(15, 23, 41, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--th-text-primary) !important;
  padding: 1rem 1.25rem !important;
  border-radius: 12px !important;
  transition: all 0.3s ease;
}

.login-input-th:focus {
  background: rgba(15, 23, 41, 0.8) !important;
  border-color: var(--th-accent-gold) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1) !important;
  transform: translateY(-2px);
}

.login-btn-th {
  background: var(--th-accent-gold) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
}

.login-btn-th:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4) !important;
}

.login-footer-th {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.pulse-dot-th {
  width: 8px;
  height: 8px;
  background-color: var(--th-accent-gold);
  border-radius: 50%;
  animation: th-pulse 1.5s infinite;
}

@keyframes th-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* --- TOOLTIP PREMIUM STYLING --- */
.tooltip-inner {
  background-color: var(--th-bg-sidebar) !important;
  color: var(--th-accent-gold) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.85rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px);
}

.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: rgba(245, 158, 11, 0.3) !important;
}

.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: rgba(245, 158, 11, 0.3) !important;
}

.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: rgba(245, 158, 11, 0.3) !important;
}

.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: rgba(245, 158, 11, 0.3) !important;
}

/* --- CHAT PREMIUM STYLING --- */
.chat-container-th {
  background: var(--th-bg-sidebar);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chat-header-th {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 1.5rem;
}

#chat-window {
  background: rgba(0, 0, 0, 0.1);
  background-image: radial-gradient(rgba(245, 158, 11, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Custom Scrollbar for Chat */
#chat-window::-webkit-scrollbar {
  width: 6px;
}

#chat-window::-webkit-scrollbar-track {
  background: transparent;
}

#chat-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.message-bubble-th {
  padding: 0.85rem 1.25rem;
  border-radius: 18px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.message-own-th {
  background: linear-gradient(135deg, var(--th-accent-gold), #fbbf24);
  color: #000 !important;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.message-other-th {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--th-text-secondary) !important;
  backdrop-filter: blur(8px);
  border-bottom-left-radius: 4px;
}

.typing-indicator-th {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1.5rem;
  color: var(--th-text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.chat-footer-th {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-th {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--th-text-primary) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.25rem !important;
}

.chat-input-th:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--th-accent-gold) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1) !important;
}
/* --- CANDIDATE SEARCH 2.0 STYLING --- */
.search-hero-th {
  padding: 4rem 0 3rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
  margin-bottom: 2rem;
}

.search-box-wrapper-th {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.search-input-th {
  background: rgba(30, 41, 59, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 100px !important;
  padding: 1.25rem 2rem 1.25rem 4rem !important;
  font-size: 1.15rem !important;
  color: var(--th-text-primary) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-input-th:focus {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: var(--th-accent-gold) !important;
  box-shadow: 0 15px 40px -10px rgba(245, 158, 11, 0.2) !important;
  transform: translateY(-2px);
}

.search-icon-th {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--th-accent-gold);
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-input-th:focus + .search-icon-th {
  transform: translateY(-50%) scale(1.1);
  filter: drop-shadow(0 0 5px var(--th-accent-gold));
}

/* Candidate Cards */
.candidate-results-th {
  max-width: 900px;
  margin: 0 auto;
}

.candidate-item-th {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}

.candidate-item-th:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateX(8px);
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.4);
}

.candidate-item-th::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--th-accent-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.candidate-item-th:hover::before {
  opacity: 1;
}

.candidate-avatar-th {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--th-accent-gold);
  flex-shrink: 0;
}

.candidate-info-th {
  flex-grow: 1;
}

.candidate-name-th {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--th-text-primary);
}

.candidate-meta-th {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--th-text-secondary);
  margin-bottom: 0.75rem;
}

.candidate-meta-th i {
  color: var(--th-accent-gold);
}

.candidate-skills-th {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge-th {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--th-text-secondary);
  transition: all 0.2s ease;
}

.candidate-item-th:hover .skill-badge-th {
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--th-text-primary);
}

.candidate-actions-th {
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.candidate-item-th:hover .candidate-actions-th {
  opacity: 1;
  transform: translateX(0);
}

.btn-action-th {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--th-text-secondary);
  transition: all 0.2s ease;
}

.btn-action-th:hover {
  background: var(--th-accent-gold);
  color: var(--th-bg-deep);
  border-color: var(--th-accent-gold);
}

.status-indicator-th {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
}

.empty-state-th {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--th-text-muted);
}

.empty-state-th i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.2;
}

/* --- ELEGANT PROFILE REFINEMENTS --- */
.profile-header-th {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 2rem;
  margin: -1.5rem -1.5rem 2rem -1.5rem; /* Offset layout padding */
}

.candidate-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--th-accent-gold), #fbbf24);
  color: var(--th-bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  box-shadow: 0 20px 40px -10px rgba(245, 158, 11, 0.3);
  position: relative;
  z-index: 2;
}

.profile-name-th {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-meta-item-th {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--th-text-secondary);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.profile-meta-item-th:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.btn-premium-th {
  background: var(--th-accent-gold);
  color: var(--th-bg-deep) !important;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-premium-th:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5);
  filter: brightness(1.1);
}

.btn-premium-outline-th {
  background: transparent;
  color: var(--th-text-primary) !important;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-premium-outline-th:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--th-accent-gold);
  color: var(--th-accent-gold) !important;
}

/* Skills Grid 2.0 */
.skill-card-th {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.skill-card-th:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-5px);
}

.skill-progress-th {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
}

.skill-progress-bar-th {
  height: 100%;
  background: linear-gradient(to right, var(--th-accent-gold), #fbbf24);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.info-card-label-th {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--th-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.info-card-value-th {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--th-text-primary);
}

/* --- PREMIUM GLASS TABLE --- */
.glass-table-container-th {
  background: rgba(30, 41, 59, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.glass-table-th {
  margin-bottom: 0 !important;
}

.glass-table-th thead th {
  background: rgba(255, 255, 255, 0.03) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--th-text-secondary) !important;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 1.25rem 1.5rem !important;
}

.glass-table-th tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.glass-table-th tbody tr:last-child {
  border-bottom: none !important;
}

.glass-table-th tbody tr:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.glass-table-th tbody td {
  padding: 1.25rem 1.5rem !important;
  color: var(--th-text-primary) !important;
  vertical-align: middle;
}

.glass-table-th .text-gold {
  color: var(--th-accent-gold) !important;
}

.btn-glass-th {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--th-text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-glass-th:hover {
  background: var(--th-accent-gold);
  color: var(--th-bg-deep);
  border-color: var(--th-accent-gold);
  transform: translateY(-2px);
}

.pagination-glass-th .page-link {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--th-text-secondary) !important;
  margin: 0 3px;
  border-radius: 8px !important;
  padding: 0.5rem 0.85rem;
  transition: all 0.2s ease;
}

.pagination-glass-th .page-item.active .page-link {
  background: var(--th-accent-gold) !important;
  border-color: var(--th-accent-gold) !important;
  color: var(--th-bg-deep) !important;
  font-weight: 700;
}

.pagination-glass-th .page-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: var(--th-accent-gold) !important;
}

.search-bar-glass-th {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.6rem 1.25rem !important;
  color: var(--th-text-primary) !important;
}

.search-bar-glass-th:focus {
  border-color: var(--th-accent-gold) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
}


/* --- BOOTSTRAP ALERT DARK THEME OVERRIDES --- */
/* Bootstrap's --bs-alert-bg defaults to light colors in Bootstrap 5.
   These !important overrides force all Bootstrap alerts to match the TopHire dark theme. */
.alert {
  --bs-alert-bg: transparent;
  border-radius: 10px !important;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  border-left: 4px solid #3b82f6 !important;
  color: #93c5fd !important;
}

.alert-info strong {
  color: #f8fafc !important;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
  border-left: 4px solid #f59e0b !important;
  color: #fcd34d !important;
}

.alert-warning strong {
  color: #f8fafc !important;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-left: 4px solid #10b981 !important;
  color: #6ee7b7 !important;
}

.alert-success strong {
  color: #f8fafc !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-left: 4px solid #ef4444 !important;
  color: #fca5a5 !important;
}

.alert-danger strong {
  color: #f8fafc !important;
}
