/* c:\WORK\UK\EasyStaff\Candidate_portal\css\portal.css */

:root {
  --primary-blue: #32B5F3;
  --primary-blue-hover: #199DD9;
  --blue-soft: rgba(50, 181, 243, 0.1);

  --accent-green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.1);

  --accent-orange: #F59E0B;
  --orange-soft: rgba(245, 158, 11, 0.1);

  --text-dark: #1F2937;
  --text-dark-secondary: #212529;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --bg-gray: #F3F4F6;

  --text-muted: #6c757d;
  --bg-light-alt: #f8f9fa;
  --border-light: #e5e7eb;
  --border-hover: #d1d5db;

  --shadow-sm: rgba(0, 0, 0, 0.05);
  --shadow-md: rgba(0, 0, 0, 0.075);
  --shadow-lg: rgba(0, 0, 0, 0.15);

  --white: #ffffff;
  --btn-search-hover: #D97706;
  --success-color: #198754;

  --bs-primary-soft: rgba(13, 110, 253, 0.1);
  --bs-success-soft: rgba(25, 135, 84, 0.1);
  --bs-warning-soft: rgba(245, 158, 11, 0.1);
}

body {
  font-family: 'League Spartan', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Custom Colors & Utilities */
.text-primary {
  color: var(--primary-blue) !important;
}

.bg-light-gray {
  background-color: var(--bg-gray) !important;
}

.bg-blue-soft {
  background-color: var(--blue-soft);
}

.text-blue {
  color: var(--primary-blue);
}

/* Responsive Utilities */
.logo-img {
  height: 70px;
  width: auto;
  transition: height 0.3s ease;
}

.nav-link-custom {
  position: relative;
  display: inline-block;
}

.nav-link-custom.active {
  color: var(--accent-orange) !important;
}

@media (min-width: 992px) {
  .border-lg-0 {
    border: 0 !important;
  }
  .nav-link-custom {
    width: auto !important;
    padding-bottom: 24px;
    margin-bottom: -24px;
    border-bottom: 2px solid transparent;
  }
  .nav-link-custom.active {
    border-bottom-color: var(--accent-orange);
  }
}

@media (max-width: 991.98px) {
  .nav-link-custom.active {
    border-left: 3px solid var(--accent-orange);
    padding-left: 0.5rem;
  }
}

/* Mobile Hamburger Animation */
.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark-color, #212529);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .logo-img {
    height: 45px;
  }
  
  .search-box-mobile-stack {
    flex-direction: column !important;
  }
  .search-box-mobile-stack > .input-group {
    border-bottom: 1px solid var(--border-light) !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }
  .search-box-mobile-stack > .input-group:nth-of-type(3) {
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .search-box-mobile-stack .btn-search {
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
}

/* Hide scrollbar for tabs */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.bg-green-soft {
  background-color: var(--green-soft);
}

.text-green {
  color: var(--accent-green);
}

.bg-orange-soft {
  background-color: var(--orange-soft);
}

.text-orange {
  color: var(--accent-orange);
}

.bg-primary-soft {
  background-color: var(--blue-soft);
}

.fs-sm {
  font-size: 0.875rem;
}

.fs-7 {
  font-size: 0.875rem !important; /* 14px */
}

.fs-8 {
  font-size: 0.75rem !important; /* 12px */
}

.cursor-pointer {
  cursor: pointer;
}

.transition {
  transition: all 0.3s ease;
}

.hover-bg-gray:hover {
  background-color: var(--border-light) !important;
}

.hover-primary:hover {
  color: var(--primary-blue) !important;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-blue);
  color: var(--white);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
}

/* Search Box */
.portal-search {
  border-bottom: 1px solid var(--border-light);
}

.search-input input:focus,
.location-input input:focus {
  outline: none;
  box-shadow: none;
}

.search-box {
  border-color: var(--border-light) !important;
}

/* Sidebar Filters */
.sticky-sidebar {
  position: sticky;
  top: 90px;
}

/* Job Cards */
.job-card {
  cursor: pointer;
  border-color: var(--border-light) !important;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-sm) !important;
  border-color: var(--border-hover) !important;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-color: var(--border-light) !important;
}

