/* =========================================
   PUSLAPIO PAGRINDAS
   ========================================= */

body {
  background: #f6f8fc;
  color: #18233c;
}


/* =========================================
   HEADER
   ========================================= */

.employer-page-logo {
  color: inherit;
  text-decoration: none;
}


.employer-page-home-button {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 18px;

  border: 1px solid #d7dfec;
  border-radius: 10px;

  background: #ffffff;

  color: #1f4fa3;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


.employer-page-home-button:hover {
  background: #f7f9fd;
  border-color: #bfcbe0;

  transform: translateY(-1px);
}


/* =========================================
   PAGRINDINIS DARBDAVIO KARKASAS
   ========================================= */

.employer-jobs-page {
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;

  margin: 0 auto;

  display: grid;
  grid-template-columns:
    220px
    minmax(0, 1fr);

  gap: 32px;

  padding:
    48px
    24px
    80px;
}


.employer-jobs-container {
  width: 100%;
  min-width: 0;
  max-width: none;

  margin: 0;
  padding: 0;
}


/* =========================================
   DARBDAVIO KAIRYSIS MENIU
   ========================================= */

.employer-dashboard-sidebar {
  min-width: 0;
  align-self: start;

  position: sticky;
  top: 24px;

  padding: 18px;

  border: 1px solid #e2e7f0;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 8px 28px
    rgba(20, 35, 70, 0.05);
}


.employer-dashboard-sidebar-title {
  margin-bottom: 16px;

  padding:
    4px
    8px
    14px;

  border-bottom: 1px solid #edf0f4;

  color: #6a7891;

  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}


.employer-dashboard-nav {
  display: flex;
  flex-direction: column;

  gap: 6px;
}


.employer-dashboard-nav-link {
  min-height: 44px;

  display: flex;
  align-items: center;

  padding: 0 12px;

  border-radius: 10px;

  color: #34415a;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.employer-dashboard-nav-link:hover {
  background: #f4f7fc;
  color: #1f5bc4;
}


.employer-dashboard-nav-link.active {
  background: #edf4ff;
  color: #1f5bc4;
}


/* =========================================
   PUSLAPIO VIRŠUS
   ========================================= */

.employer-jobs-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 32px;

  margin-bottom: 30px;
}


.employer-jobs-top > div {
  min-width: 0;
}


.employer-jobs-top h1 {
  margin: 0;

  color: #17233d;

  font-size: 36px;
  line-height: 1.15;
}


.employer-page-description {
  max-width: 620px;

  margin: 12px 0 0;

  color: #64728c;

  font-size: 16px;
  line-height: 1.6;
}


.employer-page-create-button {
  min-height: 50px;
  flex-shrink: 0;

  padding: 0 22px;

  border: none;
  border-radius: 11px;

  background: #1f5bc4;

  color: #ffffff;

  font-size: 15px;
  font-weight: 800;

  cursor: pointer;

  box-shadow:
    0 8px 20px
    rgba(31, 91, 196, 0.18);

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.employer-page-create-button:hover {
  background: #174da9;

  transform: translateY(-1px);

  box-shadow:
    0 10px 24px
    rgba(31, 91, 196, 0.24);
}


/* =========================================
   STATISTIKOS KORTELĖS
   ========================================= */

.employer-jobs-stats {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 28px;
}


.employer-stat-card {
  min-height: 104px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 16px;

  padding: 18px 20px;

  border: 1px solid #e2e7f0;
  border-radius: 14px;

  background: #ffffff;

  box-shadow:
    0 5px 18px
    rgba(20, 35, 70, 0.035);
}


.employer-stat-card span {
  color: #6a7891;

  font-size: 14px;
  font-weight: 600;
}


.employer-stat-card strong {
  color: #17233d;

  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}


/* =========================================
   SKELBIMŲ BLOKAS
   ========================================= */

.employer-jobs-section {
  overflow: hidden;

  border: 1px solid #e1e7f0;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 10px 30px
    rgba(22, 35, 65, 0.05);
}


.employer-jobs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 24px 26px;

  border-bottom: 1px solid #e8edf4;
}


.employer-jobs-section-header h2 {
  margin: 0;

  color: #17233d;

  font-size: 21px;
}


.employer-jobs-section-header p {
  margin: 6px 0 0;

  color: #76839a;

  font-size: 14px;
}


