/* ==================== MODERN CANDIDATE DASHBOARD ==================== */

/* Main Content */
.main-content {
  padding: 0 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.breadcrumb-modern {
  background: transparent;
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.breadcrumb-modern a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-modern a:hover {
  color: #dc3545;
}

.breadcrumb-modern .active {
  color: #495057;
  font-weight: 500;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.page-subtitle {
  font-size: 1rem;
  color: #6c757d;
}

/* ==================== CONTENT CARDS ==================== */
.content-card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.card-header-custom {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.card-body-custom {
  padding: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
}

/* ==================== JOBS GRID ==================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.job-card-modern {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: #dc3545;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.job-title-area {
  flex: 1;
  min-width: 0;
}

.job-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.job-company {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.bg-success-custom {
  background: #10b981 !important;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.bg-warning-custom {
  background: #f59e0b !important;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.bg-secondary-custom {
  background: #6b7280 !important;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.bg-expired {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: white !important;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  animation: pulse-expired 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

@keyframes pulse-expired {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.8);
  }
}

/* Expired job card styling */
.job-card-modern.expired-job {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #fca5a5;
  opacity: 0.85;
  position: relative;
}

.job-card-modern.expired-job::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
}

.job-card-modern.expired-job .job-title {
  color: #6b7280;
  text-decoration: line-through;
  text-decoration-color: #dc2626;
  text-decoration-thickness: 2px;
}

.job-card-modern.expired-job:hover {
  transform: none;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
  border-color: #dc2626;
}

/* Disabled button styling for expired jobs */
.job-card-modern.expired-job .btn-danger:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  border: none;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
  overflow: hidden;
}

.job-card-modern.expired-job .btn-danger:disabled::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: stripes 1s linear infinite;
}

@keyframes stripes {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(28px, 0);
  }
}

.job-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
}

.job-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.job-detail-item i {
  font-size: 1rem;
  color: #dc3545;
}

.job-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: auto;
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state i {
  font-size: 4rem;
  color: #dee2e6;
  display: block;
  margin-bottom: 1rem;
}

.empty-text {
  color: #6c757d;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1199px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .main-content {
    padding: 0 0.5rem;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

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

  .job-actions {
    flex-wrap: wrap;
  }

  .job-header {
    flex-wrap: wrap;
  }
}

/* Bootstrap overrides */
.card {
  border-radius: 12px;
  border: none;
}

.card-header {
  border-radius: 12px 12px 0 0 !important;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
}

.btn-outline-danger:hover:not(:disabled) {
  background: #dc3545;
  color: white;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 1px solid #6c757d;
  color: #6c757d;
  background: transparent;
}

.btn-outline-secondary:hover:not(:disabled) {
  background: #6c757d;
  color: white;
  transform: translateY(-1px);
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}
