.interviews-page {
  min-height: 100vh;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}


/* =========================
   TOP BAR
========================= */

.top-bar {
  height: 48px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
}

.search-box {
  width: 268px;
  height: 28px;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #fafafa;

  display: flex;
  align-items: center;

  padding: 0 9px;
  box-sizing: border-box;

  .search-icon {
    color: #6b7280;
    font-size: 16px;
    margin-right: 7px;
  }

  input {
    border: none;
    outline: none;
    background: transparent;

    width: 100%;

    font-size: 11px;
    color: #374151;

    &::placeholder {
      color: #9ca3af;
    }
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;

  span {
    font-size: 15px;
    color: #374151;
    cursor: pointer;
  }

  .notification-icon {
    color: #111827;
  }
}


/* =========================
   PAGE CONTENT
========================= */

.page-content {
  padding: 18px 24px 30px;
}


/* =========================
   HEADER
========================= */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 17px;
}

.header-title {

  h1 {
    margin: 0;
    font-size: 21px;
    line-height: 25px;
    font-weight: 600;
    color: #111827;
  }

  p {
    margin: 3px 0 0;
    color: #6b7280;
    font-size: 11px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-btn,
.ai-btn,
.schedule-btn,
.panel-btn {
  height: 29px;
  border-radius: 6px;
  padding: 0 9px;

  border: 1px solid #e0e0e0;
  background: #ffffff;

  font-size: 10px;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 5px;

  white-space: nowrap;

  &:hover {
    background: #f8fafc;
  }
}

.view-btn.active {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.ai-btn {
  color: #7c3aed;
  border-color: #eee5ff;
}

.schedule-btn {
  background: #315ee8;
  border-color: #315ee8;
  color: #ffffff;

  &:hover {
    background: #2852d4;
  }
}

.panel-btn {
  padding-left: 8px;
  padding-right: 8px;
}


/* =========================
   METRIC CARDS
========================= */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 17px;
}

.metric-card {
  height: 94px;

  border: 1px solid #e1e1e1;
  border-radius: 10px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 17px;

  box-sizing: border-box;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.metric-label {
  font-size: 10px;
  color: #374151;
}

.metric-value {
  font-size: 19px;
  font-weight: 600;
  color: #111827;
}

.metric-icon {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 17px;
}

.total-icon {
  color: #73a7ff;
}

.scheduled-icon {
  color: #ffb54a;
  border: 1px solid #ffb54a;
  font-size: 13px;
}

.completed-icon {
  color: #54d391;
  border: 1px solid #54d391;
  font-size: 12px;
}


/* =========================
   INTERVIEWS CARD
========================= */

.interviews-card {
  border: 1px solid #e1e1e1;
  border-radius: 10px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  padding: 17px 17px 18px;

  overflow: hidden;
}

.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 12px;

  h2 {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
  }
}

.status-filters {
  display: flex;
  gap: 5px;
}

.filter-btn {
  height: 24px;
  padding: 0 10px;

  border-radius: 6px;
  border: 1px solid #dedede;

  background: #fafafa;

  color: #111827;
  font-size: 10px;

  cursor: pointer;

  &.active {
    background: #3465e8;
    border-color: #3465e8;
    color: #ffffff;
  }
}


/* =========================
   TABLE
========================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.interviews-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;

  th {
    height: 31px;

    text-align: left;

    font-size: 10px;
    font-weight: 400;

    color: #4b5563;

    border-bottom: 1px solid #dedede;

    padding: 0 10px;

    white-space: nowrap;
  }

  td {
    height: 45px;

    padding: 0 10px;

    border-bottom: 1px solid #e5e7eb;

    color: #111827;

    font-size: 10px;

    white-space: nowrap;
  }

  tbody tr:last-child td {
    border-bottom: none;
  }

  tbody tr:hover {
    background: #fafafa;
  }
}


/* =========================
   TABLE COLUMNS
========================= */

.interview-id {
  font-weight: 600;
  color: #111827 !important;
}

.candidate {
  font-weight: 500;
}

.position {
  color: #64748b !important;
}

.interviewer {
  color: #64748b;
}


/* =========================
   INTERVIEW TYPE
========================= */

.interview-type {
  font-size: 10px;

  &.video {
    color: #374151;
  }

  &.in-person {
    color: #374151;
  }

  &.phone {
    color: #ec1677;
  }
}


/* =========================
   STATUS
========================= */

.status {
  display: inline-flex;
  align-items: center;

  height: 18px;

  padding: 0 7px;

  border-radius: 5px;

  font-size: 9px;

  border: 1px solid transparent;

  &.scheduled {
    color: #1555d1;
    background: #eff5ff;
    border-color: #d6e3ff;
  }

  &.completed {
    color: #07843f;
    background: #effbf4;
    border-color: #cdeed9;
  }
}


/* =========================
   ACTIONS
========================= */

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-btn {
  border: none;
  background: transparent;

  padding: 0;

  color: #111827;
  font-size: 10px;

  cursor: pointer;

  &:hover {
    color: #315ee8;
  }
}

.secondary-action {
  height: 23px;

  padding: 0 9px;

  border-radius: 6px;

  border: 1px solid #dedede;

  background: #fafafa;

  color: #111827;

  font-size: 9px;

  cursor: pointer;

  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

  &:hover {
    background: #f1f5f9;
  }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

  .page-header {
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .interviews-table {
    min-width: 1050px;
  }
}


@media (max-width: 700px) {

  .top-bar {
    padding: 0 12px;
  }

  .page-content {
    padding: 15px 12px;
  }

  .search-box {
    width: 220px;
  }

  .header-actions {
    width: 100%;
  }

  .interviews-card {
    padding: 12px;
  }
}



/* Header */

.schedule-header {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 34px 20px;
  border-top: 1px solid #e5e7eb;
}

.back-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  padding: 0;
}

.back-btn span {
  font-size: 20px;
}

.header-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  color: #0f1115;
}

.header-title p {
  margin: 3px 0 0;
  font-size: 15px;
  color: #6b7280;
}


/* Main */

.schedule-content {
  display: grid;
  grid-template-columns: minmax(500px, 710px) 345px;
  gap: 22px;
  padding: 0 24px 30px;
  align-items: start;
}


/* Cards */

.interview-details-card,
.actions-card {
  background: #fff;
  border: 1px solid #e3e5e8;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.interview-details-card {
  padding: 21px;
}

.actions-card {
  padding: 22px;
}

.interview-details-card h2,
.actions-card h2 {
  margin: 0 0 25px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}


/* Rows */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 20px;
}

