/* Jobs List Page Styles - CVswork */

/* Page Layout */
body {
  background: #f8fafc;
}

.jobs-section {
  padding: 40px 0;
  /* background: #f8fafc; */
  /* min-height: calc(100vh - 200px); */
  /* margin-top: 80px; */
}

.jobs-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.jobs-header {
  margin-bottom: 2rem;
}

.jobs-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.jobs-subtitle {
  color: #64748b;
  font-size: 0.95rem;
}

/* Modern Table Styles */
.table-modern {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.table-modern thead th {
  background: #f8f9fc;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-top: none;
  text-align: left;
}

.table-modern thead th:first-child {
  border-left: none;
}

.table-modern thead th:last-child {
  border-right: none;
}

.table-modern tbody tr {
  transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
  background: #fafbff;
}

.table-modern tbody td {
  padding: 18px 20px;
  vertical-align: middle;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.table-modern tbody td:first-child {
  border-left: none;
}

.table-modern tbody td:last-child {
  border-right: none;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-modern .row-number {
  color: #2563eb;
  font-weight: 700;
  font-size: 1rem;
}

.table-modern .company-name {
  color: #334155;
  font-weight: 500;
}

.table-modern .email-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 400;
}

.table-modern .email-link:hover {
  text-decoration: underline;
}

.table-modern .position {
  color: #1e293b;
  font-weight: 600;
}

.table-modern .date {
  color: #94a3b8;
  font-weight: 400;
}

.table-modern .closing-date {
  color: #14b8a6;
  font-weight: 500;
}

.table-modern .detail-icon {
  color: #94a3b8;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.table-modern .detail-icon:hover {
  color: #2563eb;
}

.table-modern .btn-apply {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.table-modern .btn-apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* DataTables Override */
.dataTables_wrapper .dataTables_length select {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  color: #475569;
}

.dataTables_wrapper .dataTables_filter input {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 14px;
  color: #334155;
  margin-left: 8px;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dataTables_wrapper .dataTables_info {
  color: #64748b;
  font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #f1f5f9 !important;
  border: none !important;
  border-radius: 6px !important;
  color: #475569 !important;
  margin: 0 4px;
  padding: 2px 12px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e2e8f0 !important;
  color: #334155 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #fff !important;
}

/* DataTables border override */
table.dataTable thead th,
table.dataTable tbody td {
  border: 1px solid #e2e8f0 !important;
}

table.dataTable thead th:first-child,
table.dataTable tbody td:first-child {
  border-left: none !important;
}

table.dataTable thead th:last-child,
table.dataTable tbody td:last-child {
  border-right: none !important;
}

table.dataTable thead th {
  border-top: none !important;
}

table.dataTable tbody tr:last-child td {
  border-bottom: none !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: transparent;
}

/* Sorting icons */
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
  opacity: 0.5;
}

table.dataTable.no-footer {
  border-bottom: 1px solid #e1e7f0;
}

/* Apply Modal Styles */
#applyJobsModal .modal-dialog {
  max-width: 500px;
}

#applyJobsModal .modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

#applyJobsModal .modal-header {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  padding: 1.5rem 2rem;
  border: none;
  position: relative;
}

#applyJobsModal .modal-header::before {
  content: '';
  position: absolute;
  top: 1rem;
  right: 4rem;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

#applyJobsModal .modal-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 10;
}

#applyJobsModal .modal-header .close {
  color: white;
  opacity: 0.8;
  font-size: 1.5rem;
  text-shadow: none;
  position: relative;
  z-index: 10;
}

#applyJobsModal .modal-header .close:hover {
  opacity: 1;
}

#applyJobsModal .modal-body {
  padding: 2rem;
  background: white;
}

#applyJobsModal .form-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

#applyJobsModal .form-control {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  transition: all 0.3s;
  height: 45px !important;
  padding: 0.75rem 1rem !important;
}

#applyJobsModal .form-control:focus {
  background: white !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

#applyJobsModal .form-control[readonly] {
  background: #f1f5f9 !important;
  cursor: not-allowed;
}

#applyJobsModal .modal-footer {
  padding: 1.5rem 2rem;
  border: none;
  background: white;
}

#applyJobsModal .modal-footer .btn-primary {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s;
  width: 100%;
}

#applyJobsModal .modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
}

#applyJobsModal .modal-footer .btn-primary .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

#applyJobsModal .form-group {
  margin-bottom: 1.25rem;
}

#applyJobsModal .invalid-feedback {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

#applyJobsModal .form-control.is-invalid {
  border-color: #ef4444 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jobs-card {
    padding: 1.5rem;
  }

  .jobs-title {
    font-size: 1.5rem;
  }

  .table-modern tbody td {
    padding: 12px 10px;
    font-size: 0.85rem;
  }
}
.container{
  margin: auto;
}
