/* Additional styles for dynamic components */

/* Loading and error states */
.loading, .error-message, .no-jobs-message {
    padding: 30px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
  }
  
  .loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .error-message {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
  }
  
  /* Enhanced job card styles */
  .job-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
  }
  
  .job-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .job-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    gap: 24px;
  }
  
  .job-main {
    flex: 1;
    min-width: 0;
  }
  
  .job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .job-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .job-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-height: 24px;
    margin-bottom: 2px;
  }
  
  .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 80px;
    width: 80px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
  }
  
  .stat-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    flex: 1;
  }
  
  .job-actions {
    flex-shrink: 0;
  }
  
  .apply-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
  }
  
  .apply-btn:hover {
    border-color: var(--text-primary);
    background: var(--highlight-bg);
  }
  
  /* Light mode adjustments */
  body.light-mode .job-card {
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  body.light-mode .job-card:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  }
  
  /* Mobile responsive */
  @media (max-width: 768px) {
    .job-content {
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
      padding: 20px;
    }
    
    .job-main {
      width: 100%;
    }
    
    .job-title {
      font-size: 1.2rem;
      margin-bottom: 14px;
    }
    
    .job-stats {
      gap: 8px;
    }
    
    .job-stat {
      gap: 12px;
      min-height: 22px;
    }
    
    .stat-label {
      font-size: 0.75rem;
      min-width: 70px;
      width: 70px;
    }
    
    .stat-value {
      font-size: 0.85rem;
    }
    
    .job-actions {
      width: 100%;
      align-self: center;
    }
    
    .apply-btn {
      width: 100%;
      justify-content: center;
      padding: 14px 20px;
    }
  }
  
  @media (max-width: 480px) {
    .job-content {
      padding: 16px;
    }
    
    .job-stat {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      min-height: auto;
    }
    
    .stat-label {
      min-width: auto;
      width: auto;
    }
  }
  
  /* Success message */
  .success-message {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .success-message h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
  }
  
  .success-message p {
    color: var(--text-secondary);
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }