/* Global Variables */
/* :root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
} */

/* Reset & Base Styles */
/* .jobboard-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #666;
}

.jobboard-container {
    color: var(--text-primary);
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
} */

/* Typography */
/* .jobboard-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.jobboard-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
} */

/* Buttons */
/* .jobboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.jobboard-btn-primary:hover {
    background-color: var(--primary-hover);
}

.jobboard-btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.jobboard-btn-outline {
    border-color: var(--border-color);
    background-color: var(--white);
    color: var(--text-primary);
}

.jobboard-btn-outline:hover {
    background-color: var(--light-bg);
} */

/* Forms */
/* .jobboard-form-group {
    margin-bottom: 1.5rem;
}

.jobboard-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
} */

/* .jobboard-input,
.jobboard-select,
.jobboard-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--white);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.jobboard-input:focus,
.jobboard-select:focus,
.jobboard-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
} */

/* Job Cards */
/* .jobboard-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.jobboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.jobboard-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.jobboard-card-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.jobboard-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
} */

/* Job Details */
/* .jobboard-job-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.jobboard-job-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.jobboard-meta-item {
    display: flex;
    flex-direction: column;
}

.jobboard-meta-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.jobboard-meta-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
} */

/* Dashboard */
/* .jobboard-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.jobboard-dashboard-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.jobboard-dashboard-nav {
    list-style: none;
}

.jobboard-dashboard-nav-item {
    margin-bottom: 0.5rem;
}

.jobboard-dashboard-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.jobboard-dashboard-nav-link:hover,
.jobboard-dashboard-nav-link.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
} */

/* Dashboard Tabs */
/* .tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.dashboard-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.dashboard-item:hover {
    box-shadow: var(--shadow-md);
}

.dashboard-item h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-item .status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dashboard-item .status.published {
    background-color: #f0fdf4;
    color: #15803d;
}

.dashboard-item .status.pending {
    background-color: #fff7ed;
    color: #c2410c;
}

.dashboard-item .status.draft {
    background-color: #f8fafc;
    color: #64748b;
}

.dashboard-item .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dashboard-item .actions a,
.dashboard-item .actions button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-item .actions .edit {
    background-color: var(--info-color);
    color: var(--white);
}

.dashboard-item .actions .edit:hover {
    background-color: #2563eb;
}

.dashboard-item .actions .delete {
    background-color: var(--danger-color);
    color: var(--white);
}

.dashboard-item .actions .delete:hover {
    background-color: #dc2626;
}

.dashboard-item .actions .view {
    background-color: var(--secondary-color);
    color: var(--white);
}

.dashboard-item .actions .view:hover {
    background-color: #475569;
} */

/* Tables */
/* .jobboard-table {
    width: 100%;
    border-collapse: collapse;
}

.jobboard-table th,
.jobboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.jobboard-table th {
    background-color: var(--light-bg);
    font-weight: 500;
    color: var(--text-secondary);
}

.jobboard-table tr:hover {
    background-color: var(--light-bg);
} */

/* Status Badges */
.jobboard-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.status-pending {
    background-color: #fff7ed;
    color: #c2410c;
}

.status-reviewed {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.status-shortlisted {
    background-color: #f0fdf4;
    color: #15803d;
}

.status-rejected {
    background-color: #fef2f2;
    color: #b91c1c;
}

.status-hired {
    background-color: #f0fdf4;
    color: #15803d;
}

.jobboard-subheading {
    font-size: 48px;
}
.jobboard-subtext {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jobboard-dashboard {
        grid-template-columns: 1fr;
    }

    .jobboard-job-meta {
        grid-template-columns: 1fr;
    }

    .jobboard-table {
        display: block;
        overflow-x: auto;
    }
}

/* Utilities */
.jobboard-mt-4 { margin-top: 1rem; }
.jobboard-mb-4 { margin-bottom: 1rem; }
.jobboard-flex { display: flex; }
.jobboard-items-center { align-items: center; }
.jobboard-justify-between { justify-content: space-between; }
.jobboard-gap-4 { gap: 1rem; }

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.jobboard-animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Admin Bar Styles */
#wpadminbar #wp-admin-bar-jobboard-profile .ab-item {
    color: #fff;
    font-weight: 600;
}

