.btn.job-detail-btn:hover,
.btn-success:hover {
    transform: translateY(-1px);
}

.fa-asterisk.text-danger {
    vertical-align: super;
    font-size: 0.85em;
}

/* Ensure login-apply-btn is always blue fill, white text, even on hover */
.login-apply-btn {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    border: none !important;
}

.login-apply-btn:hover,
.login-apply-btn:focus,
.login-apply-btn:active {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    border: none !important;
}

:root {
    /* Homepage Color Palette */
    --primary-blue: #3B82F6;
    /* Sky Blue */
    --secondary-green: #22C55E;
    /* Fresh Green */
    --accent-yellow: #FACC15;
    /* Warm Yellow */
    --neutral-gray: #E5E7EB;
    /* Warm Gray */

    /* Supporting Colors */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}



/* SAFER FONT APPLICATION: do not override Font Awesome's font-family */
body :not(i):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Reassert FA fonts if any legacy CSS still interferes */
.fa,
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.asteriskField,
label.requiredField::after,
.control-label.requiredField::after,
label:has(+ .form-control[required])::after,
label:has(+ .form-select[required])::after,
label:has(+ textarea[required])::after {
    color: #DC2626 !important;
}

/* Deadline highlighting */
.deadline-highlight {
    background-color: #ccc39a;
    color: var(--gray-900);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* removed universal font override to avoid breaking icon fonts */

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
}

.navbar {
    padding: 0.5rem 0;
    margin-bottom: 0;
    z-index: 1030;
    background: var(--white) !important;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    padding: 0.5rem 1rem !important;
    color: var(--gray-900) !important;
    transition: color 0.3s ease;
    margin-right: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    color: var(--gray-600) !important;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.text-wrap {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.badge {
    white-space: normal;
    height: auto;
    line-height: 1.2;
    padding: 0.4em 0.6em;
}

.badge.bg-light {
    background-color: var(--gray-100) !important;
    color: var(--gray-700) !important;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.badge.bg-light:hover {
    background-color: var(--gray-200) !important;
}

.badge.bg-primary .fa-certificate {
    font-size: 0.7em;
    vertical-align: middle;
    margin-right: 0.2em;
}

.badge.bg-success {
    background-color: var(--secondary-green) !important;
    color: var(--white) !important;
    font-weight: 600;
}

.badge.bg-primary {
    background-color: var(--primary-blue) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 4px 7px;
    font-size: 0.75em;
    line-height: 1;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge.bg-warning {
    background-color: #FDE68A !important;
    color: var(--gray-900) !important;
    font-weight: 600;
}

/* New Jobs Only toggle styling */
.form-check-input:checked {
    background-color: #FDE68A;
    border-color: #FDE68A;
}

.form-check-label {
    color: var(--gray-700);
    font-weight: 500;
}

.text-primary {
    color: var(--accent-yellow) !important;
}

.job-title {
    display: block;
    word-wrap: break-word;
    word-break: break-word;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.center {
    margin: auto;
    width: 50%;
    padding: 10px;
}

.phone-input-group {
    margin-bottom: 1rem;
}

.country-select {
    height: calc(1.5em + 1.5rem + 4px);
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.phone-input {
    height: calc(1.5em + 1.5rem + 4px);
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Style for the country select dropdown */
.country-select option {
    padding: 0.5rem;
}

/* Add some hover effects */
.country-select:hover,
.phone-input:hover {
    border-color: var(--primary-blue);
}

/* Focus styles */
.country-select:focus,
.phone-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: 0;
}

/* Input group styling */
.input-group {
    border-radius: 0.5rem;
    overflow: hidden;
}

.input-group-text {
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    color: var(--gray-600);
    padding: 0.75rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-blue);
}

/* Ensure proper spacing between form groups */
.form-group {
    margin-bottom: 1rem;
}

/* Job Post Form Styles */
.job-form-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

/* Ensure consistent widths for all cards */
.job-form-container .tool-card,
.job-form-container .main-form-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Form Header */
.form-header {
    background: linear-gradient(135deg, var(--white), var(--gray-50));
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.header-content {
    text-align: center;
}

.header-info {
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.tool-card .card-header {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.card-header-content {
    text-align: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.tool-card .card-body {
    padding: 1.5rem;
}

/* Modern Form Elements */
.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modern-textarea {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    background: var(--white);
}

.modern-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-textarea::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

/* Modern Input and Select Styles */
.modern-input {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    width: 100%;
}

.modern-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-input::placeholder {
    color: var(--gray-400);
    font-style: italic;
}

.modern-select {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    width: 100%;
    cursor: pointer;
}

.modern-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.modern-select option {
    padding: 0.5rem;
}

/* Header actions styling */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
}

/* Search filter bar styling */
.search-filter-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-actions {
        justify-content: center;
    }
}

/* Filter bar for job applicants */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-bar .form-label {
    font-weight: 600;
    color: var(--gray-700);
}

/* Button Styles */
.btn-gradient {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: var(--white);
}

.btn-secondary.btn-gradient {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: var(--white);
}

.btn-secondary.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    color: var(--white);
}

/* Main Form Card */
.main-form-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    overflow: visible;
}

/* Form Sections */
.form-section {
    border-bottom: 1px solid var(--gray-200);
    padding: 2rem;
    position: relative;
    overflow: visible;
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.section-info {
    text-align: left;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 0.25rem 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.section-content {
    margin-top: 1.5rem;
    position: relative;
    overflow: visible;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.salary-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-field {
    display: flex;
    flex-direction: column;
}

/* Form Row Layout - Consistent width for all form rows */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
    /* Prevent flex items from overflowing */
}

/* Info Elements */
.info-alert {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #1E40AF;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.info-alert i {
    color: #3B82F6;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.commission-info {
    margin: 1.5rem 0;
}

.info-card {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.info-header i {
    color: var(--secondary-green);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item.highlight {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 600;
}

.policy-label {
    color: var(--gray-700);
    font-weight: 500;
}

.policy-value {
    color: var(--gray-900);
    font-weight: 600;
}

/* Skills Section Specific */
.skills-input-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-input-group {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
}

.extract-btn {
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 0.25rem;
}

.skills-info-alert {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-color: var(--accent-yellow);
}

.skills-info-alert i {
    color: var(--accent-yellow);
}

.skills-classification-wrapper {
    margin-top: 1.5rem;
}

.skills-classification-container {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.classification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.classification-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.skills-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skills-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.legend-item.primary i {
    color: #DC2626;
}

.legend-item.secondary i {
    color: var(--gray-400);
}

/* Form Actions */
.form-actions {
    background: var(--gray-50);
    padding: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-submit {
    background-color: var(--secondary-green);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    color: var(--white);
}

.btn-cancel {
    background-color: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
    color: var(--gray-800);
}

/* Legacy support for existing elements */
.form-group:last-child {
    margin-bottom: 0;
}

textarea {
    min-height: 120px;
}

legend {
    font-weight: 500;
    color: #333;
}

.btn {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Filter button - Fresh Green with gradient hover */
.btn-primary.filter-btn {
    background-color: var(--secondary-green);
}

.btn-primary.filter-btn:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-300);
    color: var(--gray-800);
    border-color: var(--gray-400);
}

/* Form Controls Enhancement */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-select {
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-check-input {
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-wrapper {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
}

.select-wrapper {
    margin-top: 0.75rem;
}

/* Select2 Integration */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid var(--gray-200) !important;
    border-radius: 0.5rem !important;
    min-height: calc(1.5em + 1.5rem + 4px) !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.75rem !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple {
    padding: 0.35rem 0.75rem !important;
    min-height: calc(1.5em + 1.5rem + 4px) !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    margin: 0;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    margin-top: 0.25rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid var(--primary-blue) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-blue) !important;
}

/* Currency field specific styling */
.currency-field .form-control,
.currency-field .select2-container .select2-selection {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    border-color: var(--secondary-green);
}

.currency-field .form-control:focus,
.currency-field .select2-container--focus .select2-selection {
    border-color: var(--secondary-green) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-form-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .form-header {
        padding: 1.5rem;
    }

    .header-content {
        text-align: center;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 1.5rem;
    }

    .section-content {
        margin-top: 1rem;
    }

    .section-header {
        text-align: left;
    }

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

    .salary-grid {
        grid-template-columns: 1fr;
    }

    .skills-input-group {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .extract-btn {
        align-self: stretch;
    }

    .skills-legend {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* Inverted Date Picker Calendar Indicator for Dark Theme */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) !important;
    cursor: pointer !important;
    opacity: 0.8 !important;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: "Inter", sans-serif;
}

.alert-success {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.alert-danger {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
    border-left: 4px solid #DC2626;
}

.alert-warning {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border-left: 4px solid var(--accent-yellow);
}

.alert-info {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Info grid for displaying current information */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    color: var(--gray-900);
    font-size: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
}

.current-info-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
}

.current-resume {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0;
}

/* Upload and progress styles */
.upload-section .modern-input[type="file"] {
    padding: 1rem;
    border: 2px dashed var(--gray-300);
    border-radius: 0.75rem;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.upload-section .modern-input[type="file"]:hover {
    border-color: var(--primary-blue);
    background: var(--blue-50);
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-message {
    transition: all 0.3s ease;
    opacity: 1;
}

.status-message.hide {
    opacity: 0;
}

.progress {
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    height: 8px;
    border-radius: 4px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.alert i {
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Card improvements */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Job Detail Button Style - matches jobpost details page */
.job-detail-btn {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.job-detail-btn.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Button size variants */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: 0.75rem;
}

/* Utility classes */




/* Form validation styling */
.is-invalid {
    border-color: #DC2626 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.invalid-feedback {
    color: #DC2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    color: var(--secondary-green);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Form help text */
.form-text {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Smooth animations and transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section {
    animation: fadeIn 0.5s ease-out;
}

.form-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.form-section:nth-child(even) {
    animation-delay: 0.2s;
}

.tool-card {
    animation: slideIn 0.4s ease-out;
}

.tool-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Focus and hover states */
.form-field:focus-within {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.section-header:hover .section-title {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

/* Success states */
.form-control.is-valid {
    border-color: var(--secondary-green);
    background: linear-gradient(135deg, var(--white), #F0FDF4);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Add to your existing CSS */
.table {
    --bs-table-hover-bg: rgba(0, 0, 0, 0.02);
}

.table td {
    vertical-align: middle;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

.btn-group .btn {
    padding: 0.25rem 0.5rem;
}

.btn-group .btn i {
    font-size: 0.875rem;
}

/* User Submissions Table Styling */
.table th {
    text-align: left !important;
    font-weight: 600;
    white-space: nowrap;
    min-width: 120px;
    padding: 0.8rem 1rem;
}

.table td {
    text-align: left !important;
    min-width: 120px;
    padding: 0.8rem 1rem;
}

/* Specific column widths for better spacing */
.table th:nth-child(1),
.table td:nth-child(1) {
    min-width: 100px;
}

/* Job ID */
.table th:nth-child(2),
.table td:nth-child(2) {
    min-width: 200px;
}

/* Job Title */
.table th:nth-child(3),
.table td:nth-child(3) {
    min-width: 150px;
}

/* Company */
.table th:nth-child(4),
.table td:nth-child(4) {
    min-width: 140px;
}

/* Applicant */
.table th:nth-child(5),
.table td:nth-child(5) {
    min-width: 180px;
}

/* Email */
.table th:nth-child(6),
.table td:nth-child(6) {
    min-width: 130px;
}

/* Phone */
.table th:nth-child(7),
.table td:nth-child(7) {
    min-width: 100px;
}

/* Notes */
.table th:nth-child(8),
.table td:nth-child(8) {
    min-width: 120px;
}

/* Status */
.table th:nth-child(9),
.table td:nth-child(9) {
    min-width: 120px;
}

/* Submitted */
.table th:nth-child(10),
.table td:nth-child(10) {
    min-width: 150px;
}

/* Actions */

/* Action Button Styling for User Submissions - Using Site Color Palette */
.table .btn-group .btn-outline-secondary {
    color: var(--gray-600);
    border-color: var(--gray-300);
    background-color: var(--white);
}

.table .btn-group .btn-outline-secondary:hover {
    color: var(--white);
    background-color: var(--gray-600);
    border-color: var(--gray-600);
}

.table .btn-group .btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background-color: var(--white);
}

.table .btn-group .btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Change info button to use accent yellow */
.table .btn-group .btn-outline-info {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    background-color: var(--white);
}

.table .btn-group .btn-outline-info:hover {
    color: var(--gray-900);
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Change danger button to use secondary green */
.table .btn-group .btn-outline-danger {
    color: var(--secondary-green);
    border-color: var(--secondary-green);
    background-color: var(--white);
}

.table .btn-group .btn-outline-danger:hover {
    color: var(--white);
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}

/* Add to your existing CSS */
.input-group-text {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border-right: none;
    border-color: var(--gray-300);
    color: var(--primary-blue);
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    background: linear-gradient(135deg, var(--primary-blue), #60A5FA);
    color: var(--white);
    border-color: var(--primary-blue);
}

.input-group .form-control {
    border-left: none;
    border-color: var(--gray-300);
}

.input-group .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control {
    border-color: var(--gray-300);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.card {
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 1.5rem;
}

/* Add to your existing CSS */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-container .badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border: none;
    border-radius: 0.5rem;
    margin: 0.125rem;
    transition: all 0.2s ease;
}

/* Tech skills - Blue background */
.skills-container .badge.skill-tech {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Design skills - Custom Yellow background */
.skills-container .badge.skill-design {
    background-color: #FDE68A;
    color: var(--gray-900);
}

/* Data skills - Green background */
.skills-container .badge.skill-data {
    background-color: var(--secondary-green);
    color: var(--white);
}

/* Default/other skills */
.skills-container .badge.skill-other {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.skills-container .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Smaller asterisks for primary skills */
.badge .fa-asterisk {
    font-size: 0.7em;
    margin-left: 0.05rem;
}

/* Split view layout */
.split-view-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1.25rem;
    height: calc(100vh - 7rem);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.job-listings-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--gray-100);
}

.job-details-panel {
    flex: 0 0 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.job-details-placeholder {
    padding: 2rem;
}

.job-details-content {
    padding: 2rem;
}

/* Active job card styling */
.job-card.active {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(34, 197, 94, 0.02));
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

/* Job card hover effect */
.job-card {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.job-card:hover {
    transform: translateY(-1px);
}

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

.job-card .btn,
.job-card a {
    pointer-events: auto;
}

/* Responsive design for split view */
@media (max-width: 1024px) {
    .split-view-container {
        flex-direction: column;
        height: auto;
    }

    .job-listings-panel {
        flex: none;
        padding-right: 0;
    }

    .job-details-panel {
        flex: none;
        position: relative;
        top: auto;
        max-height: 500px;
    }
}

.skills-container .badge.bg-light {
    background-color: #f8f9fa !important;
}

.skills-container .badge.bg-secondary {
    border: none;
}

/* For table cells */
td .skills-container {
    max-width: 300px;
    margin: -0.25rem 0;
}

td .skills-container .badge {
    white-space: nowrap;
}

/* Update dropdown styles */
.dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.dropdown-item {
    font-family: "Roboto", sans-serif;
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: all 0.3s ease;
    color: var(--gray-700);
}

.dropdown-item:hover {
    background-color: var(--accent-yellow);
    color: var(--gray-800);
}

/* Fix navbar toggle for mobile */
.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Deadline highlighting */
.deadline-highlight {
    background: linear-gradient(135deg, var(--accent-yellow), #FDE047);
    color: var(--gray-900);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.recruitment-fee {
    color: var(--secondary-green);
    font-weight: 600;
}

/* Enhanced job card styling */
.job-title {
    color: var(--gray-900);
    font-weight: 700;
    font-size: 1.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.job-title:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.company-name {
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.company-name:hover {
    color: var(--gray-900);
    text-decoration: underline;
}

/* Deadline highlighting */
.deadline-highlight {
    background: linear-gradient(135deg, var(--accent-yellow), #FDE047);
    color: var(--gray-900);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.recruitment-fee {
    color: var(--secondary-green);
    font-weight: 600;
}

/* Salary highlighting */
.salary-highlight {
    background-color: #FDE68A;
    color: var(--gray-900);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-block;
}

/* Add these styles at the end */
.content-section {
    border-radius: 8px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
    color: var(--gray-900);
    font-weight: 600;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

/* Add to your existing button styles */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-group .btn:disabled {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

/* Pagination styling */
.pagination .page-link {
    color: var(--gray-600);
    background-color: var(--white);
    border-color: var(--gray-300);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Add styles for mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .navbar-nav {
        padding-top: 0.5rem;
    }
}

/* Update navbar styles */
.navbar .d-flex .nav-link {
    padding: 0.5rem 0 0.5rem 1rem !important;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar .d-flex {
        flex-grow: 1;
    }

    .navbar-toggler {
        margin-left: 1rem;
    }
}

.btn {
    display: inline-block;
    /* ensures they behave as buttons, not blocks */
    padding: 8px 25px;
    border-radius: 5px;
    /* Avoid asymmetric unless needed */
    transition: all 0.3s ease;
}

.form-group.mt-3 {
    display: flex;
    gap: 10px;
    /* space between Post and Cancel buttons */
}

.status-badge-uniform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Detailed Job Panel Styles */
.job-details-content {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--gray-100);
}

.job-details-content::-webkit-scrollbar {
    width: 6px;
}

.job-details-content::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.job-details-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.job-details-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

.job-description-content,
.requirements-content,
.benefits-content {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    font-size: 0.95rem;
    line-height: 1.6;
}

.job-description-content p,
.requirements-content p,
.benefits-content p {
    margin-bottom: 0.75rem;
}

.job-description-content ul,
.requirements-content ul,
.benefits-content ul {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
}

.job-description-content li,
.requirements-content li,
.benefits-content li {
    margin-bottom: 0.4rem;
}

.skills-container .badge {
    transition: all 0.2s ease;
}

.skills-container .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.primary-skills-container .badge {
    background: var(--primary-blue) !important;
    color: white !important;
}

.text-sm {
    font-size: 0.875rem;
}

#job-details-panel h6 {
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

#job-details-panel .border-bottom {
    border-color: var(--gray-200) !important;
}

#job-details-panel .border-top {
    border-color: var(--gray-200) !important;
}

/* Search keyword highlighting */
.search-highlight {
    background-color: var(--accent-yellow);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
}

/* Dropdown button styling for logout */
.dropdown-item.logout-btn {
    background-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
    border-radius: 8px !important;
    margin: 4px 8px !important;
    padding: 8px 16px !important;
    border: none !important;
    width: calc(100% - 16px) !important;
    text-align: left !important;
}

.dropdown-item.logout-btn:hover {
    background-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
    transform: translateY(-1px);
}

/* Action Button Colors - Submissions Table */
/* Delete Application - Yellow */
.btn-outline-danger[title*="Delete Application"],
button[title*="Delete Application"],
.btn-outline-danger:has(.fa-trash) {
    color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
}

.btn-outline-danger[title*="Delete Application"]:hover,
button[title*="Delete Application"]:hover,
.btn-outline-danger:has(.fa-trash):hover {
    background-color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
}

/* Edit Application - Green */
.btn-outline-info[title*="Edit Application"],
a[title*="Edit Application"],
.btn-outline-info:has(.fa-edit) {
    color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
}

.btn-outline-info[title*="Edit Application"]:hover,
a[title*="Edit Application"]:hover,
.btn-outline-info:has(.fa-edit):hover {
    background-color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
    color: white !important;
}

/* View Job - Blue */
.btn-outline-primary[title*="View Job"],
a[title*="View Job"],
.btn-outline-primary:has(.fa-briefcase) {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
}

.btn-outline-primary[title*="View Job"]:hover,
a[title*="View Job"]:hover,
.btn-outline-primary:has(.fa-briefcase):hover {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

/* View Resume - Dark Grey */
.btn-outline-secondary[title*="View Resume"],
a[title*="View Resume"],
.btn-outline-secondary:has(.fa-file-pdf) {
    color: var(--gray-700) !important;
    border-color: var(--gray-700) !important;
}

.btn-outline-secondary[title*="View Resume"]:hover,
a[title*="View Resume"]:hover,
.btn-outline-secondary:has(.fa-file-pdf):hover {
    background-color: var(--gray-700) !important;
    border-color: var(--gray-700) !important;
    color: white !important;
}

/* Bulk Resume Upload Icon Colors */
.btn-primary .fas.fa-upload {
    color: var(--primary-blue);
}

.btn-outline-primary .fas.fa-sync-alt {
    color: var(--primary-blue);
}

.btn-primary .fas.fa-play {
    color: white;
}

.btn-danger .fas.fa-trash {
    color: white;
}

.nav-tabs .nav-link .fas.fa-file-archive,
.nav-tabs .nav-link .fas.fa-file {
    color: var(--primary-blue);
}

.nav-tabs .nav-link.active .fas.fa-file-archive,
.nav-tabs .nav-link.active .fas.fa-file {
    color: var(--accent-yellow);
}

/* Status badges with our color palette */
.badge.bg-warning {
    background-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
}

.badge.bg-info {
    background-color: var(--primary-blue) !important;
}

.badge.bg-success {
    background-color: var(--secondary-green) !important;
}

/* Bulk Resume Upload - Clear All Button */
#clearQueueBtn.btn-danger,
.btn-danger:has(.fa-trash) {
    background-color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
}

#clearQueueBtn.btn-danger:hover,
.btn-danger:has(.fa-trash):hover {
    background-color: #F59E0B !important;
    /* Slightly darker yellow */
    border-color: #F59E0B !important;
    color: var(--gray-800) !important;
}

/* Admin Jobs Action Buttons */
/* View Job - Blue (already using btn-outline-primary) */

/* View Applicants - Green */
.btn-outline-success[title*="View Applicants"],
a.btn-outline-success[title*="View Applicants"] {
    color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
}

.btn-outline-success[title*="View Applicants"]:hover,
a.btn-outline-success[title*="View Applicants"]:hover {
    background-color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
    color: white !important;
}

/* Edit Job - Grey (already using btn-outline-secondary) */

/* Delete Job - Yellow */
.btn-outline-warning[title*="Delete Job"],
a.btn-outline-warning[title*="Delete Job"] {
    color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
}

.btn-outline-warning[title*="Delete Job"]:hover,
a.btn-outline-warning[title*="Delete Job"]:hover {
    background-color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
    color: var(--gray-800) !important;
}

/* Admin Jobs Filter Button Sizing */
.admin-jobs-filter-buttons .btn {
    height: 50px;
    /* Match form-select height */
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.375rem;
}



/* ===== Actions column palette (Blue, Green, Grey, Yellow) ===== */
:root {
    --brand-blue: #3B82F6;
    --brand-green: #22C55E;
    --brand-yellow: #FACC15;
    --brand-gray: #E5E7EB;
    --brand-gray-700: #374151;
    --white: #ffffff;
}

.btn {
    border: 1px solid transparent;
}

.table .btn-group .btn-outline-primary {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background: transparent;
}

.table .btn-group .btn-outline-primary:hover {
    color: var(--white);
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

.table .btn-group .btn-outline-success {
    color: var(--brand-green);
    border-color: var(--brand-green);
    background: transparent;
}

.table .btn-group .btn-outline-success:hover {
    color: var(--white);
    background: var(--brand-green);
    border-color: var(--brand-green);
}

.table .btn-group .btn-outline-secondary {
    color: var(--brand-gray-700);
    border-color: var(--brand-gray);
    background: transparent;
}

.table .btn-group .btn-outline-secondary:hover {
    color: var(--brand-gray-700);
    background: var(--brand-gray);
    border-color: var(--brand-gray);
}

.table .btn-group .btn-outline-warning {
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    background: transparent;
}

.table .btn-group .btn-outline-warning:hover {
    color: #111827;
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
}


/* ===== Migrated landing styles ===== */
:root {
    /* Color Palette - SkyBlue Theme */
    --primary-blue: #3B82F6;
    /* Sky Blue */
    --secondary-green: #22C55E;
    /* Fresh Green */
    --accent-yellow: #FACC15;
    /* Warm Yellow */
    --neutral-gray: #E5E7EB;
    /* Warm Gray */

    /* Extended Color System */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Blue Variations */
    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-500: var(--primary-blue);
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;

    /* Green Variations */
    --green-50: #F0FDF4;
    --green-100: #DCFCE7;
    --green-500: var(--secondary-green);
    --green-600: #16A34A;

    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* Border Radius */
    --radius-sm: 0.125rem;
    /* 2px */
    --radius: 0.25rem;
    /* 4px */
    --radius-md: 0.375rem;
    /* 6px */
    --radius-lg: 0.5rem;
    /* 8px */
    --radius-xl: 0.75rem;
    /* 12px */
    --radius-2xl: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Shadows */
    --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);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* removed universal font override to avoid breaking icon fonts */

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

input {
    font: inherit;
    border: none;
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Header */
.header {
    position: relative;
    background: var(--white);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo-icon {
    background: var(--primary-blue);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.logo-container:hover .logo-icon {
    background: var(--secondary-green);
}

.logo-info {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    line-height: 1.2;
}

.tagline {
    font-size: var(--text-xs);
    color: var(--gray-500);
    line-height: 1.2;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.header-btn-primary:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
}

.header-btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: var(--space-3) var(--space-6);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.header-btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: var(--space-16) 0 var(--space-20) 0;
    background-color: var(--white);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-4);
}

/* Candidate Score Section */
.candidate-score-section {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.score-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: var(--space-6);
}

.score-bars {
    margin-bottom: var(--space-8);
}

.score-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    position: relative;
}

.score-bar:last-child {
    margin-bottom: 0;
}

.score-icon {
    width: 32px;
    height: 32px;
    background: var(--secondary-green);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    flex-shrink: 0;
    color: var(--white);
}

.score-progress {
    flex: 1;
    height: 12px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--secondary-green);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.score-status {
    background: var(--secondary-green);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.score-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: var(--space-3);
}

.feature-text {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-800);
    line-height: 1.3;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-green);
    color: var(--white);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-green);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: var(--space-4) var(--space-8);
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--blue-600);
    border-color: var(--blue-600);
    color: var(--white);
    transform: translateY(-2px);
}



/* Services Section */
.services {
    padding: var(--space-20) 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card.zigzag-left {
    transform: translateY(-var(--space-8));
}

.service-card.zigzag-right {
    transform: translateY(var(--space-8));
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-card.employers.zigzag-left:hover {
    transform: translateY(calc(-var(--space-8) - 5px)) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-card.recruiters.zigzag-right:hover {
    transform: translateY(calc(var(--space-8) - 5px)) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-card.staffing:hover,
.service-card.candidates:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: none;
}

.service-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--black);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.service-card.employers .service-title {
    color: var(--black);
}

.service-card.staffing .service-title {
    color: var(--secondary-green);
}

.service-card.recruiters .service-title {
    color: var(--black);
}

.service-card.candidates .service-title {
    color: var(--primary-blue);
}

.service-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.service-features li {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: var(--space-3);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.service-features li:last-child {
    margin-bottom: 0;
}

.service-btn {
    background: var(--secondary-green);
    color: var(--white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
}

.service-btn:hover {
    background: var(--green-600);
    transform: translateY(-2px);
}

.service-card.recruiters .service-btn,
.service-card.candidates .service-btn {
    background: var(--primary-blue);
}

.service-card.recruiters .service-btn:hover,
.service-card.candidates .service-btn:hover {
    background: var(--blue-600);
}

/* How It Works Section */
.how-it-works {
    padding: var(--space-20) 0;
    background: var(--white);
}

.how-it-works-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-12);
    line-height: 1.2;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin: 0 auto var(--space-4) auto;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all var(--transition-normal);
}

.process-step:nth-child(2) .step-number {
    background: var(--secondary-green);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.process-step:nth-child(3) .step-number {
    background: var(--accent-yellow);
    color: var(--gray-900);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

.process-step:nth-child(4) .step-number {
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.process-step:nth-child(5) .step-number {
    background: var(--secondary-green);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.process-step:hover .step-number {
    transform: scale(1.1);
}

.process-step p {
    font-size: var(--text-base);
    color: var(--gray-700);
    font-weight: var(--font-medium);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: var(--space-20) 0;
    background: var(--gray-900);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-8);
    line-height: 1.2;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.cta-buttons .btn-secondary {
    background: var(--secondary-green);
    color: var(--white);
    border: 2px solid var(--secondary-green);
}

.cta-buttons .btn-secondary:hover {
    background: var(--green-600);
    border-color: var(--green-600);
}

.btn-primary-blue {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-primary-blue:hover {
    background: var(--blue-600);
    transform: translateY(-2px);
}

.cta-buttons .btn-primary:hover {
    background: var(--blue-600);
}



/* Footer */
.footer {
    background-color: var(--neutral-gray);
    color: var(--gray-700);
}

.footer-top {
    padding: var(--space-16) 0 var(--space-12) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
    align-items: start;
}

/* Footer Brand */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gray-900);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}



.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    box-shadow: 0 0 20px rgba(240, 148, 51, 0.3);
}

.social-link.facebook {
    background: #1877F2;
    color: var(--white);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.3);
}

.social-link.x-twitter {
    background: #000000;
    color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Footer Sections */
.footer-section-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-5);
    position: relative;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-green));
    border-radius: var(--radius-full);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--gray-600);
    transition: all var(--transition-fast);
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-blue);
    transition: width var(--transition-normal);
}

.footer-link:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 100%;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-green));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-address {
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-style: normal;
    line-height: 1.5;
}

/* Footer Bottom */
.footer-bottom {
    background-color: transparent;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-300);
}

.copyright {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* Responsive Design */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .candidate-score-section {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.zigzag-left,
    .service-card.zigzag-right {
        transform: none;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .process-steps::before {
        display: none;
    }

    .cta-title {
        font-size: var(--text-3xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .header-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .header-content {
        padding: var(--space-3) 0;
    }

    .header-buttons {
        flex-direction: column;
        gap: var(--space-2);
    }

    .header-btn-primary,
    .header-btn-secondary {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
    }

    .logo-container {
        gap: var(--space-3);
    }

    .logo-text {
        font-size: var(--text-xl);
    }

    .tagline {
        font-size: var(--text-xs);
    }

    .hero {
        padding: var(--space-12) 0 var(--space-16) 0;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .hero-buttons {
        justify-content: center;
    }

    .candidate-score-section {
        padding: var(--space-6);
    }

    .score-features {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
        justify-content: center;
    }

    .services {
        padding: var(--space-16) 0;
    }

    .service-card {
        padding: var(--space-6);
    }

    .service-title {
        font-size: var(--text-xl);
    }

    .service-subtitle {
        font-size: var(--text-base);
    }

    .how-it-works {
        padding: var(--space-16) 0;
    }

    .how-it-works-title {
        font-size: var(--text-2xl);
    }

    .cta-section {
        padding: var(--space-16) 0;
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: left;
    }

    .footer-brand {
        max-width: none;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .candidate-score-section {
        padding: var(--space-4);
    }

    .service-card {
        padding: var(--space-4);
    }

    .service-title {
        font-size: var(--text-lg);
    }

    .how-it-works-title {
        font-size: var(--text-xl);
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: var(--text-lg);
    }

    .cta-title {
        font-size: var(--text-xl);
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .logo-text {
        font-size: var(--text-lg);
    }

    .footer-top {
        padding: var(--space-12) 0 var(--space-8) 0;
    }

    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-2);
    }

    .contact-details {
        align-items: center;
    }
}



/* ===== Landing fixes: prevent jump & keep no lift on Staffing/Candidates ===== */
.service-card.staffing.zigzag-left,
.service-card.staffing.zigzag-right,
.service-card.candidates.zigzag-left,
.service-card.candidates.zigzag-right {
    transform: none;
}

.service-card.staffing:hover,
.service-card.candidates:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: none;
}

/* ===== Dropdown Arrow Indicators ===== */
/* Add visual down arrow to all select/dropdown fields */
select.form-control,
.select2-container .select2-selection--single {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Ensure Select2 dropdowns also show the arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-container .select2-selection--single {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS & APPLICATION SHELL STYLES
═══════════════════════════════════════════════════ */
:root {
    --bg: #08090d;
    --bg-card: #111319;
    --bg-raised: #171a22;
    --bg-hover: #1d212b;
    --border: #22262f;
    --border-hi: #343945;
    --text: #f5f6f8;
    --text-dim: #8b909c;
    --text-faint: #5b6070;
    --accent: #5b7cff;
    --accent-2: #b565ff;
    --accent-soft: rgba(91, 124, 255, 0.14);
    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --sidebar-w: 248px;
    --sidebar-w-collapsed: 76px;
    --topbar-h: 65px;
    color-scheme: dark;
}

[data-theme="dark"] {
    --bg: #08090d;
    --bg-card: #111319;
    --bg-raised: #171a22;
    --bg-hover: #1d212b;
    --border: #22262f;
    --border-hi: #343945;
    --text: #f5f6f8;
    --text-dim: #8b909c;
    --text-faint: #5b6070;
    --accent: #5b7cff;
    --accent-2: #b565ff;
    --accent-soft: rgba(91, 124, 255, 0.14);
    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
}

/* Skins */
[data-skin="emerald"] {
    --accent: #10b981;
    --accent-2: #14b8a6;
    --accent-soft: rgba(16, 185, 129, 0.10);
}

[data-theme="dark"][data-skin="emerald"] {
    --accent: #34d399;
    --accent-2: #2dd4bf;
    --accent-soft: rgba(52, 211, 153, 0.14);
}

[data-skin="amber"] {
    --accent: #f59e0b;
    --accent-2: #f43f5e;
    --accent-soft: rgba(245, 158, 11, 0.10);
}

[data-theme="dark"][data-skin="amber"] {
    --accent: #fbbf24;
    --accent-2: #fb7185;
    --accent-soft: rgba(251, 191, 36, 0.14);
}

[data-skin="rose"] {
    --accent: #f43f5e;
    --accent-2: #a855f7;
    --accent-soft: rgba(244, 63, 94, 0.10);
}

[data-theme="dark"][data-skin="rose"] {
    --accent: #fb7185;
    --accent-2: #c084fc;
    --accent-soft: rgba(251, 113, 133, 0.14);
}

/* Bootstrap Integration & Overrides */
.card,
.modal-content,
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
    background-color: var(--bg-raised) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.form-control,
.form-select {
    background-color: var(--bg-raised) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-raised) !important;
    border-color: var(--accent) !important;
    color: var(--text) !important;
    box-shadow: 0 0 0 0.2rem var(--accent-soft) !important;
}

.table {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.table td,
.table th {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.bg-light {
    background-color: var(--bg-raised) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

.text-muted,
.text-secondary {
    color: var(--text-dim) !important;
}

.text-dark {
    color: var(--text) !important;
}


/* ═══════════════════════════════════════════════════
   BASE LAYOUT STYLES
═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
           DESIGN TOKENS — Dark mode (default)
        ═══════════════════════════════════════════════════ */
:root {
    --bg: #08090d;
    --bg-card: #111319;
    --bg-raised: #171a22;
    --bg-hover: #1d212b;
    --border: #22262f;
    --border-hi: #343945;
    --text: #f5f6f8;
    --text-dim: #8b909c;
    --text-faint: #5b6070;
    --accent: #5b7cff;
    --accent-2: #b565ff;
    --accent-soft: rgba(91, 124, 255, 0.14);
    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --sidebar-w: 248px;
    --sidebar-w-collapsed: 76px;
    --topbar-h: 65px;
    color-scheme: dark;
}

/* ─── Dark mode ─── */
[data-theme="dark"] {
    --bg: #08090d;
    --bg-card: #111319;
    --bg-raised: #171a22;
    --bg-hover: #1d212b;
    --border: #22262f;
    --border-hi: #343945;
    --text: #f5f6f8;
    --text-dim: #8b909c;
    --text-faint: #5b6070;
    --accent: #5b7cff;
    --accent-2: #b565ff;
    --accent-soft: rgba(91, 124, 255, 0.14);
    --success: #22c55e;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
}

/* ─── Skin: Emerald ─── */
[data-skin="emerald"] {
    --accent: #10b981;
    --accent-2: #14b8a6;
    --accent-soft: rgba(16, 185, 129, 0.10);
}

[data-theme="dark"][data-skin="emerald"] {
    --accent: #34d399;
    --accent-2: #2dd4bf;
    --accent-soft: rgba(52, 211, 153, 0.14);
}

/* ─── Skin: Amber ─── */
[data-skin="amber"] {
    --accent: #f59e0b;
    --accent-2: #f43f5e;
    --accent-soft: rgba(245, 158, 11, 0.10);
}

[data-theme="dark"][data-skin="amber"] {
    --accent: #fbbf24;
    --accent-2: #fb7185;
    --accent-soft: rgba(251, 191, 36, 0.14);
}

/* ─── Skin: Rose ─── */
[data-skin="rose"] {
    --accent: #f43f5e;
    --accent-2: #a855f7;
    --accent-soft: rgba(244, 63, 94, 0.10);
}

[data-theme="dark"][data-skin="rose"] {
    --accent: #fb7185;
    --accent-2: #c084fc;
    --accent-soft: rgba(251, 113, 133, 0.14);
}

/* ─── Bootstrap Integration & Overrides ─── */
.card,
.modal-content,
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.card-header,
.card-footer,
.modal-header,
.modal-footer {
    background-color: var(--bg-raised) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.form-control,
.form-select {
    background-color: var(--bg-raised) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-raised) !important;
    border-color: var(--accent) !important;
    color: var(--text) !important;
    box-shadow: 0 0 0 0.2rem var(--accent-soft) !important;
}

.table {
    color: var(--text) !important;
    border-color: var(--border) !important;
}

.table td,
.table th {
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.bg-light {
    background-color: var(--bg-raised) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

.text-muted,
.text-secondary {
    color: var(--text-dim) !important;
}

.text-dark {
    color: var(--text) !important;
}

/* ═══════════════════════════════════════════════════
           RESET & BASE
        ═══════════════════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 100%;
    overflow: hidden;
}

/* ─── Scrollbars ─── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hi);
    border-radius: 99px;
}

/* ─── Utility surfaces ─── */
.surface {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.gradient-bg {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════
           APP SHELL: full-height flex layout
        ═══════════════════════════════════════════════════ */
#app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════
           SIDEBAR
        ═══════════════════════════════════════════════════ */
#sidebar {
    position: relative;
    flex-shrink: 0;
    width: var(--sidebar-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    transition: width 0.28s cubic-bezier(.4, 0, .2, 1);
    z-index: 50;
    overflow: hidden;
}

#sidebar.collapsed {
    width: var(--sidebar-w-collapsed);
}

/* Mobile: slide in from left */
@media (max-width: 1023px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(.4, 0, .2, 1), width 0.28s cubic-bezier(.4, 0, .2, 1);
    }

    #sidebar.mobile-open {
        transform: translateX(0);
    }

    #sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }

    #sidebar.mobile-open~#sidebar-overlay,
    #sidebar-overlay.visible {
        display: block;
    }
}

@media (min-width: 1024px) {
    #sidebar-overlay {
        display: none !important;
    }
}

/* Sidebar header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    overflow: hidden;
}

.site-logo {
    object-fit: contain;
    flex-shrink: 0;
}

.site-logo.logo-full {
    display: block;
    height: 30px;
    width: auto;
    max-width: 150px;
    transition: filter 0.3s ease, opacity 0.2s;
}

/* Collapsed sidebar mark — avoid .logo-icon (used elsewhere as a blue placeholder) */
.site-logo.logo-collapsed {
    display: none;
    height: 28px;
    width: 28px;
    flex-shrink: 0;
    object-fit: contain;
    background: none;
    border-radius: 0;
}

[data-theme="dark"] .site-logo.logo-full {
    filter: brightness(0) invert(1);
}

/* Collapsed sidebar: show icon only, hide full logo */
#sidebar.collapsed .sidebar-logo {
    justify-content: center;
    gap: 0;
}

#sidebar.collapsed .site-logo.logo-full {
    display: none !important;
}

#sidebar.collapsed .site-logo.logo-collapsed {
    display: block !important;
}

.sidebar-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s, width 0.2s;
}

#sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
}

/* Role badge */
.sidebar-role-badge {
    margin: 0 12px 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--accent-soft);
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.2s;
}

#sidebar.collapsed .sidebar-role-badge {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}

.sidebar-role-label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.sidebar-role-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

/* Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 10px;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.nav-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    padding: 16px 12px 6px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s;
}

#sidebar.collapsed .nav-group-label {
    opacity: 0;
    height: 0;
    padding: 0;
}

.nav-group+.nav-group {
    margin-top: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    position: relative;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text);
    transform: translateX(2px);
}

.nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item-label {
    flex: 1;
    overflow: hidden;
    transition: opacity 0.2s, width 0.2s;
}

#sidebar.collapsed .nav-item-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

#sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 9px;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 8px 10px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-footer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.15s, color 0.15s;
    text-align: left;
    margin-bottom: 2px;
}

.sidebar-footer-btn:hover {
    background: var(--bg-hover) !important;
    color: var(--text);
}

.sidebar-footer-btn.active {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-weight: 600;
}

.sidebar-footer-btn svg {
    flex-shrink: 0;
}

.sidebar-footer-btn-label {
    transition: opacity 0.2s, width 0.2s;
}

#sidebar.collapsed .sidebar-footer-btn-label {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

#sidebar.collapsed .sidebar-footer-btn {
    justify-content: center;
    padding: 9px;
}

#sidebar-close-mobile {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    padding: 6px;
    border-radius: 8px;
}

#sidebar-close-mobile:hover {
    background: var(--bg-hover);
}

@media (max-width: 1023px) {
    #sidebar-close-mobile {
        display: flex;
        align-items: center;
    }
}

/* ═══════════════════════════════════════════════════
           MAIN COLUMN
        ═══════════════════════════════════════════════════ */
#main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ─── Topbar ─── */
#topbar {
    height: var(--topbar-h);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Mobile menu button */
#topbar-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    flex-shrink: 0;
}

#topbar-menu-btn:hover {
    background: var(--bg-hover);
}

@media (max-width: 1023px) {
    #topbar-menu-btn {
        display: flex;
    }
}

/* Search bar (desktop only) */
.topbar-search {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 7px 14px;
}

@media (min-width: 1280px) {
    .topbar-search {
        display: flex;
    }
}

.topbar-search input {
    width: 160px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    color: var(--text);
}

.topbar-search input::placeholder {
    color: var(--text-faint);
}

/* Topbar icon button (shared) */
.tb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: relative;
    flex-shrink: 0;
}

.tb-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Theme toggle */
#theme-toggle {
    width: 60px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-hover);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: background 0.25s;
    flex-shrink: 0;
}

[data-theme="dark"] #theme-toggle {
    background: var(--bg-raised);
}

.toggle-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.28s cubic-bezier(.4, 0, .2, 1), margin-left 0.28s cubic-bezier(.4, 0, .2, 1);
    margin-left: 0;
}

[data-theme="dark"] .toggle-thumb {
    margin-left: auto;
    transform: translateX(0);
}

/* Skin picker dropdown */
#skin-picker {
    position: relative;
}

#skin-picker-btn {
    display: none;
}

@media (min-width: 640px) {
    #skin-picker-btn {
        display: flex;
    }
}

#skin-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    border-radius: 12px;
    padding: 8px;
    z-index: 200;
}

#skin-picker-dropdown.open {
    display: block;
}

.skin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.skin-option:hover {
    background: var(--bg-hover);
}

.skin-swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skin-label-text {
    flex: 1;
}

.skin-check {
    display: none;
    margin-left: auto;
}

.skin-option.selected .skin-check {
    display: block;
}

/* User avatar */
.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}

#user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    border-radius: 12px;
    padding: 6px;
    z-index: 200;
}

#user-menu-dropdown.open {
    display: block;
}

.user-menu-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-dim);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.user-menu-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

#user-menu-wrapper {
    position: relative;
}

/* ─── Main content ─── */
#main-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

@media (max-width: 768px) {
    #main-content {
        padding: 16px;
    }
}

/* ═══════════════════════════════════════════════════
           TOAST NOTIFICATIONS
        ═══════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    min-width: 280px;
}

@media (max-width: 768px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: unset;
    }
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--card-shadow);
    animation: toastIn 0.35s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    border: 1px solid transparent;
}

.toast.fade-out {
    animation: toastOut 0.3s ease-in forwards;
}

.toast-success {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-color: #bfdbfe;
}

.toast-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-color: #bfdbfe;
}

.toast-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
    border-color: #fecaca;
}

.toast-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #92400e;
    border-color: #fcd34d;
}

[data-theme="dark"] .toast-success {
    background: rgba(30, 58, 138, 0.25);
    color: #93c5fd;
    border-color: #1e3a8a;
}

[data-theme="dark"] .toast-info {
    background: rgba(30, 58, 138, 0.25);
    color: #93c5fd;
    border-color: #1e3a8a;
}

[data-theme="dark"] .toast-error {
    background: rgba(127, 29, 29, 0.25);
    color: #fca5a5;
    border-color: #7f1d1d;
}

[data-theme="dark"] .toast-warning {
    background: rgba(120, 53, 15, 0.25);
    color: #fcd34d;
    border-color: #92400e;
}

.toast-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.toast-msg {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    padding: 2px;
    border-radius: 4px;
    line-height: 1;
    transition: opacity 0.15s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastIn {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(60px);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════
           ANIMATIONS (shared utilities)
        ═══════════════════════════════════════════════════ */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--accent-soft);
    }

    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.glow-pulse {
    animation: glow-pulse 2.4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.shimmer {
    background-image: linear-gradient(90deg, var(--bg-raised) 25%, var(--bg-hover) 50%, var(--bg-raised) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.float {
    animation: float 4s ease-in-out infinite;
}

.float-delay {
    animation: float 4s ease-in-out 1.2s infinite;
}

.float-delay2 {
    animation: float 5s ease-in-out 2.1s infinite;
}

/* ═══════════════════════════════════════════════════
           LEGACY COMPATIBILITY
           Keep Bootstrap error class selectors working for
           form-level validation helpers already in use.
        ═══════════════════════════════════════════════════ */
.is-invalid {
    border-color: var(--danger) !important;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.errorlist {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    color: var(--danger);
    font-size: 0.8125rem;
}

.field-error-message {
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 4px;
    font-weight: 500;
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_list.html ─── */
.split-view-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 1.25rem;
    height: calc(100vh - 7rem);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.job-listings-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-y: auto;
    min-width: 0;
}

.job-details-panel {
    width: 100%;
    height: 100%;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .split-view-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .job-details-panel {
        display: none !important;
    }
}

/* Filter Card */
.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.filter-input {
    background: var(--bg-raised) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
}

.filter-input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.input-group-text {
    background: var(--bg-raised) !important;
    border: 1px solid var(--border) !important;
    border-right: none !important;
    color: var(--text-faint) !important;
    border-radius: 12px 0 0 12px !important;
}

.input-group .filter-input {
    border-radius: 0 12px 12px 0 !important;
}

.form-select {
    background-color: var(--bg-raised) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    padding: 0.625rem 2.25rem 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
}

.btn-filter-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-filter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-soft);
}

.btn-filter-clear {
    background: var(--bg-raised);
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-filter-clear:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Job Card Styling */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hi);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.12);
}

.job-card.active {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent) !important;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.company-name {
    color: var(--text);
    font-size: 0.95rem;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: var(--text-dim);
    background: var(--bg-raised);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skill-badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.match-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.match-excellent {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.match-great {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.match-good {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.match-average {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.match-poor {
    background: rgba(107, 114, 128, 0.15);
    color: var(--text-faint);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: transform 0.15s ease;
}

.action-btn-primary:hover {
    transform: translateY(-1px);
}


/* ─── Styles from job_listings/templates/job_listings/manage_jobposts.html ─── */
/* Full width and properly fitted layout for manage job posts table */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 95% !important;
    width: 95% !important;
}

.form-header {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.search-filter-bar {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
}

.table {
    width: 100% !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
    background-color: var(--bg-raised);
    font-size: 0.95rem;
}

.table tbody td {
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background-color: var(--bg-raised);
}

/* Button group sizing */
.btn-group .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_preview.html ─── */
/* Local palette aliases — no conflicting :root overrides */
.jp-preview {
    --primary-blue: var(--accent);
    --success-green: var(--success);
    --warning-yellow: #FACC15;
    --danger-red: var(--danger);
    --gray-50: var(--bg-raised);
    --gray-100: var(--bg-raised);
    --gray-200: var(--border);
    --gray-600: var(--text-faint);
    --gray-700: var(--text-dim);
    --gray-900: var(--text);
}

main.container {
    max-width: 1400px !important;
    padding: 2rem 1rem !important;
    margin: 0 auto !important;
}

.job-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.job-main-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.job-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}


.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    min-width: 0;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item i {
    color: var(--text-faint);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.sidebar-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.job-header {
    padding: 2rem 2rem 0.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.job-header-content {
    flex: 1;
}

.job-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.job-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-faint);
}

.section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-raised);
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0.375rem 0.5rem 0;
}

@media (max-width: 1024px) {
    .job-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .job-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .job-header {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }
}


/* ─── Styles from job_listings/templates/job_listings/job_application_form.html ─── */
main.container {
    max-width: 1200px !important;
    padding: 2rem 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    max-width: 900px !important;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    background: var(--bg-card);
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-faint);
    margin: 0;
    font-weight: 700;
}

.form-section {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 2rem;
}

.form-section:last-of-type {
    border-bottom: none;
}

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

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin: 0;
}

.field-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-row:last-child {
    margin-bottom: 0;
}

.field-group {
    flex: 1;
    min-width: 0;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}

.field-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-hi);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--text);
    transition: all 0.2s;
    background: var(--bg-card);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-group textarea {
    min-height: 100px;
    resize: vertical;
}

.field-help-text {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-top: 0.375rem;
}

.field-group label {
    display: block !important;
}

/* Style crispy forms errors */
.field-group .invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Inline validation error styling */
.field-error {
    display: none;
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.field-error.show {
    display: block;
}

.field-group.error input,
.field-group.error select,
.field-group.error textarea {
    border-color: var(--danger);
}

.field-group.error input:focus,
.field-group.error select:focus,
.field-group.error textarea:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-actions {
    padding: 1.5rem 2rem;
    background: var(--bg-raised);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-submit {
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-cancel {
    padding: 0.875rem 2rem;
    background: var(--bg-card);
    color: var(--text-faint);
    border: 2px solid var(--border-hi);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: var(--bg-raised);
    border-color: var(--text-faint);
    color: var(--text-faint);
}

@media (max-width: 768px) {
    .field-row {
        flex-direction: column;
    }

    .form-actions {
        justify-content: stretch;
    }

    .btn-submit,
    .btn-cancel {
        flex: 1;
    }
}

/* Tool card styling */
.tool-card {
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tool-card .card-header {
    background: var(--bg-raised);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.tool-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.tool-card .card-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin: 0;
}

.tool-card .card-body {
    padding: 2rem;
}

.main-form-card {
    max-width: 900px;
    margin: 0 auto;
}

/* Search input styling */
.modern-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-hi);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--text);
    transition: all 0.2s;
}

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

.modern-textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-hi);
    border-radius: 6px;
    font-size: 0.9375rem;
    color: var(--text);
    transition: all 0.2s;
    resize: vertical;
}

.modern-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn.palette-action {
    transition: transform 0.13s cubic-bezier(.4, 0, .2, 1), box-shadow 0.13s cubic-bezier(.4, 0, .2, 1);
}

.btn.palette-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(60, 60, 60, 0.10);
}


