/* ============================================
   SAVED JOBS PAGE - UNIFIED STYLING
   Matches search page job card design
   ============================================ */

/* Job Item Actions - Standardized Buttons (Saved & Applied Jobs) */
.job-item-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Pill Button Base Style (matches search page) */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-pill:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn-pill:active {
  transform: translateY(0);
}

/* Apply Button - Primary Action */
.btn-apply-saved {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-apply-saved:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-apply-saved.btn-applied {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-apply-saved.btn-applied:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-apply-saved.btn-success-state {
  background: #9ca3af !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
  pointer-events: none;
}

.btn-apply-saved.btn-success-state:hover {
  transform: none !important;
  box-shadow: none !important;
  background: #9ca3af !important;
}

/* AI Cover Letter Button */
.btn-ai-saved {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-ai-saved:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.ai-badge-inline {
  font-size: 0.75rem;
  margin-left: 2px;
}

/* Remove Button - Danger Action */
.btn-remove-saved {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-remove-saved:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ============================================
   COVER LETTER MODAL - CLEAN DESIGN
   ============================================ */

.cover-letter-modal {
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.modal-header-clean {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  gap: 20px;
}

.modal-title-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-title-section h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #1f2937;
}

.saved-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.close-btn-clean {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.close-btn-clean:hover {
  background: #e5e7eb;
  color: #374151;
}

.modal-subtitle {
  color: #6b7280;
  margin: 0;
  padding: 0 24px 16px 24px;
  font-size: 0.9375rem;
}

.info-banner {
  background: #f0fdf4;
  border-left: 3px solid #10b981;
  padding: 14px 16px;
  margin: 0 24px 20px 24px;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: #065f46;
  line-height: 1.5;
}

.info-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #10b981;
}

.cover-letter-textarea {
  width: calc(100% - 48px);
  min-height: 400px;
  padding: 16px;
  margin: 0 24px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.8;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.cover-letter-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-actions-clean {
  display: flex;
  gap: 10px;
  padding: 20px 24px 24px 24px;
  flex-wrap: wrap;
}

/* Modal Action Buttons */
.btn-primary-pill {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-primary-pill:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary-pill {
  background: white;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-secondary-pill:hover {
  background: #f9fafb;
  border-color: #5568d3;
  color: #5568d3;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .job-item-actions {
    flex-direction: column;
  }
  
  .btn-pill {
    width: 100%;
    justify-content: center;
  }
  
  .cover-letter-modal {
    max-width: 95vw;
    margin: 10px;
  }
  
  .modal-header-clean {
    padding: 16px;
  }
  
  .modal-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .modal-subtitle {
    padding: 0 16px 12px 16px;
  }
  
  .info-banner {
    margin: 0 16px 16px 16px;
  }
  
  .cover-letter-textarea {
    width: calc(100% - 32px);
    margin: 0 16px;
    min-height: 300px;
  }
  
  .modal-actions-clean {
    flex-direction: column;
    padding: 16px;
  }
  
  .btn-primary-pill,
  .btn-secondary-pill {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .modal-title-section h2 {
    font-size: 1.25rem;
  }
  
  .saved-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
  
  .info-banner {
    font-size: 0.8125rem;
    padding: 12px;
  }
  
  .cover-letter-textarea {
    font-size: 0.875rem;
  }
}


/* ============================================
   APPLIED JOBS BUTTONS - UNIFIED STYLING
   ============================================ */

/* View Job Button - Primary Action */
.btn-view-applied {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-view-applied:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Update Status Button - Secondary Action */
.btn-status-applied {
  background: white;
  color: #667eea;
  border: 1px solid #667eea;
}

.btn-status-applied:hover {
  background: #f9fafb;
  border-color: #5568d3;
  color: #5568d3;
}

/* Remove Button - Danger Action (same as saved jobs) */
.btn-remove-applied {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-remove-applied:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}


/* ============================================
   JOB ALERTS BUTTONS - UNIFIED STYLING
   ============================================ */

/* Alert Actions Container */
.alert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Pause/Activate Button */
.btn-pause-alert {
  background: #10b981;
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-pause-alert:hover {
  background: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-activate-alert {
  background: #f59e0b;
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-activate-alert:hover {
  background: #d97706;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Edit Button */
.btn-edit-alert {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-edit-alert:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Delete Button */
.btn-delete-alert {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-delete-alert:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}


/* ============================================
   PROFILE REQUIREMENTS BANNER - STANDARDIZED
   Matches search page and dashboard styling
   ============================================ */

.profile-requirements-banner {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 0;
  align-items: stretch;
}

.profile-requirements-banner .banner-item {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.profile-requirements-banner .banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.profile-requirements-banner .banner-content {
  flex: 1;
}

.profile-requirements-banner .banner-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: white;
}

.profile-requirements-banner .banner-description {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
  color: white;
}

.profile-requirements-banner .banner-action {
  margin-left: 16px;
  flex-shrink: 0;
}

.profile-requirements-banner .btn-banner {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.profile-requirements-banner .btn-banner:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Mobile responsive for profile requirements banner */
@media (max-width: 768px) {
  .profile-requirements-banner {
    flex-direction: column;
    gap: 16px;
  }
  
  .profile-requirements-banner .banner-item {
    padding: 16px 20px;
  }
  
  .profile-requirements-banner .banner-title {
    font-size: 1rem;
  }
  
  .profile-requirements-banner .banner-description {
    font-size: 0.85rem;
  }
  
  .profile-requirements-banner .btn-banner {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
