/* ==========================================================================
JOBS DASHBOARD
==========================================================================
*/

.recruiter-dashboard {
  max-width: 1200px;
  margin: 2rem auto !important;
  padding: 2rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.job-accordion {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.job-accordion.active {
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-header h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-toggle {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.accordion-toggle:hover {
  background: var(--gray-100);
}

.toggle-icon {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4361ee;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0;
}

.job-accordion.active .accordion-content {
  max-height: 5000px;
  padding: 1.5rem;
}

.job-filter-form {
  display: grid;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 8px;
}

.form-section select {
  width: 20%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: border 0.3s ease;
}


.form-section input:focus,
.form-section select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.option-item {
  padding: 1rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}



.option-item::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  background: var(--white);
  margin-right: 8px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.option-item.active::before {
  background: var(--primary);
  border-color: var(--primary);
}

.option-item:hover,
.option-item.active {
  background: var(--primary-light);
  border-color: var(--primary);
}

.option-item i {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary);
}

.clear-option {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dashboard-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.dashboard-btn.secondary {
  background: var(--gray-500);
  color: white;
}

.dashboard-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}






/************************************************************
 * class-user-dashboard.php (User Dashboard Styles)
 ************************************************************/

/* Container for the entire dashboard */
.user-dashboard-container {
    max-width: 900px;       /* Limits width to keep content readable */
    margin: 0 auto;         /* Centers the container on the page */
    padding: 1.5rem;
    background-color: #fff; /* White background for cleanliness */
}

/* Section headings (e.g., "Your Job Applications", "Your Saved Jobs") */
.user-dashboard-container h2 {
    font-size: 1.5rem;
    color: #2d2d2d;         /* Dark gray for good contrast */
    margin-bottom: 1rem;
    font-weight: 700;       /* Bold, similar to Indeed's heavier headings */
}

/* TABLE: Applications list */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;  
    margin-bottom: 2rem;
}

.dashboard-table thead th {
    background-color: #f5f5f5; /* Light background for table headers */
    color: #2d2d2d;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

.dashboard-table tbody tr {
    border-bottom: 1px solid #eee; 
}

.dashboard-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background-color: #f9f9f9; /* Subtle hover effect */
}

/* UL: Job bookmarks for saved jobs */
.job-bookmarks {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.job-bookmarks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
}

/* Job title links in bookmarks */
.job-bookmarks a {
    color: #003A9B;        
    text-decoration: none;
    font-weight: 600;      
}

.job-bookmarks a:hover {
    text-decoration: underline; 
}

/* Buttons: Withdraw / Remove */
.withdraw-application,
.remove-bookmark {
    background-color: #fff;
    color: #003A9B;
    border: 1px solid #003A9B;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.withdraw-application:hover,
.remove-bookmark:hover {
    background-color: #003A9B;  /* Invert colors on hover */
    color: #fff;
}

/************************************************************
 * Additional User Dashboard Container Styles
 ************************************************************/

.user-dashboard-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.dashboard-intro {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

/* General section wrapper */
.dashboard-section {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.dashboard-applications h2,
.dashboard-bookmarks h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

/* .dashboard-table for applications */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-table thead {
    background-color: #eee;
}
.dashboard-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    font-size: 0.95rem;
    color: #333;
}
.dashboard-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #444;
}
.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

/* UL: .job-bookmarks for saved jobs */
.job-bookmarks {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-bookmarks li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.job-bookmarks li a {
    text-decoration: none;
    color: #0073e6;
    font-weight: 600;
}
.job-bookmarks li a:hover {
    text-decoration: underline;
}

/* Buttons (Withdraw, Remove, etc.) */
.user-dashboard-container button {
    background-color: #0073e6;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.user-dashboard-container button:hover {
    background-color: #005bb5;
}

/* Optional: Style the login warning if user not logged in */
.dashboard-login-warning {
    max-width: 600px;
    margin: 4rem auto;
    padding: 1rem;
    background-color: #ffefef;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    text-align: center;
    color: #900;
    font-weight: 600;
}

/* ==========================================================================
   PROFESSIONAL JOB CARDS - SINGLE COLUMN LAYOUT
   ==========================================================================
*/

.job-card-wrapper {
    width: 100%;
    margin-bottom: 1.25rem;
}

.job-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    border-left: 4px solid #3b82f6;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left-color: #2563eb;
}

.job-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.job-card-title-section {
    flex: 1;
    min-width: 0;
}

.job-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-family: 'Inter', system-ui, sans-serif;
}

.job-card-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-company i {
    color: #718096;
    font-size: 1rem;
}

.job-card-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.job-card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
}

.job-card-meta-item i {
    color: #3b82f6;
    min-width: 18px;
    font-size: 1.1rem;
    background: #eff6ff;
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-card-meta-item span {
    font-weight: 600;
    color: #2d3748;
}

.job-card-excerpt {
    color: #718096;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.job-card-date {
    font-size: 0.9rem;
    color: #a0aec0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-date i {
    color: #cbd5e0;
}

.job-card-apply {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.job-card-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

.save-heart-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    padding: 0.75rem;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: #cbd5e0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
}

.save-heart-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.save-heart-btn.saved {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.save-heart-btn.saved:hover {
    background: #fecaca;
    color: #dc2626;
}

.save-heart-btn i {
    pointer-events: none;
    font-size: 1.3rem;
}

.job-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.job-card-link:hover .job-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Featured job styling */
.job-card.featured {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fff, #fffbeb);
}

.job-card.featured::before {
    content: "Featured";
    position: absolute;
    top: 1rem;
    left: -0.5rem;
    background: #f59e0b;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0 12px 12px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .job-card-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .job-card {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem;
        border-left-width: 3px;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .job-card-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .job-card-title {
        font-size: 1.2rem;
    }
    
    .job-card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .job-card-apply {
        text-align: center;
        justify-content: center;
    }
    
    .save-heart-btn {
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-end;
        margin: -0.5rem 0 0.5rem 0;
    }
    
    .job-card.featured::before {
        top: 0.5rem;
        left: -0.25rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .job-card-title {
        font-size: 1.1rem;
    }
    
    .job-card-meta-item {
        font-size: 0.9rem;
    }
    
    .job-card-meta-item i {
        font-size: 1rem;
        padding: 0.4rem;
    }
    
    .save-heart-btn {
        width: 40px;
        height: 40px;
        padding: 0.6rem;
    }
}

/************************************************************
 * Bulk Actions
 ************************************************************/

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f7f7f7;
}

.bulk-actions label {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.bulk-actions input[type="checkbox"] {
    margin-right: 0.5rem;
}


/************************************************************
 * Additional Table Styles (Optional)
 ************************************************************/

.job-preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.job-preview-table th,
.job-preview-table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

.job-preview-table th {
    background-color: #f7f7f7;
}



/************************************************************
 * Optional Heart Button (save-heart-btn)
 ************************************************************/

.save-heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
	color: #cbd5e1 !important;
}

/* Shared base style */
.save-heart-btn::before {
    content: "\2661"; /* ♡ */
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    box-sizing: border-box;
    color: #dc3545;               /* red heart outline */
    background-color: #fff;       /* white background */
    border: 2px solid #dc3545 !important;    /* red border */
    border-radius: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}


/* Hover = light red fill */
.save-heart-btn:hover::before {
    background-color: #f8d7da; /* light red fill */
}

/* Saved = filled red heart */
.save-heart-btn.saved::before {
    content: "\2665"; /* ♥ (filled heart) */
    color: #fff;
    background-color: #dc3545;
    border: 2px solid #dc3545;
}

/* Spinner animation */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/************************************************************
 * Single Job Page Styles
 ************************************************************/

.single-job-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.single-job-title {
    font-size: 1.75rem;
    margin: 0 0 1rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    color: #333;
}

.job-details p {
    margin: 0.5rem 0;
    color: #555;
}

.job-status-message {
    font-weight: 600;
    color: #cc0000; /* highlight color for closed/expired message */
    margin-bottom: 1rem;
}

.apply-section {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}

.contact-info-hidden {
    display: none;
}

.apply-section form {
    margin-top: 1rem;
}

.apply-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.apply-section input[type="file"] {
    margin-bottom: 1rem;
}

#reveal-contact-info,
.apply-section button {
    background-color: #0073e6;
    color: #fff;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-right: 0.5rem;
}
#reveal-contact-info:hover,
.apply-section button:hover {
    background-color: #005bb5;
}

/************************************************************
 * Single Job Grid Select
 ************************************************************/

.grid-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.grid-item {
    display: inline;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: #f3f3f3;
    border-radius: 6px;
    font-weight: bold;
    color: #0073aa;
	font-size: 1rem;
}

.grid-item i {
    min-width: 18px;
}

.job-card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.job-card-link-wrapper .job-card * {
    pointer-events: none;
}

.job-card-link-wrapper .job-card .save-heart-btn {
    pointer-events: auto;
    z-index: 5;
    position: relative;
}

.dashboard-btn.cta-post {
  background: #3b82f6;           /* blue background */
  color: #fff;                   /* white text */
  padding: 0.6rem 1.2rem;        /* spacing */
  border-radius: 9999px;         /* pill shape */
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.05s;
}

.dashboard-btn.cta-post:hover {
  background: #2563eb;           /* darker blue */
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.dashboard-btn.cta-post:active {
  transform: translateY(1px);
  background: #1d4ed8;
}

/************************************************************
 * NEW: Filter Dropdown Styles (Replacing Accordion)
 ************************************************************/

/* Filters Row Styles */
.filters-row {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    padding: 1.5rem;
    position: relative;
}

.filters-header {
    margin-bottom: 1rem;
}

.filters-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-container {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    position: relative;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
    position: relative;
}

.filter-input {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-input i {
    position: absolute;
    left: 12px;
    color: #64748b;
    z-index: 1;
}

.filter-input input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem !important;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.filter-input input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dropdown Styles - FIXED VERSION */
.filter-dropdown {
    position: relative;
    min-width: 160px;
    /* Remove any overflow restrictions */
    overflow: visible !important;
}

.dropdown-toggle {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #374151 !important;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    /* Ensure toggle button doesn't clip dropdown */
    position: relative;
    z-index: 100;
}

.dropdown-toggle:hover {
    border-color: #d1d5db;
}

.dropdown-toggle.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* FIXED: Dropdown menu positioning */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999; /* Very high z-index to ensure it's on top */
    margin-top: 0.25rem;
    display: none;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    /* Ensure it breaks out of any container */
    transform: translateZ(0); /* Force hardware acceleration */
}

.dropdown-menu.show {
    display: block;
}

.dropdown-options {
    padding: 0.5rem;
}

.dropdown-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.dropdown-option:hover {
    background: #f8fafc;
}

.dropdown-option.active {
    background: #eff6ff;
    color: #1d4ed8;
}

.dropdown-option input {
    display: none;
}

.dropdown-actions {
    padding: 0.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.5rem;
}

.clear-selection {
    width: 100%;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b !important;
    cursor: pointer;
    font-size: 0.85rem;
}

.clear-selection:hover {
    background: #f1f5f9;
}

/* Filter Actions */
.filter-actions {
    flex-direction: row;
    min-width: auto;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-btn.primary {
    background: #3b82f6;
    color: white !important;
}

.filter-btn.primary:hover {
    background: #2563eb;
}

.filter-btn.secondary {
    background: #f1f5f9 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.filter-btn.secondary:hover {
    background: #e2e8f0;
}

/* Job Card Styles */
.job-card-wrapper {
    width: 100%;
    display: flex;
    flex: 1 1 0;
}

.job-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-left: 4px solid #3b82f6;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 85%;
    min-height: 100%;
    max-width: 90%;
}

.job-card:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 15px rgba(59,130,246,0.2);
    transform: translateY(-4px);
}

.job-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #1e3a8a;
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.25rem;
}

.job-card-excerpt {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers li {
    display: inline-block;
}

.pagination .page-numbers a,
.pagination .page-numbers span.current {
    display: inline-block;
    padding: 0.5em 0.75em;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-numbers a {
    background-color: #fff;
    color: #333;
}

.pagination .page-numbers a:hover {
    background-color: #f7f7f7;
    color: #111;
}

.pagination .page-numbers span.current {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.pagination .page-numbers a.prev,
.pagination .page-numbers a.next {
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.4em 0.6em;
}

/************************************************************
 * Responsive Design - UPDATED: Filters stay in row on mobile
 ************************************************************/

@media (max-width: 768px) {
    .filters-row {
        padding: 1rem;
    }
    
    /* UPDATED: Filters stay horizontal but wrap as needed */
    .filters-container {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: calc(50% - 0.75rem);
        flex: 1 1 auto;
    }
    
    /* Action buttons stay in row but can wrap */
    .filter-actions {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .job-card-wrapper {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
    }

    .job-card {
        width: 100%;
        max-width: 80%;
        padding: 1rem;
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    /* UPDATED: On very small screens, filters stack vertically */
    .filters-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
    }
}