/* ─── Styles from job_listings/templates/job_listings/resume_upload.html ─── */
/* ── Page-level overrides ── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* ── Dashboard wrapper ── */
.rd-wrapper {
    width: 100%;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* ── Page header ── */
.rd-page-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
    position: relative;
    width: 100%;
}

.rd-page-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.rd-page-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rd-page-icon i {
    color: #fff;
    font-size: 1.25rem;
}

.rd-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.15rem;
}

.rd-page-subtitle {
    font-size: 0.85rem;
    color: var(--text-faint);
    margin: 0;
}

.rd-btn-refresh {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.rd-btn-refresh:hover {
    background: var(--accent);
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    color: #fff;
}

@media (min-width: 768px) {
    .rd-btn-refresh {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .rd-btn-refresh:hover {
        transform: translateY(calc(-50% - 1px));
    }
}

/* ── Cards ── */
.rd-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.rd-card-header {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--bg-card);
}

.rd-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.rd-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin: 0.2rem 0 0;
}

.rd-card-body {
    padding: 1.5rem;
}

/* ── Upload card layout ── */
.rd-upload-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .rd-upload-grid {
        grid-template-columns: 1fr;
    }
}

.rd-section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.25rem;
}

.rd-section-hint {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0 0 0.85rem;
}

/* ── Drop zone ── */
.rd-dropzone {
    border: 2px dashed var(--border-hi);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--bg-raised);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 70px;
}

.rd-dropzone:hover,
.rd-dropzone.drag-over {
    border-color: var(--accent);
    background: var(--bg-raised);
}

.rd-dropzone input[type="file"] {
    display: none;
}

/* ── File preview chips ── */
.rd-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rd-file-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-raised);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.rd-file-chip-icon {
    width: 34px;
    height: 34px;
    background: var(--bg-raised);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
}

.rd-file-chip-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.rd-file-chip-size {
    font-size: 0.75rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.rd-file-chip-remove {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    line-height: 1;
    font-size: 1rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.rd-file-chip-remove:hover {
    color: var(--danger);
}

.rd-dropzone-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
    color: var(--text-faint);
    font-size: 0.83rem;
}

.rd-dropzone-files {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.rd-btn-choose {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.rd-btn-choose:hover {
    background: var(--bg-raised);
    border-color: var(--text-faint);
}

.rd-format-hint {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.4rem;
}



.rd-source-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rd-select-wrapper {
    position: relative;
    margin-bottom: 0;
    flex: 0 0 auto;
    width: 240px;
}

.rd-select-wrapper .rd-source-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 0.9rem;
    pointer-events: none;
}

.rd-select {
    width: 100%;
    padding: 0.6rem 2.25rem 0.6rem 2.25rem;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-card);
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.rd-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.rd-select-caret {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-faint);
    font-size: 0.8rem;
}

.rd-btn-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
    min-width: 240px;
    letter-spacing: 0.02em;
}

.rd-btn-upload:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}

.rd-btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

/* ── Warnings ── */
.rd-warning {
    display: none;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--bg-raised);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    color: var(--warning);
    margin-bottom: 0.5rem;
}

/* ── Progress bar section ── */
.rd-progress-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    padding: 1.1rem 1.5rem;
    margin-top: 1rem;
    display: none;
}

.rd-progress-card.active {
    display: block;
}

.rd-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.rd-progress-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.rd-progress-stats {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-faint);
}

.rd-progress-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.rd-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--success));
    border-radius: 99px;
    transition: width 0.5s ease;
    width: 0%;
}

.rd-progress-sub {
    font-size: 0.78rem;
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Stat cards ── */
.rd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .rd-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .rd-stats-grid {
        grid-template-columns: 1fr;
    }
}

.rd-stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.rd-stat-icon.blue {
    background: var(--bg-raised);
    color: var(--accent);
}

.rd-stat-icon.green {
    background: var(--bg-raised);
    color: var(--success);
}

.rd-stat-icon.yellow {
    background: var(--bg-raised);
    color: var(--warning);
}

.rd-stat-icon.red {
    background: var(--bg-raised);
    color: var(--danger);
}

.rd-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.rd-stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.15rem;
}

.rd-stat-hint {
    font-size: 0.72rem;
    color: var(--text-faint);
}

/* ── Bottom two-col ── */
.rd-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .rd-bottom-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Table ── */
.rd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.rd-table th {
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-faint);
    padding: 0 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