#wpadminbar #wp-admin-bar-jobboard-profile .ab-sub-wrapper .ab-item {
    color: #eee;
}

#wpadminbar #wp-admin-bar-jobboard-profile .ab-sub-wrapper .ab-item:hover {
    color: #00b9eb;
}

/* Hide unnecessary admin bar items for non-admin users */
.job_seeker #wpadminbar #wp-admin-bar-site-name,
.employer #wpadminbar #wp-admin-bar-site-name,
.job_seeker #wpadminbar #wp-admin-bar-new-content,
.employer #wpadminbar #wp-admin-bar-new-content,
.job_seeker #wpadminbar #wp-admin-bar-comments,
.employer #wpadminbar #wp-admin-bar-comments,
.job_seeker #wpadminbar #wp-admin-bar-customize,
.employer #wpadminbar #wp-admin-bar-customize,
.job_seeker #wpadminbar #wp-admin-bar-updates,
.employer #wpadminbar #wp-admin-bar-updates {
    display: none;
}

/* Navigation Menu Styles */
.logged-in.job_seeker .employer-only,
.logged-in.employer .jobseeker-only,
.logged-out .logged-in-only {
    display: none !important;
}


/* Active Menu Item */
/* .current-menu-item > a {
    color: #00b9eb;
    font-weight: bold;
} */

/* Role-based Menu Visibility */
/* Allow job-dashboard for both job seekers and employers - it's the unified dashboard */
body.job_seeker .menu-item a[href*="post-a-job"],
body.employer .menu-item a[href*="jobseeker-dashboard"] {
    display: none !important;
}

/* Hide menu items for logged out users */
body:not(.logged-in) .menu-item a[href*="job-dashboard"],
body:not(.logged-in) .menu-item a[href*="jobseeker-dashboard"],
body:not(.logged-in) .menu-item a[href*="post-a-job"] {
    display: none !important;
}

/* Hide menu container if empty */
.menu-item:empty,
.sub-menu:empty {
    display: none !important;
} 
.alert-success {
    padding: 5px 10px!important;
    display: inline-block;
    font-size: 14px;
}
.jobboard-cardcontent ul {
    margin: 0 0 20px 20px!important;
}
.jobboard-cardcontent h2, h3, h4 {
    font-size: 1.5rem!important;
    margin-bottom: 1.5rem !important;
    font-weight: 300 !important;
}

/* Dropdown Menu Styles for Job Seeker & Employer */
.jobboard-dropdown-menu {
    position: relative;
}

.jobboard-dropdown-menu > a::after {
    content: " ▼";
    font-size: 10px;
    margin-left: 4px;
}

.jobboard-dropdown-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #024a71;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

.jobboard-dropdown-menu:hover .sub-menu,
.jobboard-dropdown-menu:focus-within .sub-menu {
    display: block;
}

.jobboard-dropdown-menu .sub-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jobboard-dropdown-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.jobboard-dropdown-menu .sub-menu li a:hover {
    background: #f5f5f5;
    color: #2271b1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .jobboard-dropdown-menu .sub-menu {
        position: static;
        box-shadow: none;
        border-left: 3px solid #2271b1;
        margin-left: 15px;
    }
    
    .jobboard-dropdown-menu .sub-menu li a {
        padding: 8px 15px;
    }
}

/* Cover Letter Modal */
.jobboard-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.jobboard-modal .modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.jobboard-modal .close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.jobboard-modal .close:hover,
.jobboard-modal .close:focus {
    color: var(--text-primary);
}

.jobboard-modal h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cover-letter-modal-content {
    margin-top: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.jobboard-stat-box__value {
    font-size: 32px!important;
}