/* ============================================================
   COMMON HEADER STYLE
   ============================================================ */
.header {
  background: linear-gradient(10deg, #005693, #00778b, #71ffac);
  margin: 10px 0 30px;
  padding: 15px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  color: #fff;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 0.5em;
}

.form-group input[type="file"] {
  background: none;
}

.form-control,
.input-group .form-control {
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  transition: all 0.3s ease-in-out;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.submit-btn {
  text-align: center;
  margin-top: 20px;
}

.btn-submit {
  /* background-color: #3490dc; */
  /* border-color: #3490dc; */
  background: linear-gradient(90deg, #005693, #00778b);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #227dc7;
  transform: scale(1.05);
}

/* ============================================================
   CARD + GENERAL PAGE
   ============================================================ */
.card .card-header {
  padding: 25px 20px 10px;
}

.card .card-header span {
  color: #353c4e;
  display: block;
  font-size: 15px;
}

.container-fluid {
  background: #fff;
}

.mt-4 {
  margin: 1.5rem 0;
}

/* ============================================================
   DATATABLE STYLING
   ============================================================ */
.dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
}

table.dataTable {
  width: 100% !important;
}

table.dataTable thead th {
  white-space: nowrap;
}

.dataTables_scrollHeadInner {
  width: 100% !important;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
  padding: 0;
}

.ellipsis::after {
  content: none;
}

/* ============================================================
   MODAL RESPONSIVE
   ============================================================ */
.modal-dialog {
  margin: auto;
}

@media (max-width: 992px) {
  .modal-dialog.modal-xl {
    max-width: 95% !important;
  }
}

@media (max-width:768px) {
  .btn-size {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {

  .btn-primary {
    margin: 10px 0;
  }

  .modal-dialog.modal-xl {
    max-width: 100% !important;
    margin: 10px;
  }

  table.table th,
  table.table td {
    font-size: 13px !important;
  }

  /* Input Group Responsive Fix */
  .input-group {
    width: 100%;
    margin-bottom: 0px;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .input-group input,
  .input-group button {
    width: 100% !important;
  }

  #m_resume_preview {
    height: 50vh !important;
  }
}

/* Interview List CSS */

/* Input row spacing */

.row .col-md-6.mb-3 {
  margin-bottom: 1.05rem !important;
}

.email-wrapper,
.password-wrapper {
  position: relative;
}

.form-label {
  font-size: 0.82rem;
  color: #374151;
  text-align: left;
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-control {
  background-color: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #d5deeb;
  color: #111827;
  font-size: 0.9rem;
  padding: 10px 12px;
  width: 100%;
  transition: all 0.2s ease;
}

.form-control::placeholder {
  color: #9ca3af;
}

/* Input row spacing */

.feedback-cell {
  max-width: 200px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #16a086 #f0f9f6;
}


.row .col-md-6.mb-3 {
  margin-bottom: 1.05rem !important;
}

.form-control:focus {
  outline: none;
  border-color: #00a5b4;
  box-shadow: 0 0 0 3px rgba(0, 165, 180, 0.18);
  background-color: #ffffff;
}

.dashboard-container {
  font-family: 'Inter', Arial, sans-serif;
  color: #202c38;
  padding: 32px;
  margin-bottom: 40px;
}

.dashboard-header {
  margin-bottom: 12px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #106a5e;
}

.dashboard-desc {
  color: #495c68;
  margin-bottom: 20px;
}

.filter-row {
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.filter-label {
  color: #545464;
  margin-top: 7px;
  font-weight: 550;
  margin-right: 4px;
}

.filter-search:focus {
  border-color: #36b397;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.09);
}

.filter-form {
  flex: 1;
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-form>div {
  flex: 1;
  min-width: 220px;
  /* Ensures input groups don't shrink too much */
}

.filter-date {
  color: #495c68;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 11px 16px;
  font-size: 1em;
  width: 100%;
  outline: none;
  box-shadow: 0 1px 3px rgba(44, 62, 80, .04);
  transition: border-color .2s, box-shadow .2s;
}

.filter-date:focus {
  border-color: #36b397;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

.filter-btn {
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(22, 160, 133, .12);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .2s;
}

.filter-form .filter-btn {
  margin-top: 35px;
}

.filter-row .export-btn {
  margin-top: 35px;
}

.filter-btn:hover {
  background: #138d75;
}

.export-btn {
  background: #138d75;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(41, 102, 234, .10);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background .2s;
}

.export-btn:hover {
  color: white;
  background: #1e4396;
}

.filter-btn:hover {
  background: #157e6e;
}

.entries-control {
  display: flex;
  justify-content: space-between;
  /* Space between left and right */
  align-items: center;
  width: 100%;
  margin: 18px 0;
}

.entries-control-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entries-control-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.entries-dropdown {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 8px 16px;
  font-size: 1em;
  box-shadow: 0 1px 3px rgba(44, 62, 80, .05);
  color: #202c38;
}

.filter-search {
  min-width: 260px;
  /* Wide search box */
  max-width: 300px;
  margin-left: auto;
  /* Push search to right in flex */
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 10px 16px;
  font-size: 1em;
  color: #495c68;
  box-shadow: 0 1px 3px rgba(44, 62, 80, .06);
  transition: border-color .2s, box-shadow .2s;
}

.filter-search:focus {
  border-color: #36b397;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.09);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  /* horizontal scroll when needed */
  scrollbar-width: thin;
  scrollbar-color: #16a086 #f0f9f6;
}

.interview-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px #e2e8f066;
  border-radius: 10px;
  margin-bottom: 18px;
  white-space: nowrap;
  /* prevent wrapping so it scrolls */
}

.interview-table th,
.interview-table td {
  padding: 12px 16px;
  text-align: left;
}

.interview-table th {
  background: #f0f9f6;
  color: #157e6e;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  font-size: 1em;
}

.interview-table tr {
  transition: background 0.2s;
}

.interview-table tr:hover {
  background: #e6f5f3;
}

/* Status Classes */

.status-applied {
  /* color: #1eae98;
  background: #cdf7f6; */
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 12px;
  padding: 3px 14px;
  font-size: 0.95em;
  font-weight: 600;
}

.status-round-2 {
  color: #92400e;
  background: #fef3c7;
  border-radius: 12px;
  padding: 3px 14px;
  font-weight: 600;
}

.bg-final-approval {
    background-color: aquamarine;
}

.status-final-approval {
  /* color: #0b5345;
  background: #a2d9ce; */
  color: #1e40af;
  /* background: #dbeafe; */
  border-radius: 12px;
  padding: 3px 14px;
  font-weight: 600;
}

.status-on-hold {
  color: #92400e;
  background: #fde68a;
  border-radius: 12px;
  padding: 3px 14px;
  font-weight: 600;
}

.status-joined {
  color: #168b3f;
  background: #d0f5e4;
  /* color: #166534;
  background: #dcfce7; */
  border-radius: 12px;
  padding: 3px 14px;
  font-weight: 600;
}

.status-rejected {
  color: #fff;
  background: #e45a4f;
  /* color: #ffffff;
  background: #dc2626; */
  border-radius: 12px;
  padding: 3px 14px;
  font-weight: 600;
}

/* span[class^="status-"] {
  transition: all 0.2s ease-in-out;
}

span[class^="status-"]:hover {
  filter: brightness(0.95);
} */

/* Icon Button */
.action-icon {
  background: none;
  border: none;
  cursor: pointer;
  height: 20px;
  width: 20px;
  display: inline-block;
}

.action-icon-eye {
  background: url('data:image/svg+xml;utf8,<svg fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="3"/><path d="M2 12C2 12 6 5 12 5C18 5 22 12 22 12C22 12 18 19 12 19C6 19 2 12 2 12Z"/></svg>') center/24px 24px no-repeat;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  /* keeps info left, controls right */
  align-items: center;
  width: 100%;
  margin-top: 28px;
}

.pagination-info {
  color: #767e9a;
  font-size: 1em;
  font-weight: 400;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn {
  background: #fff;
  color: #187a6b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 20px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(44, 62, 80, .06);
  transition: border-color .2s;
}

@media (max-width: 600px) {
  .pagination-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pagination-controls {
    gap: 6px;
  }
}

.pagination-current {
  background: #16a085;
  color: #fff;
  border-radius: 8px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 1em;
  display: inline-block;
}

.pagination-btn:active,
.pagination-btn:focus {
  border-color: #36b397;
}

.pagination-btn:disabled {
  background: #eee;
  color: #aaa;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(21, 126, 110, 0.18);
}

.modal-dialog {
  background: #fff;
  border-radius: 10px;
  max-width: 70vw;
  max-height: 100vh;
  margin: 40px auto;
  box-shadow: 0 4px 16px #1eae981a;
  padding: 2em;
}

.modal-header {
  background: #36b397;
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding-bottom: 12px;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.2em;
  color: #fff;
  cursor: pointer;
}

.modal-body {
  max-height: 70vh;
  /* 70% of viewport height */
  overflow-y: auto;
  /* show vertical scrollbar when needed */
  scrollbar-width: thin;
  scrollbar-color: #16a086 #f0f9f6;
  padding: 1em 0;
}

/* Responsive adjustments for <600px screens */
@media (max-width: 900px) {
  .dashboard-container {
    padding: 12px;
  }

  .filter-row {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .filter-form>div,
  .filter-form .filter-btn {
    width: 100%;
    min-width: 0;
    margin-top: 0;
  }

  .filter-row .export-btn {
    width: 100%;
    margin-top: 0;
  }

  .entries-control {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .entries-control-left,
  .entries-control-right {
    width: 100%;
    justify-content: flex-start;
  }

  .filter-search {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
    box-sizing: border-box;
  }

  .interview-table th,
  .interview-table td {
    padding: 8px 8px;
    font-size: 0.95em;
  }

  .modal-dialog {
    max-width: 98vw;
    padding: 1em;
  }

  .modal-header,
  .modal-title {
    font-size: 1em;
    padding-bottom: 6px;
  }
}

/* Responsive table wrapper for overflow */
@media (max-width: 600px) {
  .interview-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .interview-table th,
  .interview-table td {
    white-space: nowrap;
  }
}

/* Responsive pagination */
@media (max-width: 600px) {
  .pagination-row {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .pagination-controls {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Interview List CSS */