.rd-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--bg-raised);
    color: var(--text);
    vertical-align: middle;
}

.rd-table tr:last-child td {
    border-bottom: none;
}

.rd-table tr:hover td {
    background: var(--bg-raised);
}

.rd-file-icon {
    color: var(--warning);
    margin-right: 0.4rem;
}

.rd-source-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
    background: rgba(139, 144, 156, 0.15);
    color: #a1a1aa;
    border: 1px solid rgba(139, 144, 156, 0.3);
}

.rd-progress-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.rd-progress-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.rd-progress-badge.pending {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.rd-progress-badge.partial {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ── Pagination ── */
.rd-pagination {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.rd-pagination a,
.rd-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--bg-card);
    transition: all 0.15s;
}

.rd-pagination a:hover {
    background: var(--bg-raised);
    border-color: var(--text-faint);
    color: var(--text);
}

.rd-pagination .active span {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.rd-pagination li {
    list-style: none;
    display: inline-flex;
}

/* ── Processing Queue donut ── */
.rd-queue-body {
    padding: 1.25rem 1.5rem;
}

.rd-donut-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0 1.2rem;
    position: relative;
}

.rd-donut-canvas {
    display: block;
}

.rd-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.rd-donut-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.rd-donut-label {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 500;
}

.rd-queue-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rd-legend-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.83rem;
    color: var(--text);
}

.rd-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rd-legend-name {
    flex: 1;
}

.rd-legend-val {
    font-weight: 700;
    color: var(--text);
    min-width: 2rem;
    text-align: right;
}

.rd-queue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-faint);
}

.rd-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.rd-btn-sm.green {
    background: linear-gradient(135deg, var(--accent, #4f6bff), var(--accent-2, #a855f7)) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(79, 107, 255, 0.3) !important;
}

.rd-btn-sm.green:hover {
    filter: brightness(1.1);
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(79, 107, 255, 0.45) !important;
}

.rd-btn-sm.yellow {
    background: transparent;
    color: var(--warning);
    border-color: var(--warning);
}

.rd-btn-sm.yellow:hover {
    background: var(--warning);
    color: #fff;
}

.rd-btn-sm.red {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.rd-btn-sm.red:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.rd-btn-group {
    display: flex;
    gap: 0.4rem;
}

/* ── View all link ── */
.rd-view-all {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rd-view-all:hover {
    color: var(--accent);
}


/* ── Spinner ── */
@keyframes rd-spin {
    to {
        transform: rotate(360deg);
    }
}

.rd-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: rd-spin 0.75s linear infinite;
    flex-shrink: 0;
}

/* section-title override (from base) */
.section-header .section-title,
.section-info .section-title,
h3.section-title {
    color: var(--text) !important;
    cursor: default !important;
    pointer-events: none !important;
}


/* ─── Styles from job_listings/templates/job_listings/report_dash_recruiter.html ─── */
/* Use global design tokens; define legacy aliases for backward compat */
.dash-recruiter {
    --blue: var(--accent);
    --green: var(--success);
    --gray-light: var(--bg-raised);
    --gray-dark: var(--text-faint);
    --card: var(--bg-card);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* KPI Banner — gradient strip at top */
.kpi-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #ffffff;
    padding: 24px 28px;
    border-radius: 20px;
    margin-bottom: 28px;
    text-align: center;
}

.kpi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kpi-label {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .kpi-banner {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
}

.dashboard-grid {
    display: grid !important;
    grid-template-columns: 3fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
    align-items: start !important;
}

.dashboard-grid>div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    min-width: 0 !important;
}

.dashboard-grid>div:last-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    min-width: 0 !important;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Override Bootstrap .card with design system */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: var(--card-shadow) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--text) !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 0;
    padding-left: 10px;
    background: transparent !important;
    border-bottom: none !important;
}

h3,
h4,
h5 {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

h3 {
    font-size: 1rem;
}

h4,
h5 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1rem;
}

.section-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.section-link:hover {
    text-decoration: underline;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 520px;
    overflow-y: auto;
    min-width: 0 !important;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: auto;
    min-width: 0 !important;
}

.table thead {
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
}

.table thead th {
    padding: 10px 10px 10px 16px;
    text-align: left !important;
    font-weight: 600;
    color: var(--text-faint);
    font-size: 0.75rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table thead th:nth-child(1) {
    width: 12%;
}

.table thead th:nth-child(2) {
    width: 23%;
    padding-left: 20px;
}

.table thead th:nth-child(3) {
    width: 18%;
    padding-left: 10px;
}

.table thead th:nth-child(4) {
    width: 15%;
}

.table thead th:nth-child(5) {
    width: 18%;
}

.table thead th:nth-child(6) {
    width: 14%;
}

.table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--text);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

.table tbody td:first-child {
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    padding-left: 10px;
}

.table tbody td:nth-child(2) {
    text-align: center;
    padding-left: 8px;
    padding-right: 10px;
}

.table tbody td:nth-child(3) {
    text-align: center;
    padding-left: 8px;
}

.table tbody td:nth-child(4) {
    text-align: center;
    padding-left: 32px;
}

.table tbody td:nth-child(5) {
    text-align: center;
    padding-left: 50px;
}

.table tbody td:nth-child(6) {
    text-align: center;
    padding-left: 15px;
}

.table tbody tr:hover {
    background: var(--gray-light);
}

.earnings-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.earnings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.earnings-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.earnings-label {
    font-size: 13px;
    color: var(--gray-dark);
}

.earnings-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* Breakdown Toggle Button Styles */
.breakdown-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
}

.breakdown-toggle-btn:hover {
    background-color: #F3F4F6;
    color: var(--text);
}

.breakdown-toggle-btn.active i {
    transform: rotate(180deg);
    color: var(--text);
}

.breakdown-toggle-btn i {
    transition: transform 0.3s ease;
}

.breakdown-section {
    background-color: var(--bg-raised);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.breakdown-section.hidden {
    animation: slideUp 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.candidate-section {
    margin-top: 24px;
}

.candidate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.candidate-table thead {
    background: var(--gray-light);
}

.candidate-table thead th {
    padding: 12px 10px 12px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-dark);
    border-bottom: 2px solid var(--border);
    font-size: 13px;
}

.candidate-table thead th:first-child {
    text-align: center;
    padding-left: 20px;
}

.candidate-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.candidate-table tbody td:first-child {
    text-align: center;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-interview {
    background: #FFD54F;
    color: var(--text);
}

.status-review {
    background: #B3E5FC;
    color: #01579B;
}

.status-accepted {
    background: #2E7D32;
    color: #FFFFFF;
}

.status-rejected {
    background: #EF5350;
    color: #FFFFFF;
}

.status-pending {
    background: #CE93D8;
    color: #4A148C;
}

.status-internal-shortlisted {
    background: #EC407A;
    color: #FFFFFF;
}

.status-client-shortlisted {
    background: #64B5F6;
    color: #0D47A1;
}

.status-active {
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}

.status-inactive {
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 13px;
}

.fit-score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fit-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 60px;
}

.fit-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.fit-percentage {
    font-weight: 700;
    color: var(--text);
    min-width: 35px;
    text-align: right;
}

.experience-match-badge,
.skill-match-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #0052CC);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
}

.no-data {
    color: var(--gray-dark);
    font-size: 14px;
    text-align: center;
    padding: 32px 20px;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.perf-item {
    text-align: center;
    padding: 12px;
    background: var(--gray-light);
    border-radius: 8px;
}

.perf-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
}

.perf-label {
    font-size: 11px;
    color: var(--gray-dark);
    font-weight: 600;
}

.candidate-tab-button {
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.candidate-tabs-header {
    display: none;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    gap: 20px;
}

.credibility-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.credibility-value {
    color: var(--green);
    font-size: 18px;
}

.credibility-label {
    color: var(--gray-dark);
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .performance-grid {
        grid-template-columns: 1fr;
    }
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_form.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.form-illustration-wrapper {
    flex: 0 0 320px;
    max-width: 320px;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow: visible;
}

.illustration-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.illustration-content {
    text-align: center;
}

.illustration-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.illustration-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.illustration-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.illustration-list li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.form-illustration-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Right side - Form (scrollable) */
.form-content-wrapper {
    flex: 1;
    overflow-y: auto;
}

label .asteriskField {
    color: var(--danger) !important;
    margin-left: 0.25rem;
}

label span[style*="color"] {
    color: var(--danger) !important;
    margin-left: 0.25rem;
}

label[for="id_salary_max"]::after,
label[for="id_rate_type"]::after,
label[for="id_rate_amount"]::after {
    content: " *";
    color: var(--danger);
    font-weight: bold;
}

/* Form grid - 3 fields per row */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-salary {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-grid-salary-nonfulltime {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-field-full {
    grid-column: 1 / -1;
}

/* Salary section alignment */
.salary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.salary-grid .form-field {
    display: flex;
    flex-direction: column;
}

.salary-grid .form-field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.salary-grid .form-field input,
.salary-grid .form-field select {
    min-height: 40px;
}

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

.rate-grid .form-field {
    display: flex;
    flex-direction: column;
}

.rate-grid .form-field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.rate-grid .form-field input,
.rate-grid .form-field select {
    min-height: 40px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.illustration-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
    margin: 0 auto;
}

#skillPillsContainer {
    display: none;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-raised);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

#skillPillsContainer:not(:empty) {
    display: flex;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 2px solid #e9ecef;
    border-radius: 2rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-pill:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.skill-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.skill-star:hover {
    transform: scale(1.2);
}

.skill-star.primary-star {
    color: var(--danger);
}

.skill-star.primary-star i {
    color: var(--danger);
}

.skill-star.secondary-star {
    color: var(--text-faint);
}

.skill-star.secondary-star i {
    color: var(--text-faint);
}

.skill-name {
    color: var(--text);
    user-select: none;
}

.skill-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--danger);
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.skill-remove:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.skills-legend {
    display: flex;
    gap: 2rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-raised);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning);
    font-weight: 500;
}

.legend-item i {
    font-size: 1rem;
}

.legend-item.primary i {
    color: var(--danger);
}

.legend-item.secondary i {
    color: var(--text-faint);
}

/* Hide help text below requirements field */
#id_requirements~small {
    display: none !important;
}

#id_industry,
#id_employment_type,
#id_experience_level,
#id_country,
#id_currency,
#id_rate_type {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.2em 1.2em;
    padding-right: 2.5rem !important;
}

.checkbox-wrapper {
    margin-top: 1.5rem;
}

/* Form section spacing - reduce gaps between sections */
.form-section {
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.section-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .job-form-container {
        flex-direction: column;
    }

    .form-content-wrapper {
        max-width: 100%;
    }

    .form-illustration-wrapper {
        display: none;
    }

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

    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_confirm_delete.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_confirm_delete.html ─── */
.delete-confirmation {
    text-align: center;
    padding: 2rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.confirmation-title {
    color: var(--gray-800);
    margin-bottom: 2rem;
    font-weight: 600;
}

.job-details {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-yellow);
}

.job-title {
    color: var(--gray-900);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.job-company {
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.job-info {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.warning-message {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: var(--gray-800);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid var(--accent-yellow);
}


/* ─── Styles from job_listings/templates/job_listings/report_dash_client.html ─── */
/* Local aliases only — no :root overrides that would conflict */

.dash-client {
    --blue: var(--accent);
    --green: var(--success);
    --yellow: #FFD700;
    --muted: var(--text-faint);
    --card: var(--bg-card);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* === KPI Row === */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-label {
    color: var(--text-faint);
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text);
}

.kpi-value.blue {
    color: var(--accent);
}

.kpi-value.green {
    color: var(--success);
}

.kpi-value.text {
    color: var(--text);
}

.kpi-subtext {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 4px;
}

/* === Layout === */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    box-shadow: var(--card-shadow) !important;
    color: var(--text) !important;
}

h4,
h5 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

/* === Job Performance Table === */
.job-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: auto;
}

.job-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 10px 10px;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-table thead th:nth-child(1) {
    width: 12%;
    text-align: center;
}

.job-table thead th:nth-child(2) {
    width: 28%;
    text-align: center;
}

.job-table thead th:nth-child(3) {
    width: 14%;
    text-align: center;
}

.job-table thead th:nth-child(4) {
    width: 10%;
    text-align: center;
}

.job-table thead th:nth-child(5) {
    width: 14%;
    text-align: center;
}

.job-table thead th:nth-child(6) {
    width: 14%;
    text-align: center;
}

.job-table thead th:nth-child(7) {
    width: 8%;
    text-align: center;
}

.job-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text);
}

.job-table tbody tr:hover {
    background: var(--bg-hover);
}

.status-pill {
    display: inline-block;
    background: rgba(0, 166, 81, 0.12);
    color: var(--success);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}


.funnel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.funnel-chart {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    flex: 1;
    align-items: center;
}

.funnel .stage {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    margin: 0;
    min-height: 44px;
    padding: 12px 16px;
}

.funnel .stage:nth-child(1) {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

.funnel .stage:nth-child(2) {
    width: 90%;
    clip-path: polygon(2.5% 0, 97.5% 0, 94.5% 100%, 5.5% 100%);
}

.funnel .stage:nth-child(3) {
    width: 80%;
    clip-path: polygon(5% 0, 95% 0, 91% 100%, 9% 100%);
}

.funnel .stage:nth-child(4) {
    width: 65%;
    clip-path: polygon(8.75% 0, 91.25% 0, 87.75% 100%, 12.25% 100%);
}

.funnel .stage:nth-child(5) {
    width: 55%;
    clip-path: polygon(11.25% 0, 88.75% 0, 84.25% 100%, 15.75% 100%);
}

.funnel .stage:nth-child(6) {
    width: 45%;
    clip-path: polygon(13.75% 0, 86.25% 0, 82.25% 100%, 17.75% 100%);
}

.funnel-values {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-start;
    padding-top: 6px;
}

.funnel-value {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    padding: 12px 0;
}

/* Funnel colors */
.f1 {
    background: #004ECC;
}

.f2 {
    background: #1E70FF;
}

.f3 {
    background: #339DFF;
}

.f4 {
    background: #66B2FF;
}

.f5 {
    background: var(--yellow);
    color: var(--text);
    font-weight: 700;
}

/* === Bottom Cards Grid === */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

.candidate-quality {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.candidate-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--blue);
    min-width: 80px;
}

.quality-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quality-label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}

.quality-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.recruiter-stats div {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.recruiter-stats div:last-child {
    border-bottom: none;
}

.recruiter-label {
    color: var(--muted);
    font-weight: 500;
}

.recruiter-value {
    font-weight: 600;
    color: var(--text);
}

.roi-table {
    width: 100%;
    font-size: 13px;
    margin-top: 8px;
}

.roi-table thead th {
    font-size: 12px;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.roi-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.roi-candidate {
    font-weight: 600;
    color: var(--text);
}

.roi-value-green {
    color: var(--green);
    font-weight: 600;
}

.roi-value-blue {
    color: var(--blue);
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 24px 16px;
    color: var(--muted);
    font-size: 13px;
}

.scrollable-table {
    max-height: 280px;
    overflow-y: auto;
}


/* ─── Styles from job_listings/templates/job_listings/jobpost_panel.html ─── */
/* Local palette aliases — no conflicting :root overrides */
.panel-wrapper {
    --primary-blue: var(--accent);
    --success-green: var(--success);
    --warning-yellow: #FACC15;
    --danger-red: var(--danger);
    --gray-50: var(--bg-raised);
    --gray-100: var(--bg-raised);
    --gray-200: var(--border);
    --gray-600: var(--text-faint);
    --gray-700: var(--text-dim);
    --gray-900: var(--text);
}

.panel-container {
    width: 100%;
    max-width: 100%;
}

.panel-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}


.panel-header-left {
    padding-right: 160px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.panel-job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.panel-company-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.panel-job-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 0;
}

.panel-apply-section {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 140px;
}

.btn-apply-panel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    width: 100%;
    text-align: center;
}

.btn-apply-panel:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

.panel-apply-text {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin: 0.5rem 0 0 0;
    text-align: center;
    line-height: 1.3;
}

.panel-commission-compact {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-top: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.panel-commission-compact .commission-label {
    font-size: 0.75rem;
    color: var(--text-faint);
}

.panel-commission-compact .commission-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--success);
}

.panel-daily-limit-compact {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-top: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.panel-daily-limit-compact .daily-limit-label {
    font-size: 0.75rem;
    color: var(--text-faint);
}

.panel-daily-limit-compact .daily-limit-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
}

.panel-content {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-content:last-child {
    border-bottom: none;
}

.panel-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-section-text {
    color: var(--gray-700);
    line-height: 1.6;
    font-size: 0.9rem;
}

.panel-detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    padding: 0.4rem 0.75rem;
    background: var(--gray-50);
    border-radius: 6px;
    white-space: nowrap;
}

.panel-detail-item i {
    color: var(--text-faint);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.panel-detail-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.skill-badge-panel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-raised);
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0.25rem 0.5rem 0;
}