/* Pagination Custom */
.pagination-custom .page-link {
  width: 40px;
  height: 40px;
  color: var(--text-dark);
}

.pagination-custom .page-item.active .page-link {
  background-color: var(--primary-blue);
  color: var(--white);
}

.pagination-custom .page-item:not(.active) .page-link:hover {
  background-color: var(--bg-gray);
  color: var(--primary-blue);
}

/* Footer (Matching Landing_HTML style) */
.social-icon {
  width: 40px;
  height: 40px;
}

.social-icon:hover {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
}

.footer-links a {
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-blue) !important;
}

/* Typography Utilities */
.fw-500 {
  font-weight: 500;
}

.ls-tight {
  letter-spacing: -0.5px;
}

.lh-1-6 {
  line-height: 1.6;
}

.text-gray-600 {
  color: #6B7280;
}

/* Sizing & Layout */
.min-w-max {
  min-width: max-content;
}

.w-28 {
  width: 28%;
}

.w-22 {
  width: 22%;
}

.box-42 {
  width: 42px;
  height: 42px;
}

.box-50 {
  width: 50px;
  height: 50px;
}

.box-40 {
  width: 40px;
  height: 40px;
}

.h-30 {
  height: 30px;
}

.h-25 {
  height: 25px;
}

.max-h-400 {
  max-height: 400px;
}

/* Padding Utilities */
.p-2px {
  padding: 2px;
}

.p-2-5px {
  padding: 2px 5px;
}

.p-4-6px {
  padding: 4px 6px;
}

/* Background Utilities */
.bg-portal-search {
  background-color: var(--bg-light-alt);
  background-image: url('../images/candidate-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft Background Colors */
.bg-primary-soft {
  background-color: var(--bs-primary-soft) !important;
}

.bg-success-soft {
  background-color: var(--bs-success-soft) !important;
}

.bg-warning-soft {
  background-color: var(--bs-warning-soft) !important;
}

.bg-danger-soft {
  background-color: rgba(220, 53, 69, 0.1) !important;
}

.btn-danger-soft {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: none;
  transition: all 0.3s ease;
}

.btn-danger-soft:hover {
  background-color: #dc3545;
  color: #fff !important;
}

/* Custom Buttons */
.btn-search,
.btn-apply {
  background-color: var(--accent-orange, #F59E0B);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
}

.btn-search:hover,
.btn-apply:hover {
  background-color: var(--btn-search-hover);
  color: #fff;
}

/* Job Card Component */
.job-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color);
  box-shadow: 0 0.125rem 0.25rem var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem var(--shadow-lg);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-card-logo-wrapper {
  background-color: var(--bg-light-alt);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color);
  width: 65px;
  height: 65px;
}

.job-card-logo {
  border-radius: 0.5rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-card-bookmark {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  box-shadow: none;
}

.job-card-bookmark:hover {
  color: var(--primary-blue);
}

.job-card-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-dark-secondary);
  font-size: 1.625rem;
}

