/* =========================================
   PUSLAPIS
   ========================================= */

body {
  background: #f6f8fc;
  color: #0f172a;
}

.candidates-page {
  padding: 48px 0 80px;
}

.candidates-container {
  max-width: 1050px;
}


/* =========================================
   HEADER NUORODA
   ========================================= */

.candidates-header-back {
  text-decoration: none;

  color: #475569;

  font-size: 14px;
  font-weight: 600;
}

.candidates-header-back:hover {
  color: #0f172a;
}


/* =========================================
   PUSLAPIO VIRŠUS
   ========================================= */

.candidates-heading {
  margin-bottom: 30px;
}

.candidates-label {
  margin: 0 0 8px;

  color: #2563eb;

  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.candidates-heading h1 {
  margin: 0 0 10px;

  font-size: 36px;
  line-height: 1.15;

  color: #0f172a;
}

.candidates-heading > p:last-child {
  margin: 0;

  color: #64748b;

  font-size: 16px;
  line-height: 1.6;
}


/* =========================================
   STATISTIKA
   ========================================= */

.candidates-stats {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 26px;
}

.candidate-stat-card {
  display: flex;

  flex-direction: column;

  gap: 10px;

  padding: 22px;

  background: white;

  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.candidate-stat-card span {
  color: #64748b;

  font-size: 13px;
  font-weight: 600;
}

.candidate-stat-card strong {
  color: #0f172a;

  font-size: 30px;
  line-height: 1;
}


/* =========================================
   KANDIDATŪRŲ BLOKAS
   ========================================= */

.candidates-list-section {
  overflow: hidden;

  background: white;

  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.candidates-list-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 24px 26px;

  border-bottom: 1px solid #e2e8f0;
}

.candidates-list-header h2 {
  margin: 0 0 5px;

  color: #0f172a;

  font-size: 20px;
}

.candidates-list-header p {
  margin: 0;

  color: #64748b;

  font-size: 14px;
}


/* =========================================
   KANDIDATŪROS
   ========================================= */

.candidates-page-list {
  display: flex;

  flex-direction: column;
}

.candidate-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 24px;

  padding: 24px 26px;

  border-bottom: 1px solid #eef2f7;
}

.candidate-item:last-child {
  border-bottom: none;
}

.candidate-item h3 {
  margin: 0 0 8px;

  color: #0f172a;

  font-size: 18px;
}

.candidate-item p {
  margin: 5px 0;

  color: #64748b;

  font-size: 14px;
  line-height: 1.5;
}


/* =========================================
   STATUSAI
   ========================================= */

.candidate-view-status {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  margin-top: 12px !important;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px !important;
  font-weight: 700;
}

.candidate-view-status.new {
  background: #fff3d6;
  color: #92400e;
}

.candidate-view-status.viewed {
  background: #dbeafe;
  color: #1d4ed8;
}


/* =========================================
   MYGTUKAS
   ========================================= */

.view-candidate-cv-button {
  border: none;

  padding: 11px 16px;

  background: #0f172a;
  color: white;

  border-radius: 10px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.view-candidate-cv-button:hover {
  background: #1e293b;
}


/* =========================================
   TUŠČIAS SĄRAŠAS
   ========================================= */

.empty-candidates-page {
  padding: 40px 26px;

  text-align: center;

  color: #64748b;

  font-size: 14px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 800px) {

  .candidates-page {
    padding-top: 32px;
  }

  .candidates-heading h1 {
    font-size: 30px;
  }

  .candidates-stats {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

  .candidates-page {
    padding: 26px 0 50px;
  }

  .candidates-heading {
    margin-bottom: 22px;
  }

  .candidates-heading h1 {
    font-size: 28px;
  }

  .candidates-stats {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .candidate-stat-card {
    padding: 18px;
  }

  .candidate-stat-card strong {
    font-size: 26px;
  }

  .candidates-list-header {
    padding: 20px 18px;
  }

  .candidate-item {
    grid-template-columns: 1fr;

    gap: 16px;

    padding: 20px 18px;
  }

  .view-candidate-cv-button {
    width: 100%;
  }
}


/* =========================================
   MAŽI TELEFONAI
   ========================================= */

@media (max-width: 430px) {

  .candidates-heading h1 {
    font-size: 25px;
  }
}