.diversity-badge-panel {
    background: var(--bg-raised);
    color: var(--success);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.btn-secondary-panel {
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    margin-bottom: 0;
}

.btn-secondary-panel:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.btn-success-panel {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-success-panel:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}



.commission-item {
    margin-bottom: 0.75rem;
}

.commission-item:last-child {
    margin-bottom: 0;
}

.commission-label {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.commission-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.notification-section {
    background: var(--bg-raised);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.notification-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-text {
    color: var(--gray-700);
    font-size: 0.85rem;
    margin: 0;
}


/* ─── Styles from job_listings/templates/job_listings/report_dash_candidate.html ─── */
.dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 0;
}

/* KPI Grid */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 0.8125rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Main Content Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    color: var(--text);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    display: block;
    letter-spacing: -0.01em;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    background-color: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.table-header th {
    text-align: center;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.applications-table td {
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.applications-table tr:hover {
    background-color: var(--bg-hover);
}

.table-header th:nth-child(1) {
    width: 12%;
    text-align: center;
}

.table-header th:nth-child(2) {
    width: 22%;
    text-align: center;
}

.table-header th:nth-child(3) {
    width: 18%;
    text-align: center;
}

.table-header th:nth-child(4) {
    width: 15%;
    text-align: center;
}

.table-header th:nth-child(5) {
    width: 18%;
    text-align: center;
}

.table-header th:nth-child(6) {
    width: 15%;
    text-align: center;
}

.table-body td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text);
    text-align: center;
}

.table-body tr:last-child td {
    border-bottom: none;
}

.table-body td:nth-child(5) {
    text-align: center;
}

.table-body td:nth-child(6) {
    text-align: center;
}

.job-title-col {
    font-weight: 600;
    color: var(--text);
}

.job-company {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
}

.match-score {
    background-color: var(--accent);
    color: #FFFFFF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background-color: transparent;
    color: var(--text);
    border: none;
}

.status-scheduled,
.status-review,
.status-rejected,
.status-shortlisted {
    background-color: transparent;
    color: var(--text);
}

.feedback-text {
    font-size: 12px;
    color: var(--text-faint);
}

.days-applied,
.applied-date {
    font-size: 12px;
    color: var(--text-faint);
    font-weight: 500;
}

/* Match Score Badge */
.match-score-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.match-score-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #FFFFFF;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent), var(--accent-2, #0052CC));
}

.match-score-bar.low {
    background: linear-gradient(135deg, var(--accent), #0052CC);
}

.match-score-bar.medium {
    background: linear-gradient(135deg, var(--warning), #D97706);
}

.match-score-bar.good {
    background: linear-gradient(135deg, var(--success), var(--success));
}

.match-score-bar.excellent {
    background: linear-gradient(135deg, var(--accent), #0052CC);
}

.match-score-text {
    white-space: nowrap;
}

/* Skills Gap Badge */
.skills-gap-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.gap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.gap-badge.gap-excellent {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.gap-badge.gap-good {
    background-color: #DBEAFE;
    color: #0C2340;
    border: 1px solid #BFDBFE;
}

.gap-badge.gap-medium {
    background-color: #FEF3C7;
    color: #78350F;
    border: 1px solid #FCD34D;
}

.gap-badge.gap-high {
    background-color: #FEE2E2;
    color: #7F1D1D;
    border: 1px solid #FECACA;
}

.gap-badge.gap-neutral {
    background-color: #F3F4F6;
    color: var(--text-faint);
    border: 1px solid var(--border-hi);
}

/* Application Journey */
.journey-container {
    margin-top: 20px;
}

.journey-item {
    margin-bottom: 20px;
}

.journey-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 8px;
    display: block;
}

.journey-pipeline {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.journey-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stage-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--border);
    margin-bottom: 6px;
}

.stage-dot.active,
.stage-dot.completed {
    background-color: var(--accent);
}

.stage-dot.current {
    background-color: #FCD34D;
    box-shadow: 0 0 0 2px #FEF3C7;
}

.stage-connector {
    flex: 0.5;
    height: 2px;
    background-color: var(--border);
    margin-bottom: 22px;
    margin-left: -8px;
    margin-right: -8px;
}

.stage-connector.active {
    background-color: var(--accent);
}

.stage-name {
    font-size: 11px;
    color: var(--text-faint);
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}

/* Individual Job Pipeline Styles */
.journey-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journey-item-card {
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.journey-job-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.journey-job-id {
    display: inline-block;
    padding: 6px 10px;
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    min-width: 70px;
    text-align: center;
}

.journey-job-id:hover {
    background-color: #0052CC;
}

.journey-job-info {
    flex: 1;
}

.journey-job-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.journey-job-company {
    font-size: 12px;
    color: var(--text-faint);
}

.journey-pipeline-individual {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.journey-pipeline-individual .journey-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 1 auto;
}

.journey-pipeline-individual .stage-name {
    font-size: 10px;
    margin-top: 4px;
}

.journey-pipeline-individual .stage-dot {
    width: 14px;
    height: 14px;
}

.journey-pipeline-individual .stage-connector {
    width: 20px;
    height: 2px;
    margin: 0;
    margin-bottom: 8px;
    background-color: var(--border);
}

.journey-pipeline-individual .stage-connector.active {
    background-color: var(--accent);
}

/* Resume Insights Section */
.insights-container {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.score-box {
    flex: 0 0 auto;
}

.score-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.score-value {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), #0052CC);
    color: #FFFFFF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
}

.skills-gap-section {
    flex: 1;
}

.skills-gap-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.skills-gap-content {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skill-item {
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text);
    white-space: nowrap;
}

/* Right Column - Insights & Recommendations */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Job Recommendations */
.recommendations-section {
    margin-top: 20px;
}

.recommendation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.recommendation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recommendation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.new-badge {
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    width: fit-content;
}

.recommendation-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
}

.recommendation-location {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 2px;
    padding-left: 47px;
}

.apply-btn {
    background-color: var(--accent);
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0052CC;
}

.recommendation-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--bg-raised);
    color: var(--text-faint);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.view-btn:hover {
    background-color: var(--border);
    color: var(--text);
}

.match-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    width: fit-content;
}

.match-excellent {
    background-color: var(--success);
    color: #FFFFFF;
}

.match-good {
    background-color: var(--warning);
    color: #FFFFFF;
}

.match-fair {
    background-color: var(--text-faint);
    color: #FFFFFF;
}

.match-new {
    background-color: var(--accent);
    color: #FFFFFF;
}

/* Skills Tags */
.recommendation-skills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-left: 47px;
}

.skills-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
}

.skill-tag {
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    display: inline-block;
    white-space: nowrap;
}

.skill-tag.matched {
    background-color: #D1FAE5;
    color: #065F46;
    border: 0.5px solid #6EE7B7;
}

.skill-tag.missing {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 0.5px solid #FCA5A5;
}

.skill-tag.more {
    background-color: var(--bg-raised);
    color: var(--text-faint);
    border: 0.5px solid var(--border);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-faint);
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kpi-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kpi-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-wrapper {
        padding: 20px 16px;
        margin-top: 60px;
    }

    .table-body td {
        padding: 12px;
        font-size: 12px;
    }

    .match-score {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .journey-pipeline {
        gap: 8px;
    }

    .insights-container {
        flex-direction: column;
    }
}

.job-id-link {
    display: inline;
    padding: 0;
    background-color: transparent;
    color: var(--accent);
    text-decoration: none;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease;
    border: none;
    cursor: pointer;
}

.job-id-link:hover {
    background-color: transparent;
    color: #0052CC;
    text-decoration: underline;
    transform: none;
}

.job-id-link:active {
    transform: none;
}

.resume-score-header {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-raised);
    border-radius: 12px;
    margin-bottom: 20px;
}

.score-circle {
    flex: 0 0 auto;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), #0052CC);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.score-percentage {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
}

.score-label {
    font-size: 10px;
    color: #FFFFFF;
    opacity: 0.9;
    text-transform: uppercase;
    font-weight: 600;
}

.score-message {
    flex: 1;
    padding: 12px 0;
}

.score-message p {
    margin: 0;
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.score-message strong {
    color: var(--accent);
}

.skills-gap-by-job {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.skill-gap-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.skill-gap-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px;
    background-color: var(--bg-raised);
    border-bottom: 1px solid var(--border);
}

.job-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.job-id-badge {
    display: inline-block;
    padding: 8px 12px;
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    min-width: 80px;
    text-align: center;
}

.job-id-badge:hover {
    background-color: #0052CC;
}

.job-details {
    flex: 1;
    min-width: 0;
}

.job-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.job-company {
    font-size: 12px;
    color: var(--text-faint);
}

.card-body {
    padding: 16px;
}

.missing-skills-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.missing-skills-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.missing-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Container for first 3 skills */
.skills-with-expand {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.skill-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 20px;
    font-size: 12px;
    color: #92400E;
    font-weight: 500;
    white-space: nowrap;
}

.expand-skills-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    color: var(--text-faint);
    flex-shrink: 0;
}

.expand-skills-btn:hover {
    background-color: var(--bg-raised);
    border-color: var(--text-faint);
    color: var(--text);
}

.expand-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.expand-skills-btn.expanded .expand-arrow {
    transform: rotate(180deg);
}

/* Hidden Skills Container */
.hidden-skills {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #FEE9B6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 200px;
    }
}

.perfect-match {
    text-align: center;
    padding: 12px 0;
}

.match-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #D1FAE5;
    border-radius: 20px;
    color: #047857;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
}

.perfect-match p {
    font-size: 12px;
    color: var(--success);
    margin: 8px 0 0 0;
}

/* Responsive Skills Gap Cards */
@media (max-width: 768px) {
    .resume-score-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .job-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-id-badge {
        width: 100%;
        text-align: center;
    }

    .skill-badge {
        flex: 1 1 calc(50% - 4px);
    }
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    flex: 1;
}

.pagination-btn {
    padding: 8px 14px;
    background-color: var(--bg-raised);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--border);
    color: var(--text);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-faint);
}

.pagination-btn-prev {
    margin-right: 8px;
}

.pagination-btn-next {
    margin-left: 8px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-number {
    padding: 6px 10px;
    background-color: var(--bg-raised);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.pagination-number:hover {
    background-color: var(--border);
}

.pagination-number-active {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    font-weight: 600;
}

.pagination-ellipsis {
    color: var(--text-faint);
    font-size: 13px;
    padding: 0 4px;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination-info {
        margin-left: 0;
        text-align: right;
    }
}


/* ─── Styles from job_listings/templates/job_listings/job_applicants.html ─── */
#applicants-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

#applicants-page .job-form-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
}


.applicants-table-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.applicants-table-wrapper .table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.applicants-table-wrapper table {
    width: 100%;
    font-size: 0.95rem;
}

.applicants-table-wrapper table th {
    background-color: var(--gray-100);
    font-weight: 600;
    white-space: nowrap;
    padding: 12px 8px;
    text-align: left !important;
}

.applicants-table-wrapper table td {
    padding: 12px 8px;
    vertical-align: middle;
}

/* Optimize column widths */
.applicants-table-wrapper table th:nth-child(1),
.applicants-table-wrapper table td:nth-child(1) {
    width: 12%;
    min-width: 100px;
}

.applicants-table-wrapper table th:nth-child(2),
.applicants-table-wrapper table td:nth-child(2) {
    width: 16%;
    min-width: 140px;
}

.applicants-table-wrapper table th:nth-child(3),
.applicants-table-wrapper table td:nth-child(3) {
    width: 12%;
    min-width: 110px;
}

.applicants-table-wrapper table th:nth-child(4),
.applicants-table-wrapper table td:nth-child(4) {
    width: 10%;
    min-width: 100px;
}

.applicants-table-wrapper table th:nth-child(5),
.applicants-table-wrapper table td:nth-child(5) {
    width: 32%;
    min-width: 260px;
}

.applicants-table-wrapper table th:nth-child(6),
.applicants-table-wrapper table td:nth-child(6) {
    width: 6%;
    min-width: 70px;
    text-align: center;
}

.applicants-table-wrapper table th:nth-child(7),
.applicants-table-wrapper table td:nth-child(7) {
    width: 10%;
    min-width: 90px;
    text-align: center;
}

/* Make notes textarea compact */
.rejection-reason textarea {
    max-width: 200px;
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.status-form-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select {
    position: relative;
    flex: 1;
}

.interview-datetime-picker {
    background: var(--bg-raised);
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 2px;
}

.interview-datetime-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.interview-datetime-input {
    width: 100%;
    border-color: var(--success);
    background: var(--bg-card);
}

.interview-datetime-input:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.status-select::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 700;
}

.status-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 28px;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-hi);
    border-radius: 6px;
    width: 100%;
    min-height: 36px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.status-select select:hover {
    border-color: var(--text-faint);
    background-color: var(--bg-raised);
}

.status-select select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.interview-type-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px !important;
    cursor: pointer;
}

.interview-type-select:hover {
    border-color: var(--text-faint);
    background-color: var(--bg-raised);
}

.interview-type-select:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.filter-bar .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px !important;
    cursor: pointer;
}

/* Reduce Update button size */
.status-form .btn-sm {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    height: 36px;
    white-space: nowrap;
}

/* Adjust button groups for actions */
.btn-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 5px 8px !important;
}

.btn-group .btn i {
    opacity: 1 !important;
    transition: opacity 0.2s ease;
    font-size: 1rem;
    display: inline-block;
}

/* Delete button - trash icon always visible */
.btn-group .btn[data-bs-toggle="modal"] {
    background-color: var(--accent-yellow) !important;
    border-color: var(--accent-yellow) !important;
    color: var(--gray-900) !important;
}

.btn-group .btn[data-bs-toggle="modal"] i {
    color: var(--gray-900) !important;
    font-size: 1.1rem;
}

/* Notes toggle button - same size as action buttons */
.notes-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 32px !important;
    padding: 5px 8px !important;
    background-color: var(--gray-800) !important;
    border-color: var(--gray-800) !important;
    color: white !important;
    font-size: 0.95rem !important;
}

.notes-toggle i {
    opacity: 1 !important;
    font-size: 1rem !important;
    display: inline-block !important;
}

/* Summary toggle button */
.summary-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 32px !important;
    padding: 5px 8px !important;
    background-color: var(--accent-2) !important;
    border-color: var(--accent-2) !important;
    color: white !important;
    font-size: 0.95rem !important;
}

.summary-toggle i {
    opacity: 1 !important;
    font-size: 1rem !important;
    display: inline-block !important;
}

.form-header {
    background: linear-gradient(135deg, #f5f7fa 0%, var(--bg-raised) 100%);
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    border-radius: 8px;
}

.form-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.form-header .header-info {
    flex: 1;
    min-width: 250px;
}

.form-header .form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.form-header .form-subtitle {
    font-size: 14px;
    color: var(--text-faint);
    margin: 8px 0 0 0;
    font-weight: 500;
}

.form-header .header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-header .btn {
    padding: 10px 18px !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 2px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.form-header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Score colors */
.score-badge {
    font-weight: 700;
    font-size: 0.75rem;
}

.score-high {
    color: var(--success) !important;
}

.score-medium {
    color: var(--warning) !important;
}

.score-low {
    color: var(--danger) !important;
}

/* Button hover effects */
.btn-green-hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
    transition: all 0.3s ease;
}

.btn-green-hover:hover {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-blue-hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transition: all 0.3s ease;
}

.btn-blue-hover:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-gray-hover {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    color: white;
    transition: all 0.3s ease;
}

.btn-gray-hover:hover {
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-yellow-hover {
    background-color: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--gray-900);
    transition: all 0.3s ease;
}

.btn-yellow-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}


/* ─── Styles from job_listings/templates/job_listings/job_applicants.html ─── */
.notes-content {
    background-color: var(--bg-raised);
    transition: all 0.3s ease;
}

.notes-row td {
    border-top: none;
}

/* Remove the previous notes-content styles */


/* ─── Styles from job_listings/templates/job_listings/jobpost_detail.html ─── */
/* Local palette aliases — no conflicting :root overrides */
.jd-page {
    --primary-blue: var(--accent);
    --success-green: var(--success);
    --warning-yellow: #FACC15;
    --danger-red: #EF4444;
    --gray-50: var(--bg-raised);
    --gray-100: var(--bg-raised);
    --gray-200: var(--border);
    --gray-600: var(--text-faint);
    --gray-700: var(--text-dim);
    --gray-900: var(--text);
}

main.container {
    max-width: 1400px !important;
    padding: 2rem 1rem !important;
    margin: 0 auto !important;
}

.job-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.job-main-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.job-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    min-width: 0;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item i {
    color: var(--text-faint);
    font-size: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.sidebar-item span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.job-header {
    padding: 2rem 2rem 0.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;

    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.job-header-content {
    flex: 1;
}

.job-header-apply {
    flex-shrink: 0;
}

.job-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.verified-badge {
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.job-id {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-faint);
}

.section {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.95rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-raised);
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0.375rem 0.5rem 0;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-raised);
    border: 1px solid #6EE7B7;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success);
}

.info-badge i {
    color: var(--success);
    font-size: 1rem;
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    width: 100%;
}

