/* Job Board Modern Styles */
:root {
  --primary: #0056b3; /* Bayelsa Medical University blue */
  --primary-hover: #003d7a;
  --primary-light: #e6f0ff;
  --secondary: #6c757d;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #28a745;
  --error: #dc3545;
  --border-radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  color: var(--dark);
  background-color: #f3f4f6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Job List Styles */
.job-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.job-list-header {
  text-align: center;
  margin-bottom: 3rem;
}

.job-list-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.job-list-header p {
  font-size: 1.125rem;
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto;
}

.job-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  display: block;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--primary);
}

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

.job-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--secondary);
  font-size: 0.875rem;
}

.job-meta i {
  margin-right: 0.25rem;
  color: var(--primary);
}

.job-type-badge {
  background: #e0e7ff;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Job Detail Styles */
.job-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.job-detail-header {
  margin-bottom: 2rem;
}

.job-detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.job-detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.job-detail-meta i {
  color: var(--primary);
  margin-right: 0.25rem;
}

.job-detail-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.section-content {
  color: var(--dark);
}

.section-content p {
  margin-bottom: 1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn i {
  margin-right: 0.5rem;
}

/* Job Application Styles */
.job-application-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.job-application-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
  transition: all 0.2s ease;
}

textarea.form-control {
  min-height: 120px;
}

.help-text {
  font-size: 0.875rem;
  color: var(--secondary);
  margin-top: 0.25rem;
  display: block;
}

.invalid-feedback {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* File Input Styling */
.file-input-container {
  margin-top: 0.5rem;
}

.file-input-label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f1f5f9;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-input-label:hover {
  background: #e2e8f0;
}

.file-input-label i {
  margin-right: 0.5rem;
  color: var(--primary);
}

input[type="file"]:focus + .file-input-label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-switch-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .job-card-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .job-meta {
    gap: 0.5rem;
  }
  
  .job-detail-meta {
    gap: 0.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
}
