/* Jobs Page Styles */

.jobs-section {
  padding: 3rem 0 5rem;
}

.jobs-filters {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.jobs-grid {
  display: grid;
  gap: 2rem;
}

.job-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.2);
  transform: translateY(-2px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.job-title h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.job-location {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-location i {
  color: var(--primary);
}

.job-badge {
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.job-badge.urgent {
  background: var(--error);
}

.job-details {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.job-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.job-detail-item i {
  color: var(--primary);
}

.job-description {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.deadline {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.deadline i {
  color: var(--warning);
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
}

.no-results h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-light);
}

/* Application Modal */
.job-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem;
}

.job-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text);
}

.application-form h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.file-upload {
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.file-upload:hover {
  border-color: var(--primary);
  background: var(--bg-light);
}

.file-upload i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.file-upload p {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.file-upload small {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Admin Applications Styles */
.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.filters-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.filters-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filters-form select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.applications-grid {
  display: grid;
  gap: 1.5rem;
}

.application-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.applicant-info h4 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.applicant-info p {
  color: var(--text-light);
}

.application-status {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: capitalize;
}

.application-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.application-status.shortlisted {
  background: #dbeafe;
  color: #1e40af;
}

.application-status.interview_scheduled {
  background: #ddd6fe;
  color: #5b21b6;
}

.application-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.application-status.rejected {
  background: #fee2e2;
  color: #991b1b;
}

.application-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.detail-value {
  color: var(--text);
  font-weight: 500;
}

.application-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-info {
  background: var(--primary);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--error);
  color: white;
}

@media (max-width: 768px) {
  .job-details {
    flex-direction: column;
    gap: 1rem;
  }

  .job-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .job-footer .btn-primary {
    width: 100%;
  }

  .filters-form {
    flex-direction: column;
  }

  .application-actions {
    flex-direction: column;
  }

  .application-actions .btn-small {
    width: 100%;
  }
}