.btn-apply:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    color: white;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.25rem;
    flex: 1;
    min-width: 140px;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.diversity-badge {
    background: var(--bg-raised);
    color: var(--success);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 1024px) {
    .job-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .job-title {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .job-header {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.25rem;
    }

    .sidebar-card .sidebar-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    /* On very small screens, make job details single column */
    .sidebar-card>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .sidebar-card .sidebar-item[style*="grid-column"] {
        grid-column: span 1 !important;
    }
}


/* ─── Styles from job_listings/templates/job_listings/report_dash_staffing.html ─── */
/* Local aliases — no conflicting :root overrides */
.dash-staffing {
    --blue: var(--accent);
    --green: var(--success);
    --yellow: #FFD700;
    --muted: var(--text-faint);
    --card: var(--bg-card);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.header-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 24px;
    min-height: 50px;
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.total-fees {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-label {
    color: var(--text-faint);
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.kpi-value.blue {
    color: var(--accent);
}

.kpi-value.green {
    color: var(--success);
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: var(--card-shadow) !important;
    color: var(--text) !important;
}

h4,
h5 {
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.job-table {
    width: 100%;
    border-collapse: collapse;
}

.job-table thead th,
thead th {
    font-weight: 600;
    text-align: left !important;
    font-size: 0.75rem;
    padding: 10px 10px;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
    background: var(--bg-raised);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.job-table tbody td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.875rem;
    text-align: center;
    color: var(--text);
}

.job-table tbody tr:hover {
    background: var(--bg-hover);
}

.status-pill {
    display: inline-block;
    background: rgba(0, 166, 81, 0.12);
    color: var(--success);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.salary-badge {
    display: inline-block;
    background: var(--bg-raised);
    color: var(--text);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
}

.deadline-badge {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    color: var(--danger);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    min-width: 40px;
    text-align: right;
}


.candidate-fit-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fit-bar-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fit-bar {
    width: 100px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.fit-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.fit-percentage {
    font-weight: 700;
    color: var(--text);
    min-width: 45px;
    text-align: right;
    font-size: 14px;
}

.candidate-fit-meta {
    font-size: 12px;
    color: var(--muted);
    margin-left: 12px;
    margin-top: 4px;
}

.candidate-fit-details {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
    margin-left: 12px;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: var(--bg);
    border-radius: 4px;
}

.small-text {
    color: var(--muted);
    font-size: 13px;
}

.funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funnel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.funnel-label {
    color: var(--text);
    font-weight: 600;
}

.funnel-count {
    color: white;
    background: var(--blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 20px;
}

@media (max-width: 1200px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

.recruiter-table {
    width: 100%;
    border-collapse: collapse;
}

.recruiter-table thead th {
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 8px;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
    background: var(--bg);
}

.recruiter-table tbody td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    text-align: center;
}

.recruiter-name {
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.percentage-cell {
    font-weight: 700;
    color: var(--green);
}

.candidate-fit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.candidate-fit-item:last-child {
    border-bottom: none;
}

.candidate-name {
    font-weight: 600;
    color: var(--text);
}

.fit-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
}

.fit-bar {
    width: 100px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.fit-bar-fill {
    height: 100%;
    background: var(--green);
}

/* Dynamic width for fit bars */
.fit-bar-fill[data-width] {
    width: attr(data-width) !important;
}


/* ─── Styles from job_listings/templates/job_listings/ranking.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* body styles handled by base.html — no override needed */

.hero-section {
    background: transparent;
    color: var(--text);
    text-align: center;
    padding: 40px 0 10px;
    margin-top: 30px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--text-dim);
}

.main-content {
    background: transparent;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.upload-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    height: fit-content;
}

.upload-section h3 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--accent);
    background: #edf2f7;
}

.file-upload-area.dragover {
    border-color: var(--success);
    background: #e6fffa;
}

.upload-icon {
    color: #a0aec0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-text {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.upload-subtext {
    color: #718096;
    font-size: 0.875rem;
}

.job-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.job-section h3 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.rerank-btn {
    background: var(--success);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: none;
    position: relative;
}

.rerank-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Removed lightning icon from Re-rank button */

.skills-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.skills-section h4 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.skill-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    margin: 5px 5px 5px 0;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.skill-tag.primary {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.candidates-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.candidates-section h4 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.candidate-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candidate-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.candidate-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.candidate-rank {
    background: var(--accent);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 16px;
    flex-shrink: 0;
}

.candidate-info {
    flex-grow: 1;
}

.candidate-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.candidate-email {
    font-size: 0.9rem;
    color: var(--text-faint);
    margin: 0;
}

.candidate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 16px 0;
}

.candidate-skill-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.candidate-skill-tag.primary {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.candidate-skill-tag.secondary {
    background: #edf2f7 !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
}

.candidate-skill-tag.missing-primary {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.candidate-skill-tag.missing-secondary {
    background: #edf2f7 !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
}

.candidate-reason {
    background: rgba(234, 179, 8, 0.08) !important;
    border: 1px solid rgba(234, 179, 8, 0.25) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin: 14px 0 !important;
    color: #fde047 !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
}

.main-score-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
    font-size: 0.875rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.main-score-table th {
    background: var(--bg-raised);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.main-score-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.main-score-table .skill-name {
    font-weight: 600;
    color: var(--accent);
}

.main-score-table .boosted-score {
    font-weight: 700;
    color: var(--success);
}

.main-score-table tr:hover {
    background: var(--bg-hover);
}

.detailed-weights-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 8px;
}

.detailed-weights-table th {
    background: var(--bg-raised);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-faint);
    border-bottom: 1px solid var(--border);
}

.detailed-weights-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.view-resume-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-resume-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.accept-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.accept-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.accept-btn.applied {
    background: var(--text-faint);
    color: #E5E7EB;
    cursor: not-allowed;
    opacity: 0.7;
}

.accept-btn.applied:hover {
    background: var(--text-faint);
    transform: none;
}

.accept-btn:disabled {
    background: var(--text-faint);
    color: #E5E7EB;
    cursor: not-allowed;
    opacity: 0.7;
}

.toggle-weights-btn {
    background: #E5E7EB;
    color: var(--text);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: auto;
}

.toggle-weights-btn:hover {
    background: var(--border-hi);
}

.weights-container h6 {
    color: var(--text);
    font-size: 0.9rem;
    margin: 12px 0 8px 0;
    font-weight: 600;
}

.no-skills-message {
    background: #fef3c7;
    border: 1px solid #FACC15;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin: 16px 0;
}

.no-skills-message p {
    margin: 4px 0;
    color: #92400e;
}

.no-skills-message strong {
    color: #78350f;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    color: #718096;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.fit-badge {
    position: absolute;
    right: 20px;
    top: 20px;
    background: var(--success);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.hidden {
    display: none;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #f9f9f9;
}

.file-name {
    flex-grow: 1;
    font-size: 0.9rem;
    color: #4a5568;
}

.file-status {
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.file-status.processing {
    background: #fed7aa;
    color: #9a3412;
}

.file-status.completed {
    background: #dcfce7;
    color: var(--success);
}

.file-status.error {
    background: #fecaca;
    color: var(--danger);
}


/* ─── Styles from users/templates/users/recruiter_edit.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from users/templates/users/submissions.html ─── */
/* Full width and properly fitted layout for submissions table */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-header {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.tool-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
}

.table {
    width: 100% !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.4rem 0.35rem;
    white-space: nowrap;
    background-color: var(--bg-raised);
    font-size: 1rem;
}

.table thead th i {
    display: none;
}

.table tbody td {
    padding: 0.4rem 0.35rem;
    white-space: nowrap;
    vertical-align: middle;
}

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

.table tbody tr:hover {
    background-color: var(--bg-raised);
}

/* Button group sizing */
.btn-group .btn {
    padding: 0.4rem 0.5rem;
    font-size: 0.85rem;
}

.badge {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Status badge colors */
.badge.bg-secondary {
    background-color: var(--text-faint) !important;
}

.badge.bg-warning {
    background-color: var(--warning) !important;
    color: var(--text) !important;
}

.badge.bg-info {
    background-color: var(--accent) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

.btn-clear-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-faint) !important;
    border-color: var(--text-faint) !important;
    color: #fff !important;
    font-weight: 600;
    min-width: 160px;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.5;
    padding: 0.75rem 2.25rem;
    transition: transform 0.13s cubic-bezier(.4, 0, .2, 1), box-shadow 0.13s cubic-bezier(.4, 0, .2, 1);
}

.btn-clear-center:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(60, 60, 60, 0.10);
}

.btn-primary.btn-sm.me-2 {
    min-width: 160px;
    min-height: 48px;
    font-size: 1rem;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.5;
    padding: 0.75rem 2.25rem;
}


/* ─── Styles from users/templates/users/submissions.html ─── */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-text {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-faint);
}

.progress {
    height: 0.5rem;
    background-color: var(--bg-hover);
}

.notes-content {
    background-color: var(--bg-raised);
    transition: all 0.3s ease;
}

.notes-row td {
    border-top: none;
}


/* ─── Styles from users/templates/users/logout.html ─── */
/* Logout Page Split Layout */
.logout-split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-card);
    overflow: hidden;
}

.logout-image-panel {
    flex: 0 0 35%;
    max-width: 35%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    position: relative;
    overflow: hidden;
}

.logout-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.logout-image-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logout-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

/* Right Content Panel - Flexible */
.logout-content-panel {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    overflow: hidden;
}

.logout-content-wrapper {
    width: 100%;
    max-width: 520px;
    padding: 1rem;
    text-align: center;
}

.logout-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.logout-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.logout-header p {
    color: var(--text-faint);
    font-size: 1rem;
}

/* Success Message Box */
.success-message-box {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.success-message-box i {
    color: var(--accent);
    font-size: 1.25rem;
}

.success-message-box p {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Button Styling */
.btn-login {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .logout-split-container {
        flex-direction: column;
    }

    .logout-image-panel {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .logout-image-content {
        max-width: 400px;
    }

    .logout-illustration {
        max-width: 300px;
    }

    .logout-content-panel {
        flex: 1;
        max-width: 100%;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .logout-image-panel {
        padding: 1.5rem 1rem;
    }

    .logout-image-card {
        padding: 1.5rem 1rem;
    }

    .logout-image-content {
        max-width: 100%;
    }

    .logout-illustration {
        max-width: 250px;
    }

    .logout-content-wrapper {
        padding: 1rem;
    }

    .logout-header h1 {
        font-size: 1.5rem;
    }
}


/* ─── Styles from users/templates/users/recruiter_list.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-header {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.tool-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
}

.table {
    width: 100% !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    white-space: nowrap;
    background-color: var(--bg-raised);
}

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

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

.table tbody tr:hover {
    background-color: var(--bg-raised);
}

/* Simple lift effect for main action buttons */
.btn.btn-sm.me-2,
.btn.deactivate-btn,
.btn.reactivate-btn.me-2,
.modal-footer .btn {
    transition: transform 0.13s cubic-bezier(.4, 0, .2, 1), box-shadow 0.13s cubic-bezier(.4, 0, .2, 1);
}

.btn.btn-sm.me-2:hover,
.btn.deactivate-btn:hover,
.btn.reactivate-btn.me-2:hover,
.modal-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(60, 60, 60, 0.10);
}


/* ─── Styles from users/templates/users/profile_update.html ─── */
#id_industry,
#id_company_size,
#id_agency_size,
#id_industry_focus {
    height: 48px !important;
    padding: 0.75rem 2.5rem 0.75rem 0.75rem !important;
}

/* Section styling */
.update-section {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.update-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin-bottom: 1.5rem;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Action buttons */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn-save {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-save:hover {
    background-color: var(--success);
    color: white;
}

.btn-cancel {
    background-color: var(--bg-raised);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-cancel:hover {
    background-color: var(--border);
    color: var(--text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}


/* ─── Styles from users/templates/users/profile_update.html ─── */
/* Updated 2025-11-17 - Light blue success alert */
.alert-success-gradient {
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-raised) 100%) !important;
    color: var(--accent) !important;
    border: 1px solid var(--bg-raised) !important;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.alert-success-gradient i {
    font-size: 1.1rem;
    color: var(--accent) !important;
}

.alert-success-gradient span {
    flex: 1;
}

select[name="phone_number_0"],
select[name="contact_phone_0"] {
    width: 20%;
    display: inline-block;
    cursor: pointer;
    margin-right: 1%;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

input[name="phone_number_1"],
input[name="contact_phone_1"] {
    display: inline-block;
    width: 79%;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

select[name="experience_level"],
input[name="location"],
input[name="preferred_role"] {
    height: 44px !important;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

/* Ensure all form-control inputs have consistent styling */
.form-control {
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-select {
    padding: 0.5rem 0.75rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.card-header.bg-light {
    background-color: var(--bg-raised);
}

.form-group {
    margin-bottom: 1rem;
}

.asteriskField {
    color: var(--danger);
    margin-left: 2px;
}

.required-asterisk {
    color: var(--danger);
    margin-left: 2px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--text-faint);
}

/* Resume Upload Styling */
.resume-upload-container {
    margin-bottom: 1.5rem;
}

.resume-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.resume-upload-wrapper {
    position: relative;
}

.resume-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.resume-upload-box {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-raised) 100%);
}

.resume-upload-box:hover {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-raised) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.upload-icon {
    margin-bottom: 1rem;
    color: var(--accent);
}

.upload-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.upload-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin-bottom: 0.25rem;
}

.upload-formats {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin: 0;
}

.resume-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ECFDF5 0%, var(--bg-raised) 100%);
    border: 1px solid var(--bg-raised);
    border-radius: 8px;
    margin-top: 0.75rem;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--success);
}

.file-details svg {
    flex-shrink: 0;
}

.file-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-clear-resume {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: var(--warning);
    color: var(--text);
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-resume:hover {
    background: var(--bg-raised);
    transform: scale(1.05);
}

.current-resume-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-raised);
    border: 1px solid #BAE6FD;
    border-radius: 6px;
    margin-top: 0.75rem;
    color: var(--accent);
    font-size: 0.875rem;
}

.current-resume-info svg {
    color: var(--accent);
    flex-shrink: 0;
}

.current-resume-info a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.current-resume-info a:hover {
    color: var(--accent);
}

.accessibility-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.facility-checkbox {
    background: var(--bg-raised);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.facility-checkbox:hover {
    background: var(--bg-raised);
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(96, 165, 250, 0.1);
}

.facility-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: 4px;
}

.facility-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.facility-checkbox label {
    margin: 0;
    cursor: pointer;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
}

.facility-checkbox input[type="checkbox"]:checked+label {
    color: var(--accent);
}


/* ─── Styles from users/templates/users/password_reset.html ─── */
/* Password Reset Page Split Layout */
.password-reset-split-container {
    display: flex;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--bg-card);
    overflow: hidden;
}

.password-reset-image-panel {
    flex: 0 0 35%;
    max-width: 35%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem;
    position: relative;
    overflow: hidden;
}

.password-reset-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.password-reset-image-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.password-reset-illustration {
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-bottom: 0.5rem;
    object-fit: contain;
}

.password-reset-image-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.password-reset-image-text h2 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.password-reset-image-text .feature-list {
    text-align: left;
    margin-top: 0.5rem;
}

.password-reset-image-text .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.3;
}

.password-reset-image-text .feature-item i {
    color: var(--success);
    margin-right: 0.625rem;
    margin-top: 0.1rem;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Right Form Panel - Flexible */
.password-reset-form-panel {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-card);
    overflow: hidden;
}

.password-reset-form-wrapper {
    width: 100%;
    max-width: 520px;
    padding: 1rem;
}

.password-reset-header {
    margin-bottom: 1.2rem;
    text-align: center;
}

.password-reset-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.password-reset-header p {
    color: var(--text-faint);
    font-size: 0.95rem;
}

/* Form Section Styling */
.form-section {
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-faint);
}

.section-content input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.section-content input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styling */
.btn-submit {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .password-reset-split-container {
        flex-direction: column;
    }

    .password-reset-image-panel {
        flex: 0 0 auto;
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .password-reset-image-content {
        max-width: 400px;
    }

    .password-reset-illustration {
        max-width: 300px;
    }

    .password-reset-image-text h2 {
        font-size: 1rem;
    }

    .password-reset-form-panel {
        flex: 1;
        padding: 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .password-reset-image-panel {
        padding: 1.5rem 1rem;
    }

    .password-reset-image-card {
        padding: 1.5rem 1rem;
    }

    .password-reset-image-content {
        max-width: 100%;
    }

    .password-reset-illustration {
        max-width: 250px;
    }

    .password-reset-image-text h2 {
        font-size: 0.9rem;
    }

    .password-reset-image-text .feature-item {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .password-reset-form-wrapper {
        padding: 1rem;
    }

    .password-reset-header h1 {
        font-size: 1.5rem;
    }
}


/* ─── Styles from users/templates/users/recruiter_applications.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-header {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.tool-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.table-responsive {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-left: 0;
    margin-right: 0;
}

.table {
    width: 100% !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 0.75rem;
    white-space: nowrap;
    background-color: var(--bg-raised);
}

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

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

.table tbody tr:hover {
    background-color: var(--bg-raised);
}

/* Button lift effect for consistency */
.btn.btn-sm {
    transition: transform 0.13s cubic-bezier(.4, 0, .2, 1), box-shadow 0.13s cubic-bezier(.4, 0, .2, 1);
}

.btn.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px 0 rgba(60, 60, 60, 0.10);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    justify-items: center;
    align-items: center;
    text-align: center;
}

.info-label {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-align: center;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 500;
    background: var(--bg-raised);
    border-radius: 10px;
    padding: 1.2rem 2rem;
    margin-top: 0.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ─── Styles from users/templates/users/password_reset_confirm.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from users/templates/users/profile.html ─── */
/* Info Grid - 2 Column Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    background-color: var(--bg-raised);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 0.5rem;
}

.info-item:hover {
    border-color: var(--accent);
    background-color: var(--bg-raised);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.info-label {
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.info-label::after {
    content: ':';
    margin-left: 0.15rem;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.6;
    word-break: break-word;
    flex: 1;
}

.info-value a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.info-value a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Section headers */
.profile-section {
    margin-bottom: 2rem;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profile-section-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

/* Action buttons */
.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-browse-jobs {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-browse-jobs:hover {
    background-color: var(--accent);
    color: white;
}

.btn-edit-profile {
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-edit-profile:hover {
    background-color: var(--success);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-item {
        padding: 0.875rem 1rem;
        flex-direction: row;
        align-items: flex-start;
    }

    .info-label {
        font-size: 0.8125rem;
    }

    .info-value {
        font-size: 0.8125rem;
    }

    .profile-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .info-item {
        padding: 0.75rem 0.875rem;
        gap: 0.375rem;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.75rem;
    }
}

.profile-subsection {
    margin-top: 2rem;
}

.profile-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.facilities-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.facility-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-raised) 100%);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--bg-raised);
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.facility-badge i {
    color: var(--accent);
    font-size: 0.875rem;
}


/* ─── Styles from users/templates/users/password_reset_email.html ─── */
body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 0 24px 0;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.content {
    background: var(--bg-card);
    padding: 0 0 0 0;
    border-radius: 0;
}

.main-section {
    margin-bottom: 32px;
}

.main-section p {
    font-size: 1.08rem;
    margin: 0 0 18px 0;
}

.button {
    display: inline-block;
    padding: 13px 32px;
    background-color: var(--accent);
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    margin: 24px 0 0 0;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.button:visited {
    color: #fff;
}

.info-section {
    margin: 32px 0 0 0;
    padding: 0;
}

.info-section-title {
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 1rem;
}

.info-section ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.info-section li {
    font-size: 1rem;
    margin-bottom: 4px;
}

.link-text {
    color: var(--text);
    font-size: 0.97rem;
    text-align: center;
    word-break: break-all;
    margin: 18px 0 0 0;
}

.footer {
    margin-top: 36px;
    text-align: center;
    color: var(--text);
    font-size: 0.97rem;
}

.expire-note {
    font-size: 0.97rem;
    font-weight: 500;
    margin-top: 18px;
}


/* ─── Styles from users/templates/users/edit_application.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.form-header {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.tool-card,
.main-form-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
}


/* ─── Styles from users/templates/users/edit_application.html ─── */
/* Hide the Clear checkbox for resume field completely */
input[name="resume-clear"],
input[id*="resume-clear"],
label[for="id_resume-clear"],
label[for*="resume-clear"],
.clearablefileinput .checkbox,
.form-check:has(input[name*="clear"]) {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Also hide any text containing "Clear" in file inputs */
.clearablefileinput label:contains("Clear") {
    display: none !important;
}


/* ─── Styles from users/templates/users/edit_application.html ─── */
.btn-view-job,
.btn-view-resume {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transition: all 0.3s ease;
}

.btn-view-job:hover,
.btn-view-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background-color: var(--primary-blue);
    color: white;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-text {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-faint);
}

.progress {
    height: 0.5rem;
    background-color: var(--bg-hover);
}


/* ─── Styles from users/templates/users/password_reset_complete.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from users/templates/users/recruiter_form.html ─── */
.recruiter-form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-row.full {
    grid-template-columns: 1fr;
}

.form-row.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.form-row.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.form-group-wrapper {
    display: flex;
    flex-direction: column;
}

.form-group-wrapper label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-group-wrapper label .asteriskField {
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-group-wrapper input[type="text"],
.form-group-wrapper input[type="email"],
.form-group-wrapper input[type="password"],
.form-group-wrapper textarea,
.form-group-wrapper select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    background-color: var(--bg-card);
    font-family: inherit;
}

.form-group-wrapper input[type="text"]:focus,
.form-group-wrapper input[type="email"]:focus,
.form-group-wrapper input[type="password"]:focus,
.form-group-wrapper textarea:focus,
.form-group-wrapper select:focus {
    border-color: var(--accent);
    background-color: var(--bg-raised);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-group-wrapper .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    color: var(--danger);
    font-size: 0.875rem;
}

.form-group-wrapper .errorlist li {
    margin-bottom: 0.25rem;
}

.helptext {
    display: none;
}

/* Button Styling */
.form-actions-recruiter {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.btn-submit-recruiter {
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit-recruiter:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-cancel-recruiter {
    background-color: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-recruiter:hover {
    background-color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-decoration: none;
    color: white;
}

.profile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profile-section-subtitle {
    font-size: 0.875rem;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .form-row.three-col {
        grid-template-columns: 1fr;
    }

    .form-actions-recruiter {
        flex-direction: column;
    }

    .btn-submit-recruiter,
    .btn-cancel-recruiter {
        width: 100%;
        justify-content: center;
    }
}


/* ─── Styles from users/templates/users/verify_signup_otp.html ─── */
.otp-verification-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 300px);
    padding: 1.5rem 1rem;
}

.otp-card-container {
    width: 100%;
    max-width: 640px;
}

#id_otp:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    outline: none;
}

#id_otp::-webkit-outer-spin-button,
#id_otp::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#id_otp[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: var(--bg-raised);
    border-left-color: var(--success);
    color: var(--success);
}

.alert-error,
.alert-danger {
    background-color: var(--bg-raised);
    border-left-color: var(--danger);
    color: var(--danger);
}

.alert-info {
    background-color: var(--bg-raised);
    border-left-color: var(--accent);
    color: var(--accent);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

@media (max-width: 576px) {
    .otp-verification-wrapper {
        min-height: auto;
        padding: 1rem 0;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .card {
        border-radius: 12px !important;
    }
}


/* ─── Styles from users/templates/users/login.html ─── */
/* Full height login split layout */
.login-container {
    display: flex;
    min-height: calc(100vh - var(--topbar-h) - 48px);
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

/* Left Hero Panel */
.login-hero-panel {
    flex: 1;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.login-hero-panel::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    top: 20%;
    left: 20%;
    pointer-events: none;
}

.login-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.login-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.login-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    padding: 2rem 0;
}

.login-hero-illustration {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

.login-hero-footer {
    z-index: 10;
}

.login-hero-footer h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    color: white;
}

.login-hero-footer p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Right Form Panel */
.login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
}

.login-form-box {
    width: 100%;
    max-width: 420px;
}

.login-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.login-header p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Social Login Buttons */
.social-btns {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text);
}

.btn-social:hover {
    background: var(--bg-hover);
    transform: translateY(-1px);
    color: var(--text);
}

.btn-social-linkedin {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.btn-social-linkedin:hover {
    background: #006097;
    color: white;
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-faint);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider-or span {
    padding: 0 0.875rem;
}

/* Form Fields */
.login-form .form-group,
.login-form .mb-3 {
    margin-bottom: 1.25rem !important;
}

.login-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 0.375rem;
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    color: var(--text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-submit-signin {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    box-shadow: var(--card-shadow);
}

.btn-submit-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-soft);
}

.login-footer-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.forgot-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signup-text {
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.signup-text a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .login-hero-panel {
        display: none;
    }

    .login-container {
        min-height: auto;
        border-radius: 16px;
    }
}


/* ─── Styles from users/templates/users/register.html ─── */
/* Registration Wrapper & Cards */
.registration-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.main-card-container .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    box-shadow: var(--card-shadow) !important;
    color: var(--text) !important;
}

.card-title {
    color: var(--text) !important;
}

/* Social Login Buttons */
.social-login-section {
    width: 100%;
}

.social-divider {
    position: relative;
    text-align: center;
    margin: 1.25rem 0;
}

.social-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--border);
}

.social-divider span {
    position: relative;
    color: var(--text-faint);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-card);
    padding: 0 0.75rem;
}

.btn-social-google,
.btn-social-linkedin {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, background 0.15s ease;
    text-decoration: none;
    border: 1px solid var(--border);
    background-color: var(--bg-raised);
    color: var(--text) !important;
}

.btn-social-google:hover {
    background-color: var(--bg-hover);
    transform: translateY(-1px);
    color: var(--text) !important;
}

.btn-social-linkedin {
    background-color: #0077b5;
    border-color: #0077b5;
    color: white !important;
}

.btn-social-linkedin:hover {
    background-color: #006097;
    color: white !important;
    transform: translateY(-1px);
}

#div_id_account_type {
    display: none;
}

/* Phone number inputs */
select[name="phone_number_0"] {
    width: 32%;
    min-width: 130px;
    display: inline-block;
    appearance: none;
    cursor: pointer;
    margin-right: 2%;
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg-raised);
    color: var(--text);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.1em 1.1em;
}

input[name="phone_number_1"] {
    display: inline-block;
    width: 66%;
    background-color: var(--bg-raised) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 0.65rem 0.875rem !important;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg-raised) !important;
    border-radius: 14px !important;
    padding: 4px !important;
    gap: 4px !important;
}

