.dashboard-job-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dashboard-job-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.job-card-logo-title {
  display: flex;
  align-items: start;
  margin-bottom: 1rem;
}
.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 1rem;
}
.title-text h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1.2em;
  color: #333;
  font-weight: 600;
}
.company-line {
  margin: 0;
  font-size: 1em;
  color: #666;
}
.action-buttons {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.saved-job-card:hover .action-buttons {
  opacity: 1;
  pointer-events: auto;
}

.share-btn {
  border: none;
  padding: 8px;  
  background-color: #6366f1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.share-btn .share-icon {
  width: 18px;
  height: 18px;
}

.share-btn.shared {
  background: #22c55e;
}
.save-job-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;  
  background-color: #6366f1;
  border-radius: 5px;
  cursor: pointer;
}

.save-job-button .unsave-job {
  color: white;
  font-size: 1.25rem;
}

.save-job-button:hover,
.share-btn:hover {
  background-color: #3e41ee;
}
.save-icon {
  color: white;
  font-size: 18px;
}
.apply-button {
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #6366f1;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}
.apply-button:hover {
  background-color: #3e41ee;
}
.unsave-job {
  color: #dc3545;
  font-size: 1.25rem;
}

/* Make badges wrap properly */
.saved-job-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.saved-job-card .badge {
  margin: 0 !important; /* Override the existing margin */
  white-space: normal;
  text-align: left;
  height: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .saved-job-card {
    padding: 1rem;
  }

  .saved-job-card .d-flex {
    flex-direction: column;
  }

  .saved-job-card .company-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .saved-job-card .action-buttons {
    position: static;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 1rem;
    justify-content: flex-end;
  }

  .saved-job-card h5 {
    font-size: 1.1em;
    margin-right: 0;
  }

  /* Adjust badge font size on mobile */
  .saved-job-card .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  /* Make salary badge full width on mobile since it's usually longer */
  .saved-job-card .badge:last-child {
    width: 100%;
  }
}