/* =========================================
   SKELBIMŲ SĄRAŠAS
   ========================================= */

.employer-page-jobs-list {
  display: flex;
  flex-direction: column;
}


.employer-page-loading,
.employer-page-empty {
  padding: 58px 24px;

  color: #7b879c;

  font-size: 15px;
  text-align: center;
}


/* =========================================
   VIENO SKELBIMO KORTELĖ
   ========================================= */

.employer-page-job-item {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 18px;

  padding: 18px 20px;

  border-bottom: 1px solid #edf0f5;

  transition: background 0.2s ease;
}


.employer-page-job-item:last-child {
  border-bottom: none;
}


.employer-page-job-item:hover {
  background: #fafbfe;
}


/* =========================================
   SKELBIMO INFORMACIJA
   ========================================= */

.employer-page-job-main {
  min-width: 0;
}


.employer-page-job-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 8px;
}


.employer-page-job-title {
  margin: 0;

  color: #17233d;

  font-size: 16px;
  font-weight: 800;
}


.employer-page-job-meta {
  margin: 0;

  color: #697790;

  font-size: 13px;
  line-height: 1.6;
}


/* =========================================
   STATUSAI
   ========================================= */

.employer-job-status {
  min-height: 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 10px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 800;
}


.employer-job-status.approved {
  background: #dcf8e6;
  color: #168548;
}


.employer-job-status.pending {
  background: #fff2d3;
  color: #a06a00;
}


.employer-job-status.closed {
  background: #edf0f5;
  color: #657186;
}


/* =========================================
   VEIKSMAI
   ========================================= */

.employer-page-job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 9px;
}


.employer-page-job-button {
  min-height: 36px;

  padding: 0 12px;

  border: 1px solid #d6deeb;
  border-radius: 9px;

  background: #ffffff;

  color: #253451;

  font-size: 13px;
  font-weight: 750;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}


.employer-page-job-button:hover {
  background: #f6f8fc;
  border-color: #b8c5da;

  transform: translateY(-1px);
}


.employer-page-job-button.primary {
  border-color: #14213d;

  background: #14213d;

  color: #ffffff;
}


.employer-page-job-button.primary:hover {
  background: #0d172c;
}


.employer-page-job-button.danger {
  color: #a24747;
}


.employer-page-job-button.success {
  color: #168548;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

  .employer-jobs-page {
    grid-template-columns: 1fr;

    gap: 22px;
  }


  .employer-dashboard-sidebar {
    position: static;
  }


  .employer-dashboard-nav {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 8px;
  }


  .employer-jobs-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .employer-page-job-item {
    grid-template-columns: 1fr;
  }


  .employer-page-job-actions {
    justify-content: flex-start;
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

  .employer-jobs-page {
    gap: 20px;

    padding:
      28px
      16px
      60px;
  }


  .employer-dashboard-sidebar {
    padding: 14px;
  }


  .employer-dashboard-sidebar-title {
    margin-bottom: 12px;
  }


  .employer-dashboard-nav-link {
    min-height: 42px;

    padding: 0 10px;

    font-size: 13px;
  }


  .employer-jobs-top {
    align-items: stretch;
    flex-direction: column;

    gap: 20px;
  }


  .employer-jobs-top h1 {
    font-size: 30px;
  }


  .employer-page-description {
    font-size: 15px;
  }


  .employer-page-create-button {
    width: 100%;
  }


  .employer-jobs-stats {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }


  .employer-stat-card {
    min-height: 96px;

    gap: 12px;

    padding: 16px;
  }


  .employer-stat-card span {
    font-size: 13px;
  }


  .employer-stat-card strong {
    font-size: 25px;
  }


  .employer-jobs-section-header {
    padding: 20px;
  }


  .employer-page-job-item {
    padding: 20px;
  }


  .employer-page-job-actions {
    width: 100%;

    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .employer-page-job-button {
    width: 100%;
  }


  .employer-page-home-button {
    display: none;
  }

}


/* =========================================
   MAŽAS TELEFONAS
   ========================================= */

@media (max-width: 430px) {

  .employer-dashboard-nav {
    grid-template-columns: 1fr;
  }


  .employer-jobs-stats {
    grid-template-columns: 1fr;
  }


  .employer-page-job-actions {
    grid-template-columns: 1fr;
  }

}
