/* Ensure the body takes up the full height */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full height of the viewport */
}

main {
  flex: 1;
  padding: 5px;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

.table-responsive {
  overflow-x: auto; /* Allow table to scroll horizontally if needed */
  position: relative; /* Create a new stacking context */
}


/* Footer aligns with the main container */
footer {
    max-width: 950px; /* Matches the container width */
    margin: 0 auto; /* Centers the footer */
    text-align: center; /* Centers the text */
    padding-top: 10px;
}

.truncate-overflow {
    --lh: 1.5em; /* Line height, you can adjust as needed */ --max-lines: 6; position: relative; max-height: calc(var(--lh) * var(--max-lines)); overflow-y: auto; /* Enable vertical scrolling */ padding-right: 1rem; text-overflow: ellipsis; /* Use ellipsis if the content overflows */ line-height: var(--l.5Sh); /* Set the line height */
  }

  .customized-resume{
    white-space: pre-wrap; /* This makes sure the text wraps */ 
    word-wrap: break-word; /* This ensures that long words break */ 
    overflow-wrap: break-word; /* This handles overflow situations */
  }

  .card { 
    width: 100%; /* Ensures the card takes up the full width of the container */ 
}

/* Add a position relative to the dropdown container */
.dropdown {
  position: relative;
}

/* Remove the fixed positioning from dropdown-menu */
.dropdown-menu {
  z-index: 1000;
  position: absolute; /* Change from fixed to absolute */
  right: 0; /* Align to the right of its container */
}

.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.bullet-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #666;
}

.status-form {
  margin: 0;
}
.status-form select {
  min-width: 120px;
}
/* Style different statuses */
.form-select option[value="Applied"] { color: #0d6efd; }
.form-select option[value="Screening"] { color: #6610f2; }
.form-select option[value="Interview"] { color: #0dcaf0; }
.form-select option[value="Offer"] { color: #198754; }
.form-select option[value="Rejected"] { color: #dc3545; }
.form-select option[value="Accepted"] { color: #198754; }
.form-select option[value="Not Interested"] { color: #6c757d; }

/* Consistent Button Styling */
.btn {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
}

/* Highlight Recommended Action */
.highlight-action {
  border: 2px solid #0d6efd; /* Thicker border for emphasis */
  background-color: #e7f1ff; /* Light blue background */
  font-weight: 600; /* Slightly bolder text */
  color: #0d6efd; /* Primary color for text */
}

/* Hover Effect */
.btn:hover {
  background-color: #f8f9fa; /* Light gray hover */
  color: #0d6efd;
}

/* Card Styling */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Title Styling */
.card-title {
  font-size: 1.1rem;
  color: #343a40;
  font-weight: 600;
  text-transform: uppercase;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sortable {
  cursor: pointer;
}

.sortable:hover {
  background-color: rgba(0,0,0,.05);
}

.table-hover tbody tr:hover {
  background-color: rgba(0,0,0,.02);
}

#searchJobs {
  min-width: 200px;
  max-width: 200px;
}

#statusFilter {
  min-width: 150px;
  max-width: 150px;
}

.resume-content h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.resume-content p {
  margin-bottom: 0.5rem;
}

.resume-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050;
}

.loading-content {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.agenda-item {
  transition: transform 0.2s;
  position: relative; /* Ensure relative positioning */
}

.agenda-item:hover {
  transform: translateX(0.25rem);
}

/* Fix dropdown positioning */
.agenda-item .dropdown {
  position: static; /* Change from default position */
}

.agenda-item .dropdown-menu {
  position: absolute;
  z-index: 1000; /* Ensure high z-index */
  right: 0;      /* Align to the right */
  top: auto;     /* Let it position naturally */
  transform: none !important; /* Override Bootstrap's transform */
}

/* Ensure the container has proper positioning context */
.agenda-scroll {
  position: relative;
  max-height: 300px;
  overflow-y: auto;
}

/* Ensure agenda items don't cover dropdowns */
.agenda-item {
  margin-bottom: 1rem; /* Add some spacing between items */
}

/* Optional: Add more spacing at the bottom of the last item */
.agenda-item:last-child {
  margin-bottom: 0.5rem;
}