#accountTypeTabs .nav-link {
    color: var(--text-dim) !important;
    font-weight: 600;
    border: none !important;
    border-radius: 10px !important;
    transition: all 0.2s ease;
    font-size: 0.8125rem;
    padding: 0.75rem 0.5rem !important;
}

#accountTypeTabs .nav-link:hover {
    color: var(--text) !important;
    background-color: var(--bg-hover) !important;
}

#accountTypeTabs .nav-link.active {
    color: var(--accent) !important;
    background-color: var(--bg-card) !important;
    box-shadow: var(--card-shadow) !important;
}

#accountTypeTabs .nav-link i {
    font-size: 1rem;
    margin-bottom: 4px;
}

/* Form Labels & Controls */
label {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
}

.required-asterisk {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    padding: 0.6875rem 0.875rem !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background-color: var(--bg-raised) !important;
    color: var(--text) !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.tab-content small {
    font-size: 0.8125rem;
    color: var(--text-dim);
    padding: 0.75rem 1rem;
    background: var(--accent-soft);
    border-radius: 10px;
    display: block;
    border-left: 3px solid var(--accent);
    margin-top: 0.75rem;
}

.dropdown-select {
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1.1em 1.1em !important;
}

.btn-signup-submit {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    border: none !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    padding: 0.85rem 1.5rem !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    box-shadow: var(--card-shadow) !important;
}

.btn-signup-submit:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px var(--accent-soft) !important;
}

.btn-signup-submit:disabled {
    background: var(--bg-hover) !important;
    color: var(--text-faint) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Modal Styling */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 20px !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg-raised) !important;
}

.modal-rules-box {
    background: var(--bg-raised);
    border: 1px solid var(--warning);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}


/* ─── Styles from users/templates/socialaccount/authentication_error.html ─── */
.error-container {
    max-width: 540px;
    margin: 48px auto 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    padding: 0 0 32px 0;
}

.error-header {
    text-align: center;
    padding: 40px 32px 0 32px;
}

.error-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
}

.error-subtitle {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 0;
}

.error-alert {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    border: 1px solid #DC2626;
    color: #DC2626;
    border-radius: 12px;
    padding: 28px 32px 18px 32px;
    margin: 32px 32px 0 32px;
    text-align: center;
}

.error-actions {
    text-align: center;
    margin-top: 32px;
}

.error-actions .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    background: #43d477;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(67, 212, 119, 0.08);
    transition: background 0.2s;
}

.error-actions .btn:hover {
    background: #2bbf5c;
    color: #fff;
}


/* ─── Styles from users/templates/socialaccount/signup.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from admin_dash/templates/admin_dash/bulk_resume_upload.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.text-content {
    max-height: 320px;
    overflow-y: auto;
    background-color: var(--bg-raised);
    padding: 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.status-message {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.25rem;
}

.results-table {
    margin-top: 1rem;
}

.results-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

/* Queue Status Styles */
#queueStatus .card-header {
    border-bottom: 2px solid var(--border);
}

#queueStatus .table {
    margin-bottom: 0;
}

#queueStatus .table td {
    padding: 1rem;
    vertical-align: middle;
}

#queueStatus .badge {
    font-size: 0.9rem;
    padding: 0.5em 1em;
}

#queueStatus .status-count {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Processing animation */
.processing {
    animation: none;
}

/* Improve button styles */
#queueStatus .btn-group .btn {
    padding: 0.5rem 1rem;
}

#queueStatus .btn i {
    width: 16px;
}

/* Status grid layout */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.status-card {
    background: var(--bg-raised);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.status-card .status-label {
    font-size: 0.9rem;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.status-card .status-value {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Update the status message styling */
.status-message {
    transition: all 0.3s ease;
    opacity: 1;
}

.status-message.hide {
    opacity: 0;
}

.progress {
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Queue progress bar styling */
#queueProgressBar {
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#queueProgressBar .progress {
    height: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.08);
}

#queueProgressBar .progress-bar {
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    transition: width 0.5s ease;
}

#queueProgressStats {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
}

/* Make tab text more visible */
.card .nav-tabs .nav-link {
    color: var(--text) !important;
    opacity: 0.7;
}

.card .nav-tabs .nav-link.active {
    color: var(--text) !important;
    opacity: 1;
    font-weight: 500;
}

.card .nav-tabs .nav-link:hover {
    color: var(--text) !important;
    opacity: 0.9;
}


/* ─── Styles from admin_dash/templates/admin_dash/applicant_profiles.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Search field styles */
.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 12px;
    margin-top: 2px;
    margin-left: 4px;
    padding: 0;
    max-width: 100%;
    resize: none;
    height: 20px;
    vertical-align: bottom;
    font-family: sans-serif;
    overflow: hidden;
    word-break: keep-all;
    min-height: auto;
}

/* Compact Search Filters */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-filter {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-filter .form-control,
.search-filter .form-select {
    height: 38px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.search-filter .select2-container {
    width: 100% !important;
}

.search-filter .select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
}

.search-filter .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    padding-left: 0.75rem;
    padding-right: 1.5rem;
}

.search-filter .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Override card width */
.card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Add these styles to your existing style block */
.skill-badge {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.skill-badge.selected {
    background-color: var(--success) !important;
    /* Bootstrap success color */
}

.skill-badge.canonical {
    background-color: var(--border);
    /* Darker light gray */
    color: var(--text);
}

.skill-badge.mapped {
    background-color: var(--text-faint);
    color: #fff;
}

/* Add these styles to your existing style block */
.table {
    font-size: 0.875rem;
}

.table th,
.table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

.table .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.table .btn-group .btn i {
    font-size: 0.75rem;
}

/* Responsive table styles */
@media (max-width: 1400px) {

    .table th,
    .table td {
        padding: 0.375rem;
    }

    .table th:nth-child(3),
    /* Email */
    .table td:nth-child(3) {
        max-width: 200px;
    }

    .table th:nth-child(4),
    /* Role */
    .table td:nth-child(4) {
        max-width: 150px;
    }
}

@media (max-width: 1200px) {

    .table th:nth-child(3),
    /* Email */
    .table td:nth-child(3) {
        max-width: 180px;
    }

    .table th:nth-child(4),
    /* Role */
    .table td:nth-child(4) {
        max-width: 120px;
    }

    .table th:nth-child(5),
    /* Location */
    .table td:nth-child(5) {
        max-width: 120px;
    }
}

@media (max-width: 992px) {

    .table th:nth-child(3),
    /* Email */
    .table td:nth-child(3) {
        max-width: 150px;
    }

    .table th:nth-child(4),
    /* Role */
    .table td:nth-child(4) {
        max-width: 100px;
    }

    .table th:nth-child(5),
    /* Location */
    .table td:nth-child(5) {
        max-width: 100px;
    }

    .table th:nth-child(6),
    /* Phone */
    .table td:nth-child(6) {
        max-width: 100px;
    }
}

@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 800px;
    }
}

/* Compact card styles */
.card-body {
    padding: 0.75rem;
}

.card-header {
    padding: 0.75rem 1rem;
}

.search-filter {
    margin-bottom: 0.5rem;
}

.search-filter .form-control,
.search-filter .form-select {
    height: 32px;
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Add these styles to your existing style block */
.select2-container--default .select2-results__option {
    padding: 8px 12px;
}

.select2-container--default .select2-results>.select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--border);
    color: var(--text);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--bg-raised);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--border);
}

/* Improve scrollbar appearance */
.select2-container--default .select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-track {
    background: var(--border);
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
    background: var(--text-faint);
    border-radius: 4px;
}

.select2-container--default .select2-results__options::-webkit-scrollbar-thumb:hover {
    background: var(--text);
}

/* Custom Candidate Row and Expanded Details Styling */
.candidate-row {
    transition: all 0.2s ease-in-out;
}

.candidate-row:hover {
    background-color: var(--bg-raised) !important;
}

.chevron-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    color: var(--text-faint);
}

.candidate-row[aria-expanded="true"] .chevron-icon {
    transform: rotate(90deg);
    color: var(--accent);
}

.collapse-row:hover {
    background-color: transparent !important;
}

.candidate-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.5rem 1rem 1.25rem 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--accent);
}

.details-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.skill-chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.skill-chip:hover {
    background-color: var(--bg-raised);
    border-color: var(--bg-raised);
    color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.08);
}

.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8125rem;
    text-align: center;
    transition: all 0.2s ease;
}

.info-item:hover {
    background-color: var(--bg-raised);
    border-color: var(--border);
}

.info-label {
    color: var(--text-faint);
    font-weight: 500;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.info-value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid var(--border);
        padding-left: 1.5rem;
    }
}


/* ─── Styles from admin_dash/templates/admin_dash/applicant_profiles.html ─── */
/* Keep search section completely stable (disable float/jump animations on hover) */
.candidate-search-card,
.candidate-search-card *,
.candidate-search-card:hover {
    transform: none !important;
}

/* Keep clear buttons aligned to input height */
.clear-input {
    height: calc(1.5em + 0.75rem + 2px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
}

.clear-input:hover,
.clear-input:focus {
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
    transform: none !important;
}

/* Center content inside the clear-all button and keep it filled */
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
}

.btn-clear-filters:hover,
.btn-clear-filters:focus {
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
    transform: none !important;
}


/* ─── Styles from admin_dash/templates/admin_dash/populate_skills.html ─── */
main.container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.job-form-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}


/* ─── Styles from admin_dash/templates/admin_dash/admin_jobs.html ─── */
/* Full width layout for admin jobs page */
.job-form-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 20px;
}

/* Table wrapper optimization */
.main-form-card {
    width: 100%;
}

.main-form-card .table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
}

.main-form-card table {
    width: 100%;
    font-size: 0.95rem;
}

.main-form-card table th {
    background-color: var(--bg-raised);
    font-weight: 600;
    white-space: nowrap;
    padding: 12px 8px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.95rem;
}

.main-form-card table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

/* Optimize column widths */
.main-form-card table th:nth-child(1),
.main-form-card table td:nth-child(1) {
    width: 10%;
    min-width: 90px;
}

.main-form-card table th:nth-child(2),
.main-form-card table td:nth-child(2) {
    width: 18%;
    min-width: 140px;
}

.main-form-card table th:nth-child(3),
.main-form-card table td:nth-child(3) {
    width: 14%;
    min-width: 110px;
}

.main-form-card table th:nth-child(4),
.main-form-card table td:nth-child(4) {
    width: 16%;
    min-width: 140px;
}

.main-form-card table th:nth-child(5),
.main-form-card table td:nth-child(5) {
    width: 10%;
    min-width: 90px;
}

.main-form-card table th:nth-child(6),
.main-form-card table td:nth-child(6) {
    width: 10%;
    min-width: 90px;
}

.main-form-card table th:nth-child(7),
.main-form-card table td:nth-child(7) {
    width: 8%;
    min-width: 70px;
    text-align: center;
}

.main-form-card table th:nth-child(8),
.main-form-card table td:nth-child(8) {
    width: 12%;
    min-width: 100px;
}

.main-form-card table th:nth-child(9),
.main-form-card table td:nth-child(9) {
    width: 12%;
    min-width: 110px;
    text-align: center;
}

/* Status dropdown styling */
.status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select {
    position: relative;
    flex: 1;
}

.status-select::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: 700;
}

.status-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 26px;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 100%;
    min-height: 32px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.status-select select:hover {
    border-color: var(--text-faint);
    background-color: var(--bg-raised);
}

.status-select select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ensure placeholders stay left-aligned in filters */
.search-filter-bar .form-control::placeholder,
.search-filter-bar .form-select::placeholder {
    text-align: left;
}

/* Persistent grey clear button */
.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
}

.btn-clear-filters:hover,
.btn-clear-filters:focus {
    background-color: var(--text-faint);
    border-color: var(--text-faint);
    color: #ffffff;
}

/* Status form button */
.status-form .btn-sm {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    height: 32px;
}

/* Action buttons */
.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.btn-group .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 4px 8px !important;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   HIRESOLV-REDESIGN EXACT SPLIT VIEW & LAYOUT FIXES
═══════════════════════════════════════════════════ */

/* Remove broken viewport hack width and margins */
.split-view-container {
    display: grid !important;
    grid-template-columns: 2fr 3fr !important;
    gap: 1.5rem !important;
    height: calc(100vh - 120px) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.job-listings-panel {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-right: 0.5rem !important;
    overflow-y: auto !important;
}

.job-details-panel {
    flex: none !important;
    width: 100% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
    box-shadow: var(--card-shadow) !important;
}

/* Dashboard Grid & Card Uncrush Fixes */
.rd-stats-grid,
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

.rd-stat-card,
.stat-card,
.surface,
.card {
    min-width: 0 !important;
    word-break: normal !important;
    white-space: normal !important;
}

/* App Shell Fixes */
#app-shell {
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    background: var(--bg) !important;
}

#sidebar {
    width: 260px !important;
    min-width: 260px !important;
    flex-shrink: 0 !important;
}

#app-main {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden !important;
}

#main-content {
    flex: 1 !important;
    min-width: 0 !important;
    overflow-y: auto !important;
    padding: 1.5rem 2rem !important;
}

@media (max-width: 1024px) {
    .split-view-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow: visible !important;
    }
}


/* ═══════════════════════════════════════════════════
   FULL RESOLUTION & FULL SCREEN LAYOUT (100% FIT)
═══════════════════════════════════════════════════ */
html,
body {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#app-shell {
    display: flex !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--bg) !important;
}

#sidebar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 100vh !important;
    flex-shrink: 0 !important;
}

#main-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: calc(100vw - 260px) !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#topbar {
    height: 64px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}

#main-content {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 100% !important;
    height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    padding: 1.5rem 2rem !important;
    box-sizing: border-box !important;
}

