/* ==========================================================================
   JivaTech Consultancy - Jobs Page Dedicated Stylesheet (css/jobs.css)
   Complies with PROJECT_STANDARDS.md - High-Fidelity Naukri Engine
   ========================================================================== */


    :root {
      --primary: #004687;
      --primary-hover: #003366;
      --accent: #f77f00;
      --text-dark: #121224;
      --text-body: #474d6a;
      --text-muted: #717b9e;
      --bg-page: #f8f9fa;
      --bg-card: #ffffff;
      --border-color: #eaf1f5;
      --star-bg: #fff8e6;
      --star-color: #ffa41b;
      --badge-green-bg: #e4f7e6;
      --badge-green-text: #1f662c;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      background-color: var(--bg-page);
      color: var(--text-dark);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* 1. TOP HEADER */
    .naukri-header {
      background: #ffffff;
      height: 72px;
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .naukri-header-inner {
      max-width: 1280px;
      height: 100%;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 32px;
    }
    .brand-logo {
      display: flex;
      align-items: center;
      text-decoration: none;
    }
    .brand-logo img {
      height: 50px;
      width: auto;
      object-fit: contain;
      display: block;
    }
    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      list-style: none;
    }
    .nav-item a {
      color: var(--text-dark);
      text-decoration: none;
      font-size: 15px;
      font-weight: 500;
      padding: 8px 0;
      position: relative;
      transition: color 0.2s;
    }
    .nav-item a:hover, .nav-item.active a {
      color: var(--primary);
    }
    .nav-item.active a::after {
      content: '';
      position: absolute;
      bottom: -18px;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--primary);
      border-radius: 2px 2px 0 0;
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .header-icon-btn {
      background: transparent;
      border: none;
      color: #2d2d2d;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      transition: background 0.2s;
      text-decoration: none;
    }
    .header-icon-btn:hover {
      background: rgba(0,0,0,0.05);
    }
    .badge-dot {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 8px;
      height: 8px;
      background: #d93a40;
      border-radius: 50%;
    }
    .user-avatar-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      border: none;
      box-shadow: 0 2px 6px rgba(27,118,255,0.25);
    }
    .btn-signin-nav {
      background: transparent;
      border: 1px solid var(--primary);
      color: var(--primary);
      padding: 8px 20px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 14px;
      text-decoration: none;
      transition: all 0.2s;
    }
    .btn-signin-nav:hover {
      background: var(--primary);
      color: #ffffff;
    }

    /* 2. FLOATING SEARCH STRIP */
    .naukri-search-strip {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
      padding: 16px 20px;
    }
    .search-strip-container {
      max-width: 1100px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      background: #ffffff;
      border: 1px solid #d4d2d0;
      border-radius: 30px;
      padding: 4px 6px 4px 20px;
      box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    }
    .search-box-field {
      display: flex;
      align-items: center;
      gap: 10px;
      flex: 1;
      padding: 8px 12px;
    }
    .search-box-field.search-box-exp {
      max-width: 200px;
    }
    .search-box-field svg {
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .search-box-field input, .search-box-field select {
      width: 100%;
      border: none;
      outline: none;
      font-size: 14px;
      color: var(--text-dark);
      background: transparent;
      font-family: inherit;
    }
    .search-divider {
      width: 1px;
      height: 28px;
      background: #e4e2e0;
    }
    .btn-naukri-search {
      background: var(--primary);
      color: #ffffff;
      border: none;
      height: 40px; padding: 0 24px; border-radius: 9999px !important;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      transition: background 0.2s;
      flex-shrink: 0;
    }
    .btn-naukri-search:hover {
      background: var(--primary-hover);
    }

    /* 3. TABS BAR */
    .naukri-subtabs-bar {
      background: #ffffff;
      border-bottom: 1px solid var(--border-color);
    }
    .subtabs-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      gap: 32px;
    }
    .subtab-btn {
      padding: 14px 4px;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-body);
      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s;
    }
    .subtab-btn:hover {
      color: var(--primary);
    }
    .subtab-btn.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }
    .tab-count-badge {
      background: #e8f3fc;
      color: var(--primary);
      font-size: 11px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 12px;
    }

    /* 4. MAIN LAYOUT GRID */
    .naukri-layout {
      width: 100% !important;
      max-width: 1280px !important;
      margin: 24px auto !important;
      padding: 0 20px !important;
      display: flex !important;
      gap: 24px !important;
      align-items: flex-start !important;
      box-sizing: border-box !important;
    }

    /* 5. FILTER SIDEBAR */
    .naukri-filters-sidebar {
      width: 290px !important;
      flex-basis: 290px !important;
      flex-grow: 0 !important;
      flex-shrink: 0 !important;
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      overflow-x: hidden;
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 20px;
      position: sticky;
      top: 96px;
      flex-shrink: 0;
      box-shadow: 0 2px 8px rgba(0,0,0,0.04);
      scrollbar-width: thin;
      scrollbar-color: #cbd5e1 transparent;
      box-sizing: border-box;
      margin-bottom: 24px;
    }
    .naukri-filters-sidebar::-webkit-scrollbar {
      width: 6px;
    }
    .naukri-filters-sidebar::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 6px;
    }
    .naukri-filters-sidebar::-webkit-scrollbar-track {
      background: transparent;
    }
    .filters-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 14px;
      margin-bottom: 16px;
    }
    .filters-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-dark);
    }
    .btn-clear-filters {
      background: transparent;
      border: none;
      color: var(--primary);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
    }
    .filter-group {
      margin-bottom: 20px;
      border-bottom: 1px solid #f0f3f6;
      padding-bottom: 16px;
    }
    .filter-group:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }
    .filter-group-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .filter-option {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text-body);
      margin-bottom: 8px;
      cursor: pointer;
    }
    .filter-option input[type="checkbox"], .filter-option input[type="radio"] {
      width: 16px;
      height: 16px;
      accent-color: var(--primary);
      cursor: pointer;
    }
    .filter-count {
      margin-left: auto;
      color: var(--text-muted);
      font-size: 12px;
    }

    /* 6. RESULTS FEED */
    .naukri-feed {
      flex: 1 1 0% !important;
      width: calc(100% - 314px) !important;
      min-width: 0 !important;
      min-height: 520px !important;
    }
    #jobCardsList {
      width: 100% !important;
    }
    .empty-feed-card {
      width: 100% !important;
      box-sizing: border-box !important;
    }
    .feed-header-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 12px;
    }
    .feed-summary-text {
      font-size: 15px;
      color: var(--text-muted);
    }
    .feed-summary-text strong {
      color: var(--text-dark);
    }
    .feed-sort-select {
      background: #ffffff;
      border: 1px solid #d4d2d0;
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 13px;
      color: var(--text-dark);
      outline: none;
      cursor: pointer;
    }

    /* 7. NAUKRI JOB CARDS */
    .naukri-job-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 20px 24px;
      margin-bottom: 16px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.02);
      transition: all 0.2s ease;
      position: relative;
    }
    .naukri-job-card:hover {
      box-shadow: 0 6px 20px rgba(0,0,0,0.08);
      border-color: var(--primary);
    }
    .card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 8px;
    }
    .job-title-link {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-dark);
      text-decoration: none;
      cursor: pointer;
      transition: color 0.15s;
    }
    .job-title-link:hover {
      color: var(--primary);
    }
    .company-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
    }
    .company-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-body);
    }
    .star-rating {
      background: var(--star-bg);
      color: var(--star-color);
      font-size: 12px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .reviews-count {
      color: var(--text-muted);
      font-size: 12px;
    }
    .btn-bookmark {
      background: transparent;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      transition: color 0.2s, transform 0.15s;
    }
    .btn-bookmark:hover {
      color: var(--primary);
      transform: scale(1.1);
    }
    .btn-bookmark.saved {
      color: var(--primary);
    }

    /* Meta details row */
    .card-meta-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      margin: 12px 0;
      color: var(--text-body);
      font-size: 13px;
      font-weight: 500;
    }
    .meta-item {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .meta-item svg {
      color: var(--text-muted);
      flex-shrink: 0;
    }

    /* Snippet */
    .card-snippet {
      font-size: 13px;
      color: #666e85;
      line-height: 1.5;
      margin-bottom: 14px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* Skills chips */
    .card-skills-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 16px;
    }
    .skill-chip {
      background: #f4f5f7;
      color: #474d6a;
      font-size: 12px;
      font-weight: 500;
      padding: 4px 10px;
      border-radius: 12px;
    }

    /* Card footer */
    .card-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1px solid #f0f3f6;
      padding-top: 14px;
      margin-top: 6px;
    }
    .card-footer-left {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 12px;
      color: var(--text-muted);
    }
    .badge-early {
      background: var(--badge-green-bg);
      color: var(--badge-green-text);
      font-weight: 700;
      font-size: 11px;
      padding: 2px 8px;
      border-radius: 4px;
    }
    .card-footer-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .btn-quick-apply {
      background: var(--primary, #004687);
      color: #ffffff;
      border: none;
      height: 38px;
      min-height: 38px;
      max-height: 38px;
      line-height: 38px;
      padding: 0 20px;
      border-radius: 9999px;
      font-weight: 600;
      font-size: 13.5px;
      white-space: nowrap;
      flex-shrink: 0;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 6px rgba(0, 70, 135, 0.15);
      transition: all 0.2s ease;
      box-sizing: border-box;
      text-decoration: none;
    }
    .btn-quick-apply:hover {
      background: var(--primary-hover, #003366);
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(0, 70, 135, 0.25);
    }
    .btn-quick-apply:active {
      transform: translateY(0);
    }
    .btn-quick-apply.applied {
      background: #16a34a !important;
      color: #ffffff !important;
      cursor: default;
      transform: none !important;
      box-shadow: none !important;
    }

    /* 8. MODALS & SLIDE-OVERS */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(2px);
      z-index: 999999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .modal-box {
      background: #ffffff;
      border-radius: 16px;
      max-width: 560px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      padding: 28px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.25);
      position: relative;
    }

    /* Details Slide-Over */
    .slideover-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 99999;
      display: none;
      justify-content: flex-end;
    }
    .slideover-panel {
      background: #ffffff;
      width: 100%;
      max-width: 680px;
      height: 100%;
      overflow-y: auto;
      padding: 32px;
      box-shadow: -8px 0 24px rgba(0,0,0,0.15);
      position: relative;
    }

    /* Toast */
    #naukriToast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%);
      background: #121224;
      color: #ffffff;
      padding: 12px 24px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      z-index: 1000000;
      display: none;
      box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    /* Responsive */
    @media (max-width: 992px) {
      .naukri-layout {
        flex-direction: column !important;
      }
      .naukri-filters-sidebar {
        width: 100% !important;
        flex-basis: auto !important;
        position: static !important;
      }
      .naukri-feed {
        width: 100% !important;
      }
      .search-strip-container {
        flex-direction: column;
        align-items: stretch !important;
        border-radius: 16px;
        padding: 12px;
        gap: 8px;
      }
      .search-box-field {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 10px 14px !important;
        box-sizing: border-box;
      }
      .search-box-field.search-box-exp {
        width: 100% !important;
        max-width: 100% !important;
      }
      .search-box-field input,
      .search-box-field select {
        width: 100% !important;
        text-align: left !important;
      }
      .search-divider {
        display: none;
      }
      .btn-naukri-search {
        width: 100%;
        margin-top: 4px;
      }
    }

    @media (max-width: 768px) {
      body, html {
        max-width: 100vw;
        overflow-x: hidden;
      }
      .nav-links,
      #headerAuthContainer {
        display: none !important;
      }
      #mobileBurgerBtn {
        display: flex !important;
        align-items: center;
        justify-content: center;
      }
      .brand-logo img {
        height: 42px !important;
      }
      .naukri-header-inner {
        padding: 0 14px;
        min-height: 60px;
      }
      .naukri-layout {
        padding: 12px 14px;
      }
      .naukri-job-card {
        padding: 16px;
      }
      .subtabs-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }
    }
  