.job-card-company {
  color: var(--text-dark-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.job-card-meta {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.08331rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.job-card-meta i {
  opacity: 0.5;
}

.job-card-meta-divider {
  margin: 0 0.25rem;
  opacity: 0.25;
}

.job-card-divider {
  border-top: 1px solid var(--text-muted);
  opacity: 0.25;
  margin: 0.5rem 0;
}

.job-card-match-wrapper {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.job-card-match-label {
  color: var(--text-muted);
  font-size: 0.94794rem;
  font-weight: 500;
  margin-right: 0.25rem;
}

.job-card-match-badge {
  background-color: var(--white);
  color: var(--success-color);
  border: 1px solid var(--success-color);
  border-radius: 50rem;
  padding: 0.25rem 0.5rem;
  font-weight: 500;
  font-size: 0.91406rem;
  display: inline-flex;
  align-items: center;
}

.job-card-match-badge i {
  margin-right: 0.25rem;
}

/* Semantic Typography Components */
.nav-links-container {
  font-size: 1.1rem;
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.profile-completion-badge {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--white);
  color: var(--accent-orange);
  border: 2px solid var(--accent-orange);
  border-radius: 50rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  line-height: 1;
  white-space: nowrap;
}

.profile-avatar-img {
  border-radius: 14px;
  border: 2px solid var(--accent-orange);
  object-fit: cover;
}

.notification-count-badge {
  font-size: 0.65rem;
}

.notification-title {
  font-size: 1.1rem;
}

.notification-new-badge {
  font-size: 0.75rem;
}

.notification-msg-title {
  font-size: 0.95rem;
}

.notification-msg-text {
  font-size: 0.85rem;
}

.notification-msg-time {
  font-size: 0.75rem;
}

.notification-view-all {
  font-size: 0.95rem;
}

.auth-link {
  font-size: 0.95rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2.5rem !important;
}

.search-input-field {
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.location-select-field {
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.btn-search {
  font-size: 1rem;
  padding: 0.75rem 2rem !important;
}

.recent-searches-label {
  font-size: 0.9rem;
}

.recent-search-badge {
  font-size: 0.85rem;
  padding: 0.4rem 1.25rem !important;
}

.job-card-mismatch {
  font-size: 0.7rem;
}

/* Responsive Search Box Widths */
.search-input-wrapper {
  width: 100%;
}

@media (min-width: 768px) {
  .search-input-wrapper {
    width: 48%;
  }

  .location-input-wrapper {
    width: 45%;
  }
}

@media (min-width: 992px) {
  .search-input-wrapper {
    width: 35%;
  }

  .location-input-wrapper {
    width: 32%;
  }

  .range-input-wrapper {
    width: 18%;
  }
}

@media (max-width: 767.98px) {
  .btn-search-responsive {
    width: 100% !important;
  }
}

/* Primary Button & Color Overrides */
.btn-primary {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-blue-hover) !important;
  border-color: var(--primary-blue-hover) !important;
  color: var(--white) !important;
}

.btn-outline-primary {
  color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--primary-blue) !important;
  color: var(--white) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}
.border-primary {
  border-color: var(--primary-blue) !important;
}

.text-accent {
  color: var(--accent-orange) !important;
}

.bg-accent-soft {
  background-color: var(--orange-soft) !important;
}

.btn-outline-accent {
  color: var(--accent-orange) !important;
  border-color: var(--accent-orange) !important;
}

.btn-outline-accent:hover,
.btn-outline-accent:focus,
.btn-outline-accent:active {
  background-color: var(--accent-orange) !important;
  color: var(--white) !important;
}

/* My Jobs & Sidebar - Filter Tabs */
.filter-pill,
.btn-filter-pill {
  border: 1px solid var(--border-hover);
  background-color: transparent;
  color: var(--text-light);
  border-radius: 50rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.filter-pill:hover,
.btn-filter-pill:hover {
  background-color: var(--bg-gray);
  color: var(--text-dark);
}

.filter-pill.active,
.btn-filter-pill.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--white);
}

/* My Jobs - Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 600;
}

.status-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-shortlisted {
  background-color: var(--green-soft);
  color: var(--accent-green);
}
.status-shortlisted::before {
  background-color: var(--accent-green);
}

.status-applied {
  background-color: var(--blue-soft);
  color: var(--primary-blue);
}
.status-applied::before {
  background-color: var(--primary-blue);
}

.status-review {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8B5CF6;
}
.status-review::before {
  background-color: #8B5CF6;
}

.status-scheduled {
  background-color: var(--orange-soft);
  color: var(--accent-orange);
}
.status-scheduled::before {
  background-color: var(--accent-orange);
}

.status-saved {
  background-color: var(--bg-gray);
  color: var(--text-muted);
}
.status-saved::before {
  background-color: var(--text-muted);
}

/* Global Container Constraints */
@media (min-width: 1600px) {
  .container,
  .container-fluid {
    max-width: 1600px !important;
    margin-left: auto;
  }
}

/* Job Details Specific Styles */
.travel-mode-box {
  background-color: var(--bg-gray);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.travel-mode-box i {
  font-size: 1.5rem;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
}

.match-tag {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.match-tag i {
  color: var(--success-color);
}