/* 100% Full Width Split View */
.split-view-container {
    display: grid !important;
    grid-template-columns: 44% 56% !important;
    gap: 1.5rem !important;
    width: 100% !important;
    height: calc(100vh - 120px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: hidden !important;
}

.job-listings-panel {
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding-right: 0.5rem !important;
}

.job-details-panel {
    width: 100% !important;
    height: 100% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
    box-shadow: var(--card-shadow) !important;
}

/* Full Width Grid Uncrush */
.rd-stats-grid,
.dashboard-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

.rd-stat-card,
.stat-card,
.surface,
.card {
    min-width: 0 !important;
    word-break: normal !important;
    white-space: normal !important;
}


/* ═══════════════════════════════════════════════════
   100% FULL-WIDTH DASHBOARD & CONTAINER OVERRIDES
═══════════════════════════════════════════════════ */

/* Remove all hardcoded max-width constraints on dashboard wrappers */
.recruiter-dashboard,
.dashboard-container,
.admin-dashboard,
.candidate-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.recruiter-dashboard .container,
.recruiter-dashboard .container-fluid,
.dashboard-container .container,
.dashboard-container .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* KPI Banner: 100% Width Auto Grid */
.kpi-banner {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.kpi-item {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Dashboard Grid: 70% Left / 30% Right Split */
.dashboard-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    align-items: start !important;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

.earnings-box,
.card,
.surface,
.table-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: normal !important;
    white-space: normal !important;
}

.table-wrapper {
    overflow-x: auto !important;
}

/* ═══════════════════════════════════════════════════
   FULL WIDTH FIX — remove Bootstrap container capping
   inside the app shell so pages fill the screen
═══════════════════════════════════════════════════ */
#main-content .container,
#main-content .container-fluid,
#main-content .container-lg,
#main-content .container-xl,
#main-content .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ═══════════════════════════════════════════════════
   ██ FINAL AUTHORITATIVE FULL-SCREEN LAYOUT FIX ██
   Overrides ALL conflicting rules above.
   DO NOT add anything after this block.
═══════════════════════════════════════════════════ */

/* 1. Kill Bootstrap/legacy body padding-top that pushed everything down */
html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background: var(--bg) !important;
    box-sizing: border-box !important;
}

/* 2. App shell: full viewport flex container */
#app-shell {
    display: flex !important;
    flex-direction: row !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

/* 3. Sidebar: fixed width column */
#sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    height: 100vh !important;
    overflow: hidden !important;
}

#sidebar.collapsed {
    flex: 0 0 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
}

/* 4. Main column: fills all remaining width */
#main-col {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* 5. Topbar: fixed height strip */
#topbar {
    flex: 0 0 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 6. Main content: fills remaining height, scrollable */
#main-content {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.5rem 2rem !important;
    box-sizing: border-box !important;
}

/* 7. Bootstrap containers inside main-content must NOT constrain width */
#main-content>*,
#main-content .container,
#main-content .container-fluid,
#main-content .container-lg,
#main-content .container-xl,
#main-content .container-xxl {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* 8. Split view: proper 2-column grid, NO viewport hacks */
.split-view-container {
    display: grid !important;
    grid-template-columns: 40% 60% !important;
    grid-template-rows: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
    height: calc(100vh - 7rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.job-listings-panel {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding-right: 0.25rem !important;
    box-sizing: border-box !important;
}

.job-details-panel {
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    overflow-y: auto !important;
    box-shadow: var(--card-shadow) !important;
    box-sizing: border-box !important;
}

/* 9. Dashboard wrappers: no max-width, no margin centering */
.recruiter-dashboard,
.staffing-dashboard,
.company-dashboard,
.candidate-dashboard,
.admin-dashboard,
.dashboard-wrapper,
.page-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 10. All cards and surfaces: never collapse */
.rd-stat-card,
.stat-card,
.kpi-item,
.surface,
.card,
.earnings-box,
.table-responsive,
.table-wrapper {
    min-width: 0 !important;
    word-break: normal !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto !important;
}

/* 11. Mobile: stack layout */
@media (max-width: 1023px) {
    #app-shell {
        position: relative !important;
    }

    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 9000 !important;
        transform: translateX(-100%) !important;
    }

    #sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    #main-col {
        width: 100vw !important;
    }

    .split-view-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow: visible !important;
    }
}



/* ═══════════════════════════════════════════════════
   HIRESOLV-REDESIGN HIRA AI LIVE ACTIVITY FEED STYLES
═══════════════════════════════════════════════════ */
.hira-ai-container {
    width: 100%;
    max-width: 100%;
}

.hira-hero-card {
    position: relative;
    min-height: 300px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #05060a;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem 2rem;
}

.hira-strands-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hira-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 6, 10, 0.92) 0%, rgba(5, 6, 10, 0.65) 45%, rgba(5, 6, 10, 0.15) 75%);
    z-index: 2;
    pointer-events: none;
}

.hira-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hira-hero-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hira-bot-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(91, 124, 255, 0.35);
}

.hira-hero-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.hira-hero-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.hira-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: hiraPulse 2s infinite;
}

@keyframes hiraPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hira-pause-btn {
    margin-top: 1.25rem;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 12px;
    padding: 0.6rem 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    backdrop-filter: blur(8px);
    transition: transform 0.15s ease, background 0.15s ease;
}

.hira-pause-btn:hover {
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.12);
}

.hira-stats-bar {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.hira-stat-item {
    display: flex;
    flex-direction: column;
}

.hira-stat-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.hira-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.hira-click-hint {
    position: absolute;
    right: 1.5rem;
    top: 1.25rem;
    z-index: 10;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Activity Feed */
.hira-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hira-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.hira-activity-item:last-child {
    border-bottom: none;
}

.hira-activity-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.hira-activity-body {
    flex: 1;
    min-width: 0;
}

.hira-activity-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.hira-activity-detail {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hira-activity-time {
    font-size: 0.75rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.hira-task-btn {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.hira-task-btn:hover {
    background: rgba(91, 124, 255, 0.12) !important;
    border-color: rgba(91, 124, 255, 0.4) !important;
    transform: translateY(-1px);
}

.hira-progress-track {
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background: var(--bg-hover);
    overflow: hidden;
}

.hira-progress-fill {
    height: 100%;
    border-radius: 999px;
}

.hira-info-card {
    background: linear-gradient(135deg, var(--accent-soft), transparent) !important;
    border-color: var(--border) !important;
}


/* ═══════════════════════════════════════════════════
   HIRESOLV HIRA AI 65/35 SPLIT GRID LAYOUT FIX
═══════════════════════════════════════════════════ */
.hira-grid-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    align-items: start !important;
}

@media (max-width: 1024px) {
    .hira-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

.hira-left-col,
.hira-right-col {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hira-activity-item {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 0.9rem 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.hira-activity-body {
    flex: 1 1 0% !important;
    min-width: 0 !important;
}

.hira-activity-title {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    margin-bottom: 0.15rem !important;
}

.hira-activity-detail {
    font-size: 0.8rem !important;
    color: var(--text-dim) !important;
    margin-bottom: 0 !important;
}

.hira-activity-time {
    font-size: 0.75rem !important;
    color: var(--text-faint) !important;
    white-space: nowrap !important;
}


/* ═══════════════════════════════════════════════════
   SUPERADMIN DASHBOARD (HIRESOLV-REDESIGN STYLES)
═══════════════════════════════════════════════════ */
.superadmin-dashboard-container {
    width: 100%;
    max-width: 100%;
}

.activity-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.border-default {
    border-color: var(--border) !important;
}

.divide-default>*+* {
    border-color: var(--border) !important;
}


/* ═══════════════════════════════════════════════════
   SUPERADMIN KPI CARDS RESPONSIVE GRID LAYOUT
═══════════════════════════════════════════════════ */
.superadmin-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 1200px) {
    .superadmin-kpi-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .superadmin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .superadmin-kpi-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
}

.superadmin-kpi-card {
    background: var(--bg-raised, #0f121d) !important;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 14px !important;
    padding: 1.15rem 1.25rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.15s ease, border-color 0.15s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.superadmin-kpi-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--accent) !important;
}


/* ═══════════════════════════════════════════════════
   JOB BOARD SPLIT-VIEW STYLES (HIRESOLV-REDESIGN)
═══════════════════════════════════════════════════ */
.text-xxs {
    font-size: 0.6875rem !important;
    /* 11px */
    line-height: 1rem !important;
}

.job-list-scrollable::-webkit-scrollbar {
    width: 4px;
}

.job-list-scrollable::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.job-card-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.job-card-item:hover {
    border-color: var(--accent) !important;
}

.job-card-active {
    border-color: var(--accent) !important;
    background: var(--bg-raised) !important;
}


/* ═══════════════════════════════════════════════════
   STRICT 38% / 62% JOB BOARD SPLIT CONTAINER
═══════════════════════════════════════════════════ */
.job-board-split-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.job-board-left-col {
    flex: 0 0 38% !important;
    max-width: 38% !important;
    width: 38% !important;
}

.job-board-right-col {
    flex: 0 0 62% !important;
    max-width: 62% !important;
    width: 62% !important;
}

@media (max-width: 992px) {
    .job-board-split-container {
        flex-direction: column !important;
    }

    .job-board-left-col,
    .job-board-right-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}


/* ═══════════════════════════════════════════════════
   SLEEK ACCESSIBILITY PILL BADGES (UPLOADED SAMPLE REPLICA)
═══════════════════════════════════════════════════ */
.accessibility-pill-indigo {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    /* 11px */
    font-weight: 500 !important;
    padding: 0.25rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.accessibility-pill-emerald {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    /* 11px */
    font-weight: 500 !important;
    padding: 0.25rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.accessibility-pill-sky {
    background: rgba(14, 165, 233, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
    border-radius: 9999px !important;
    font-size: 0.6875rem !important;
    /* 11px */
    font-weight: 500 !important;
    padding: 0.25rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center !important;
}


/* ═══════════════════════════════════════════════════
   UNIFORM META TEXT FONT SIZE (12px / 0.75rem)
═══════════════════════════════════════════════════ */
.job-meta-text {
    font-size: 0.75rem !important;
    /* 12px */
    line-height: 1.15rem !important;
    font-weight: 400 !important;
    color: #64748b !important;
}

.accessibility-pill-indigo,
.accessibility-pill-emerald,
.accessibility-pill-sky {
    font-size: 0.75rem !important;
    /* 12px */
    font-weight: 400 !important;
}


/* ═══════════════════════════════════════════════════
   ROUNDED CARD CORNERS & ICON MARGINS
═══════════════════════════════════════════════════ */
.job-card-item,
#jobDetailPane,
.card-panel {
    border-radius: 1rem !important;
    /* 16px sleek rounded edges */
}

.job-card-item i.fas,
.job-card-item i.far,
#jobDetailPane i.fas,
#jobDetailPane i.far {
    margin-right: 6px !important;
}


/* ═══════════════════════════════════════════════════
   RIGHT PANE PADDING, TITLE VISIBILITY & PLACEHOLDERS
═══════════════════════════════════════════════════ */
#jobDetailPane {
    padding: 2rem !important;
    /* Generous 32px inner margin/padding */
}

#detailTitle {
    color: var(--text-heading, #f8fafc) !important;
}

input::placeholder,
.form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 0.85 !important;
}


/* ═══════════════════════════════════════════════════
   THEME-INVERTING DYNAMIC COLOR SYSTEM (LIGHT & DARK)
═══════════════════════════════════════════════════ */
#jobDetailPane {
    padding: 2rem !important;
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

#detailTitle {
    color: var(--text) !important;
}

#detailSubtitle {
    color: var(--text-dim) !important;
}

#detailDesc {
    color: var(--text) !important;
}

.job-card-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

.job-card-item .text-heading {
    color: var(--text) !important;
}

.job-card-item .job-company-name {
    color: var(--text-dim) !important;
}

.job-meta-text {
    font-size: 0.75rem !important;
    /* 12px */
    line-height: 1.15rem !important;
    font-weight: 400 !important;
    color: var(--text-faint) !important;
}

.job-meta-text i.fas,
.job-meta-text i.far {
    color: var(--text-faint) !important;
}

input::placeholder,
.form-control::placeholder {
    color: var(--text-dim) !important;
    opacity: 0.75 !important;
}

.attribute-pill {
    background-color: var(--bg-raised) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
}

.skill-pill {
    background-color: var(--bg-raised) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-dim) !important;
}

[data-theme="dark"] .accessibility-pill-indigo {
    background: rgba(99, 102, 241, 0.14) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .accessibility-pill-emerald {
    background: rgba(16, 185, 129, 0.14) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .accessibility-pill-sky {
    background: rgba(14, 165, 233, 0.14) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
}

/* Light Theme Pill Overrides for contrast */
.accessibility-pill-indigo {
    background: rgba(79, 107, 255, 0.1) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(79, 107, 255, 0.25) !important;
}

.accessibility-pill-emerald {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.accessibility-pill-sky {
    background: rgba(14, 165, 233, 0.1) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.25) !important;
}


/* ═══════════════════════════════════════════════════
   SMART JD SUMMARY & COLLAPSIBLE FULL DESCRIPTION
═══════════════════════════════════════════════════ */
.jd-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-soft);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.toggle-full-jd-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.toggle-full-jd-btn:hover {
    opacity: 0.85;
    text-decoration: underline;
}

div[style*="grid-template-columns: repeat(2, 1fr)"],
div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
}

/* Responsive Nav Tabs & Pagination */
.nav-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
}

.nav-tabs .nav-link {
    white-space: nowrap !important;
    font-size: 0.82rem !important;
    padding: 0.5rem 0.75rem !important;
}

.pagination {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
}

.page-link {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem !important;
}

/* ═══════════════════════════════════════════════════
   ████  COMPREHENSIVE MOBILE RESPONSIVENESS FIX  ████
   Placed LAST to guarantee override of all conflicting
   desktop-first rules above. Touch-first, seamless.
═══════════════════════════════════════════════════ */
@media (max-width: 1023px) {

    /* 1. Allow vertical scroll — override the frozen layout */
    html,
    body {
        height: auto !important;
        min-height: 100dvh !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
    }

    #app-shell {
        position: relative !important;
        height: auto !important;
        min-height: 100dvh !important;
        overflow: visible !important;
        flex-direction: column !important;
    }

    /* 2. Sidebar: slide-in drawer, does not affect body layout */
    #sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(.4, 0, .2, 1) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
    }

    #sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    /* Close button visible on mobile */
    #sidebar-close-mobile {
        display: flex !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    /* Collapse button hidden on mobile */
    #sidebar-collapse-btn {
        display: none !important;
    }

    /* 3. Main column fills full width, scrolls normally */
    #main-col {
        flex: 1 1 auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    /* 4. Topbar */
    #topbar {
        flex: 0 0 56px !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 1rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    #topbar-menu-btn {
        display: flex !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }

    .topbar-title {
        font-size: 0.975rem !important;
    }

    /* 5. Main content: reduce padding on mobile */
    #main-content {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: auto !important;
        overflow-y: visible !important;
        overflow-x: hidden !important;
        padding: 1rem 0.875rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* 6. Split views stack vertically */
    .split-view-container {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* 7. KPI grids go 2-col on mobile */
    .kpi-banner {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rd-stats-grid,
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
    }

    /* 8. Job board split: stack list above detail pane */
    .job-board-split-container {
        flex-direction: column !important;
    }

    .job-board-left-col,
    .job-board-right-col {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Remove nested scroll trap on mobile */
    .job-board-left-col.job-list-scrollable {
        max-height: none !important;
        overflow-y: visible !important;
    }

    /* 9. Dashboard wrappers, cards, and grid items strictly constrained to viewport */
    .dash-layout-grid,
    .bottom-layout-grid,
    .superadmin-dashboard-container,
    .client-dash-wrapper,
    .staffing-dash-wrapper,
    .candidate-dash-wrapper,
    .recruiter-dash-wrapper,
    .rd-wrapper,
    .referrals-wrap,
    .pd-wrap {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .dash-layout-grid > div,
    .bottom-layout-grid > div,
    .cd-sec-card,
    .sd-sec-card,
    .rd-sec-card,
    .rd-card,
    .rd-card-dark,
    .pd-card,
    .ref-card,
    .recruiter-table-card,
    .ra-table-card,
    .sub-table-card,
    .sub-filter-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    /* 10. Tables: full-width horizontal touch scroll with legible column min-widths */
    .table-wrapper,
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
        margin-bottom: 0 !important;
    }

    .table-responsive > table,
    .table-responsive > .table,
    table.rd-applicants-table,
    table.rd-manage-table,
    table.rd-pipeline-table,
    table.rd-profile-table,
    table.cd-table-dark,
    table.sd-table-dark,
    table.rd-table-dark,
    table.sub-manage-table,
    table.ra-table,
    table.recruiter-table,
    table.ref-table,
    table.pd-table {
        min-width: 720px !important;
        width: 100% !important;
    }

    table.rd-applicants-table {
        min-width: 880px !important;
    }

    table.rd-manage-table {
        min-width: 820px !important;
    }

    table.rd-profile-table {
        min-width: 850px !important;
    }

    /* 10. Card Headers & Toolbars: wrap gracefully on mobile without cutting off right-side buttons */
    .rd-card-dark-header,
    .recruiter-header-card,
    .rd-pipeline-card-header,
    .pd-header-bar,
    .pd-hero-card {
        flex-wrap: wrap !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
        padding: 1rem !important;
    }

    .rd-card-dark-header > div,
    .recruiter-header-card > div,
    .rd-pipeline-card-header > div,
    .pd-header-bar > div {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .rd-card-dark-header form {
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    /* 11. Dashboard Layout Grids */
    .dash-layout-grid,
    .bottom-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .kpi-grid-client,
    .kpi-grid-4,
    .kpi-banner,
    .rd-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* 12. Form inputs: large, touchable targets */
    .form-control,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    select,
    textarea {
        min-height: 44px !important;
        font-size: 1rem !important;
    }

    /* 13. Detail pane action buttons wrap on mobile */
    #jobDetailPane .d-flex.gap-3 {
        flex-wrap: wrap !important;
    }

    #jobDetailPane .btn {
        flex: 1 1 auto !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* 14. Hira AI grid stacks on mobile */
    .hira-grid-layout {
        grid-template-columns: 1fr !important;
    }
}

/* Extra small phones (<=480px) */
@media (max-width: 480px) {
    #main-content {
        padding: 0.75rem 0.625rem !important;
    }

    #topbar {
        padding: 0 0.75rem !important;
    }

    .kpi-banner,
    .rd-stats-grid,
    .kpi-grid-client,
    .kpi-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .info-field-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .info-label {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-bottom: 0.2rem !important;
    }

    .info-value {
        width: 100% !important;
    }

    .form-actions {
        flex-direction: column-reverse !important;
        gap: 0.75rem !important;
    }

    .form-actions .btn-save,
    .form-actions .btn-cancel,
    .form-actions a,
    .form-actions button {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Registration card full-bleed */
    .registration-wrapper .main-card-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ── Desktop: restore scroll on left job list panel ── */
@media (min-width: 992px) {
    .job-board-left-col.job-list-scrollable {
        max-height: calc(100vh - 240px) !important;
        overflow-y: auto !important;
    }
}
