* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --uva-blue: #232D4B;
  --uva-orange: #E57200;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-800: #343a40;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--gray-100);
}

.landing-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--uva-blue) 0%, #364a6d 100%);
}

.landing-card {
  background: white;
  border-radius: 12px;
  padding: 48px;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.logo-container {
  text-align: center;
  margin-bottom: 32px;
}

.logo-container h1 {
  color: var(--uva-blue);
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.logo-container h2 {
  color: var(--uva-orange);
  font-size: 1.5rem;
  font-weight: 400;
}

.description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #666;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--uva-blue);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: #1a2338;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-success:hover {
  background-color: #218838;
}

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

.btn-danger:hover {
  background-color: #c82333;
}

.btn-secondary {
  background-color: var(--gray-300);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

.feature {
  text-align: center;
}

.feature h3 {
  color: var(--uva-blue);
  margin-bottom: 8px;
}

.feature p {
  color: #666;
  font-size: 14px;
}

footer {
  margin-top: 48px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left h1 {
  color: var(--uva-blue);
  margin-bottom: 4px;
}

.header-left p {
  color: #666;
  font-size: 14px;
}

.header-right {
  display: flex;
  gap: 12px;
}

.filters-container {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-weight: 500;
  color: var(--gray-800);
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 14px;
}

.bulk-actions {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#selectionCount {
  margin-left: auto;
  font-weight: 500;
  color: var(--uva-blue);
}

.table-container {
  background: white;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#jobsTable {
  width: 100%;
  border-collapse: collapse;
}

#jobsTable thead {
  background-color: var(--uva-blue);
  color: white;
}

#jobsTable th,
#jobsTable td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

#jobsTable th {
  font-weight: 600;
  font-size: 14px;
}

#jobsTable tbody tr:hover {
  background-color: var(--gray-100);
}

#jobsTable tbody tr.selected {
  background-color: #fff3cd;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-approved {
  background-color: #d4edda;
  color: #155724;
}

.status-rejected {
  background-color: #f8d7da;
  color: #721c24;
}

.status-published {
  background-color: #d1ecf1;
  color: #0c5460;
}

.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 32px;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.loading {
  text-align: center;
  padding: 48px;
  color: #999;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
  }

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

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

/* FBS Brand Improvements */
.batten-wordmark .subtitle {
  color: var(--uva-orange);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.school-name {
  color: #666;
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 12px;
}

.school-footer {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

footer strong {
  font-weight: 600;
  color: var(--uva-blue);
}

/* Job Details Modal Styles */
.job-details {
  max-height: 70vh;
  overflow-y: auto;
}

.detail-section {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h3 {
  color: var(--uva-blue);
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.detail-section p {
  margin: 8px 0;
  line-height: 1.6;
}

.detail-section strong {
  font-weight: 600;
  color: #333;
}

.detail-section a {
  color: var(--uva-orange);
  text-decoration: none;
}

.detail-section a:hover {
  text-decoration: underline;
}

/* Job Title Link in Table */
.job-title-link {
  color: var(--uva-blue);
  text-decoration: none;
  cursor: pointer;
}

.job-title-link:hover {
  text-decoration: underline;
  color: var(--uva-orange);
}

/* Salary Preview */
.salary-preview {
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-muted {
  color: #999;
}

/* Dashboard container - use full width */
.dashboard-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Table container - 90% of screen */
.table-container {
  width: 100%;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sortable column headers */
.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable:hover {
  background-color: #1a2338;
}

.sort-icon {
  margin-left: 4px;
  opacity: 0.5;
}

.sort-icon::after {
  content: '⇅';
}

.sortable.asc .sort-icon::after {
  content: '↑';
  opacity: 1;
}

.sortable.desc .sort-icon::after {
  content: '↓';
  opacity: 1;
}

/* Column resizing */
.resizable {
  position: relative;
}

.resizable .resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: col-resize;
  user-select: none;
}

.resizable .resize-handle:hover {
  background-color: var(--uva-orange);
}

/* Modal - centered and wider */
.modal-content {
  background-color: white;
  padding: 32px;
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
}

/* Search box styling */
#searchBox {
  padding: 8px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 14px;
  min-width: 300px;
}

#searchBox:focus {
  outline: none;
  border-color: var(--uva-blue);
  box-shadow: 0 0 0 2px rgba(35, 45, 75, 0.1);
}

/* Table cell sizing */
#jobsTable th,
#jobsTable td {
  padding: 10px 8px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#jobsTable td.title-cell {
  max-width: 300px;
}

#jobsTable td.company-cell {
  max-width: 200px;
}

#jobsTable td.location-cell {
  max-width: 150px;
}

#jobsTable td.salary-cell {
  max-width: 150px;
}

/* Form input styling for edit mode */
.form-input {
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--uva-blue);
  box-shadow: 0 0 0 2px rgba(35, 45, 75, 0.1);
}

textarea.form-input {
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