.date-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr 115px;
  gap: 14px;
  margin-bottom: 20px;
}


/* Fields */

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}


/* Inputs */

.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
  background: #fafafa;
  color: #4b5563;
  font-size: 14px;
  outline: none;
}

.form-field input {
  height: 33px;
  padding: 0 12px;
}

.form-field textarea {
  height: 90px;
  padding: 10px 12px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input:disabled {
  color: #b1b4b8;
  background: #fafafa;
}


/* Select */

.select-box {
  height: 33px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e1e3e6;
  border-radius: 8px;
  background: #fafafa;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 11px;

  color: #6b7280;
  font-size: 14px;
}

.arrow {
  color: #9ca3af;
  font-size: 17px;
}


/* Date / Time */

.input-icon-box {
  height: 33px;
  box-sizing: border-box;

  border: 1px solid #e1e3e6;
  border-radius: 8px;
  background: #fafafa;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 11px;

  color: #6b7280;
  font-size: 14px;
}


/* Full Width */

.full-width {
  width: 100%;
  margin-bottom: 12px;
}


/* Actions */

.schedule-interview-btn {
  width: 100%;
  height: 33px;

  border: 0;
  border-radius: 7px;

  background: #3769e8;
  color: #fff;

  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
}

.schedule-interview-btn:hover {
  background: #2f5fd5;
}

.cancel-btn {
  width: 100%;
  margin-top: 14px;

  border: 0;
  background: transparent;

  color: #111827;
  font-size: 14px;

  cursor: pointer;
}


/* Responsive */

@media (max-width: 900px) {

  .schedule-content {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 650px) {

  .form-row,
  .date-time-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .schedule-header {
    padding: 20px;
  }

  .schedule-content {
    padding: 0 15px 20px;
  }

}

/* =========================
   SCHEDULE INTERVIEW LIGHTBOX
========================= */

.schedule-overlay {
  position: fixed;
  inset: 0;

  z-index: 9999;

  background: rgba(0, 0, 0, 0.35);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  box-sizing: border-box;
}


/* =========================
   LIGHTBOX
========================= */

.schedule-lightbox {
  width: min(1100px, 95vw);
  max-height: 90vh;

  background: #ffffff;

  border-radius: 12px;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);

  overflow-y: auto;
  overflow-x: hidden;

  box-sizing: border-box;
}


/* =========================
   HEADER
========================= */

.schedule-header {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  padding: 24px 28px 20px;

  border-bottom: 1px solid #e5e7eb;

  box-sizing: border-box;
}


.back-btn {
  margin-top: 8px;

  display: flex;
  align-items: center;

  gap: 8px;

  border: none;
  background: transparent;

  color: #111827;

  font-size: 14px;

  cursor: pointer;

  padding: 0;
}


.back-btn span {
  font-size: 20px;
}


.schedule-title {
  flex: 1;
}


.schedule-title h1 {
  margin: 0;

  font-size: 28px;
  line-height: 34px;

  font-weight: 700;

  color: #0f1115;
}


.schedule-title p {
  margin: 3px 0 0;

  font-size: 15px;

  color: #6b7280;
}


.close-btn {
  border: none;
  background: transparent;

  font-size: 25px;

  line-height: 25px;

  color: #6b7280;

  cursor: pointer;

  padding: 0 2px;
}


.close-btn:hover {
  color: #111827;
}


/* =========================
   CONTENT
========================= */

.schedule-content {
  display: grid;

  grid-template-columns: minmax(0, 1fr) 345px;

  gap: 22px;

  padding: 20px 24px 28px;

  align-items: start;

  box-sizing: border-box;
}


/* =========================
   CARDS
========================= */

.interview-details-card,
.actions-card {
  background: #ffffff;

  border: 1px solid #e3e5e8;

  border-radius: 14px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  box-sizing: border-box;
}


.interview-details-card {
  padding: 21px;
}


.actions-card {
  padding: 22px;
}


.interview-details-card h2,
.actions-card h2 {
  margin: 0 0 25px;

  font-size: 15px;

  font-weight: 600;

  color: #111827;
}


/* =========================
   FORM ROWS
========================= */

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 28px;

  margin-bottom: 20px;
}


.date-time-row {
  display: grid;

  grid-template-columns: 1fr 1fr 115px;

  gap: 14px;

  margin-bottom: 20px;
}


/* =========================
   FORM FIELD
========================= */

.form-field {
  min-width: 0;
}


.form-field label {
  display: block;

  margin-bottom: 6px;

  font-size: 13px;

  font-weight: 500;

  color: #111827;
}


/* =========================
   INPUTS
========================= */

.form-field input,
.form-field textarea {
  width: 100%;

  box-sizing: border-box;

  border: 1px solid #e1e3e6;

  border-radius: 8px;

  background: #fafafa;

  color: #4b5563;

  font-size: 14px;

  outline: none;
}


.form-field input {
  height: 33px;

  padding: 0 12px;
}


.form-field textarea {
  height: 90px;

  padding: 10px 12px;

  resize: vertical;
}


.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}


.form-field input:disabled {
  color: #b1b4b8;

  background: #fafafa;
}


/* =========================
   SELECT
========================= */

.select-box {
  height: 33px;

  width: 100%;

  box-sizing: border-box;

  border: 1px solid #e1e3e6;

  border-radius: 8px;

  background: #fafafa;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 11px;

  color: #6b7280;

  font-size: 14px;
}


.arrow {
  color: #9ca3af;

  font-size: 17px;
}


/* =========================
   DATE / TIME
========================= */

.input-icon-box {
  height: 33px;

  box-sizing: border-box;

  border: 1px solid #e1e3e6;

  border-radius: 8px;

  background: #fafafa;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 11px;

  color: #6b7280;

  font-size: 14px;
}


/* =========================
   FULL WIDTH
========================= */

.full-width {
  width: 100%;

  margin-bottom: 12px;
}


/* =========================
   ACTIONS
========================= */

.schedule-interview-btn {
  width: 100%;

  height: 33px;

  border: 0;

  border-radius: 7px;

  background: #3769e8;

  color: #ffffff;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;
}


.schedule-interview-btn:hover {
  background: #2f5fd5;
}


.cancel-btn {
  width: 100%;

  margin-top: 14px;

  border: 0;

  background: transparent;

  color: #111827;

  font-size: 14px;

  cursor: pointer;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .schedule-content {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 650px) {

  .schedule-overlay {
    padding: 10px;
  }


  .schedule-lightbox {
    width: 100%;
    max-height: 95vh;
  }


  .schedule-header {
    padding: 18px;
  }


  .schedule-title h1 {
    font-size: 22px;
    line-height: 28px;
  }


  .schedule-title p {
    font-size: 13px;
  }


  .schedule-content {
    padding: 15px;
  }


  .form-row,
  .date-time-row {
    grid-template-columns: 1fr;

    gap: 15px;
  }

}