/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'calibri';
}

.hidden {
    display: none;
}

.button-group {
    margin-bottom: 24px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    max-width: 900px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
}

.form-field {
    flex: 1 1 45%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.job-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.job-row:hover {
    background-color: #eff6ff;
}

.close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    color: #1e3a8a;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ef4444;
}

body {
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    font-family: 'calibri ';
    color: #1f2937;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    opacity: 0.98;
    width: 100%;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
}

.flash.success {
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    color: #065f46;
    border: none;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Child element consistency in button-group */
.button-group .submit-btn,
.button-group #sort-by-status,
.button-group .filter-label,
.button-group .filter-select,
.button-group .search-input,
.button-group .results-btn,
.button-group .edit-btn,
.button-group .delete-btn,
.button-group .back-btn,
.button-group .button-modal {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* Button-specific styles in button-group */
.button-group .submit-btn,
.button-group .button-modal {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    gap: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.button-group .submit-btn:hover,
.button-group .button-modal:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/* Filter label in button-group */
.button-group .filter-label {
    font-weight: 600;
    font-size: 15px;
    color: #1e3a8a;
}

/* Filter select in button-group */
.button-group .filter-select {
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    padding: 0 12px;
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Search Input in Button Group */
.button-group .search-input {
    width: 420px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 15px;
    height: 40px;
    box-sizing: border-box;
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-left: 12px;
}

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

.button-group .search-input::placeholder {
    color: #6b7280;
}

/* Search, Filter, and Add Job Container */
.search-add-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    direction: ltr;
}

.search-add-container #job-search {
    flex: 1;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-add-container #job-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.search-add-container #job-search::placeholder {
    color: #6b7280;
}

.search-add-container #status-filter {
    width: 220px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 16px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-add-container #status-filter:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.search-add-container .submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.search-add-container .submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/* Submissions Table */
.submissions-table {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-collapse: collapse;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    direction: ltr;
    table-layout: auto;
}

.candidate-checkbox {
    width: 14px;
    height: 14px;
    transform: scale(1.6);
    margin: 0 6px;
    vertical-align: middle;
    cursor: pointer;
}

.tab-container {
    margin-bottom: 24px;
}

.tab-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.tab-btn {
    padding: 12px 24px;
    background: #e5e7eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.tab-content {
    border: 1px solid #bfdbfe;
    padding: 24px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
}

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

.form-field {
    flex: 1 1 45%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

/* Style for the "select all" checkbox in the header */
#select-all {
    width: 14px;
    height: 14px;
    transform: scale(1.6);
    margin: 0 6px;
    vertical-align: middle;
    cursor: pointer;
}

.submissions-table th,
.submissions-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    max-width: 100px;
    overflow-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
}

.submissions-table th:nth-child(12),
.submissions-table td:nth-child(12) {
    max-width: 140px;
}

.submissions-table th {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fff;
    font-weight: 600;
}

.submissions-table tbody {
    display: table-row-group;
}

.submissions-table tr:nth-child(even) {
    background: #f9fafb;
}

.submissions-table a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.submissions-table a:hover {
    text-decoration: underline;
}

/* Form Layout */
.form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.form-column {
    flex: 1;
    min-width: 280px;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 36px;
    margin-right: 12px;
    vertical-align: middle;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    transition: .4s;
    border-radius: 36px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 28px;
    width: 28px;
    left: 4px;
    bottom: 4px;
    background: #ffffff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Jobs Table */
.jobs-table {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-collapse: collapse;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    direction: ltr;
    table-layout: auto;
}

.jobs-table th,
.jobs-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.jobs-table th {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #fff;
    font-weight: 600;
}

.jobs-table tbody tr.job-row {
    cursor: pointer;
    transition: background 0.3s ease;
}

.jobs-table tbody tr.job-row:hover {
    background: #eff6ff;
}

.jobs-table tbody tr.job-row:nth-child(odd) {
    background: #ffffff;
}

.jobs-table tbody tr.job-row:nth-child(even) {
    background: #f9fafb;
}

.jobs-table tbody tr.job-details {
    background: #f0f4ff;
}

.job-description {
    padding: 18px;
}

.button-group .results-btn {
    color: #ffffff;
}

.job-description p {
    margin-bottom: 18px;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Drag Handle for Sortable */
.drag-handle {
    cursor: move;
    padding: 6px;
    background: #e5e7eb;
    border-radius: 4px;
    text-align: center;
    width: 24px;
    transition: background 0.2s ease;
}

.drag-handle:hover {
    background: #d1d5db;
}

/* Select Box Styles */
.candidate-status {
    width: 100%;
    max-width: 140px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}

/* Ensure select dropdown and options are consistently styled */
.search-add-container #status-filter {
    background: #f9fafb; /* Consistent background */
    color: #1f2937; /* Dark text for readability */
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    -webkit-appearance: menulist; /* Ensure browser-native dropdown rendering */
    -moz-appearance: menulist;
    appearance: menulist;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style the option elements */
.search-add-container #status-filter option {
    background: #ffffff; /* White background for options */
    color: #1f2937; /* Dark text for readability */
    padding: 8px; /* Consistent padding */
    font-size: 14px;
}

/* Ensure options are visible on hover */
.search-add-container #status-filter option:hover {
    background: #e0f2fe; /* Light blue hover background */
    color: #1e3a8a; /* Darker text on hover */
}

/* Fix focus and active states */
.search-add-container #status-filter:focus,
.search-add-container #status-filter:active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
    background: #f9fafb; /* Prevent background reset */
}

/* Ensure dropdown menu inherits styles */
.search-add-container #status-filter::-ms-expand {
    display: none; /* Hide default arrow in IE */
}

/* Status filter styles for all options */
.status-all {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue gradient for All Statuses */
}

.status-applicant {
    background: linear-gradient(135deg, #6b7280, #4b5563); /* Gray for Applicant */
}

.status-nda-sent {
    background: linear-gradient(135deg, #f87171, #ef4444); /* Red for NDA Sent */
}

.status-nda-approve {
    background: linear-gradient(135deg, #34d399, #10b981); /* Green for NDA Approve */
}

.status-phone-interview {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue for Phone Interview */
}

.status-consultant-interview {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9); /* Purple for Consultant Interview */
}

.status-cp-sent {
    background: linear-gradient(135deg, #fb923c, #f97316); /* Orange for CP Sent */
}

.status-cp-approved {
    background: linear-gradient(135deg, #22d3ee, #06b6d4); /* Cyan for CP Approved */
}

.status-short-list {
    background: linear-gradient(135deg, #facc15, #eab308); /* Yellow for Short List */
    color: #1f2937; /* Dark text for contrast */
}

.status-client-interview {
    background: linear-gradient(135deg, #ec4899, #db2777); /* Pink for Client Interview */
}

.status-offer {
    background: linear-gradient(135deg, #10b981, #059669); /* Green for Offer */
}

.status-approval {
    background: linear-gradient(135deg, #34d399, #059669); /* Green for Approval & Signing */
}

.status-reject {
    background: linear-gradient(135deg, #9ca3af, #6b7280); /* Gray for Reject */
}

.status-reject-with-notice {
    background: linear-gradient(135deg, #b91c1c, #991b1b); /* Dark red for Reject with Notice */
}
.filter-select {
    padding: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
}


/* Ensure select dropdown and options are consistently styled */
.search-add-container #status-filter {
    background: #f9fafb; /* Consistent background */
    color: #1f2937; /* Dark text for readability */
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    -webkit-appearance: menulist; /* Ensure browser-native dropdown rendering */
    -moz-appearance: menulist;
    appearance: menulist;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Style the option elements */
.search-add-container #status-filter option {
    background: #ffffff; /* White background for options */
    color: #1f2937; /* Dark text for readability */
    padding: 8px; /* Consistent padding */
    font-size: 14px;
}

/* Ensure options are visible on hover */
.search-add-container #status-filter option:hover {
    background: #e0f2fe; /* Light blue hover background */
    color: #1e3a8a; /* Darker text on hover */
}

/* Fix focus and active states */
.search-add-container #status-filter:focus,
.search-add-container #status-filter:active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
    background: #f9fafb; /* Prevent background reset */
}

/* Ensure dropdown menu inherits styles */
.search-add-container #status-filter::-ms-expand {
    display: none; /* Hide default arrow in IE */
}



/* Filter Select */
.filter-select {
    width: 160px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 15px;
    margin-left: 12px;
    cursor: pointer;
    background: #f9fafb;
    transition: background 0.3s ease, border-color 0.3s ease;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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



/* Buttons and Links */
.apply-btn, .submit-btn, .back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.apply-btn:hover, .submit-btn:hover, .back-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.back-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    margin-top: 24px;
}

.results-btn, .edit-btn, .delete-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 0 12px 0 0;
    transition: background 0.3s ease, transform 0.2s ease;
}

.results-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

.edit-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 0 12px;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

.delete-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    direction: ltr;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    margin: 10% auto;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 92%;
    max-width: 1300px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    color: #1e3a8a;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ef4444;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 24px 0;
    position: relative;
    overflow: hidden;
    opacity: 0.92;
}

.ai-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-bottom: 24px;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

.content {
    padding: 24px 0;
    position: relative;
}

.logo {
    display: block;
    margin: 0 auto;
    max-width: 320px;
    height: auto;
}

.hero {
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff, #dbeafe);
    color: #1e3a8a;
    line-height: 1.7;
    opacity: 0.92;
    padding: 16px;
    border-radius: 12px;
}

h1 {
    font-size: calc(2.8rem * var(--font-size-multiplier));
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e3a8a;
    text-align: center;
}

h2 {
    font-size: calc(2rem * var(--font-size-multiplier));
    font-weight: 700;
    margin-bottom: 18px;
    color: #1e3a8a;
    text-align: center;
}

h3 {
    font-size: calc(1.6rem * var(--font-size-multiplier));
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e40af;
}

/* Job Container */
.job {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.92;
}

.job-header {
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 12px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.job-header h3 {
    flex: 1;
    margin: 0;
    color: #1e40af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 220px;
}

.job-header p {
    flex: 0 0 160px;
    text-align: center;
    margin: 0 12px;
    font-size: 16px;
}

.job-header .results-btn {
    flex: 0 0 auto;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.job-content {
    max-height: 650px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.job-content.collapsed {
    max-height: 0;
}

.job-content form {
    margin-top: 12px;
}

.ui-sortable-helper {
    display: table;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 24px;
}

.slides {
    display: flex;
    width: 200%;
    transition: transform 0.6s ease;
}

.slide {
    width: 50%;
    padding: 12px;
    direction: ltr;
    min-height: 220px;
}

.slide-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 12px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slide-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}

.job p {
    margin-bottom: 18px;
}

.candidate-row:hover {
    background: #eff6ff;
    transition: background 0.3s ease;
}

.jobs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.job-item {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #f9fafb, #f0f4ff);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.job-item .submit-btn {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    margin: 24px 0;
}

.new {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e3a8a;
}

p, label, input, textarea, select, button {
    font-size: calc(1rem * var(--font-size-multiplier));
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="file"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
    height: 160px;
    resize: vertical;
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.3em;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.statistics {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.statistics h2 {
    font-size: 2em;
    margin-bottom: 18px;
    color: #1e3a8a;
}

.statistics p {
    font-size: 1.3em;
    margin-bottom: 12px;
}

.status-text {
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 12px;
}

.flash {
    padding: 12px;
    margin: 12px 0;
    border-radius: 8px;
    text-align: center;
}

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

button[type="submit"] {
    margin-top: 24px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Login Container */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 160px); /* Adjust for header and footer */
    padding: 24px;
}

/* Login Box */
.login-box {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0.95;
}

/* Remove h1 since we're using h2 */
.login-box h1 {
    display: none; /* Not used in the updated design */
}

/* Ensure h2 is above form */
.login-container h2 {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
    font-size: 2.2em;
    font-weight: 800;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center Form Fields */
.centered-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.centered-form label {
    text-align: left;
    width: 100%;
    max-width: 300px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.centered-form input[type="text"],
.centered-form input[type="password"] {
    width: 100%;
    max-width: 300px;
    padding: 12px 40px 12px 12px; /* Space for toggle icon on right */
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f9fafb;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Password Input Styling */
.password-input {
    border: 1px solid #bfdbfe; /* Consistent with other inputs */
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

/* Password Wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin-bottom: 18px;
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px; /* Place on right side */
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1em;
    color: #3b82f6;
    user-select: none;
    transition: color 0.3s ease;
    background: none;
    padding: 0;
}

.toggle-password:hover {
    color: #2563eb;
}

/* Submit and Back Buttons */
.centered-form .submit-btn,
.centered-form .back-btn {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
    padding: 14px;
    font-size: 1.1em;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.centered-form .submit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
}

.centered-form .submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.centered-form .back-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.centered-form .back-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

/* Flash Messages */
.flash-messages {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 18px;
}

.login-box .flash {
    padding: 12px;
    margin-bottom: 18px;
    border-radius: 8px;
    text-align: center;
}

.section-tabs {
    list-style: none;
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
}

.section-tabs li {
    padding: 12px 24px;
    background: #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.section-tabs li.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.sections {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section {
    display: none;
}

.section:not(.hidden) {
    display: block;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.error-tab {
    background: #fef2f2;
    border: 1px solid #dc2626;
}

/* Job Container */
.job {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.92;
}

/* Flexbox wrapper for image and text */
.job-content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for no-picture case */
    gap: 16px;
}
.job-content-wrapper.has-picture {
    display: grid;
    grid-template-columns: auto 1fr; /* Image takes auto width, meta takes rest */
    gap: 24px;
}

/* Job Image Styling */
.job-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.job-img {
    max-width: 100%;
    max-height: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Job Text Styling */
.job-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.job-text h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e40af;
}

.job-text p {
    margin-bottom: 18px;
    overflow-wrap: break-word;
    white-space: normal;
}

.job-text .apply-btn {
    align-self: flex-start;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.job-text .apply-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/* Ensure text takes full width when no image */
.job-content-wrapper:not(:has(.job-image)) .job-text {
    width: 100%;
}

@media (max-width: 768px) {
    .job-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .job-image {
        max-width: 100%;
        margin-bottom: 18px;
    }

    .job-text {
        width: 100%;
    }

    .job-text .apply-btn {
        align-self: center;
    }
}

.status-nda {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.status-reject {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.status-reject-with-notice {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
}

/* Update filter-select hover/focus for consistency */
.filter-select:hover,
.filter-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.schedule-btn {
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.schedule-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Two-column form layout for job application */
.job-application-form .form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.job-application-form .form-column {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.job-application-form .form-column label {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
}

.job-application-form .form-column input[type="text"],
.job-application-form .form-column input[type="email"],
.job-application-form .form-column input[type="tel"],
.job-application-form .form-column input[type="url"],
.job-application-form .form-column input[type="file"] {
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Toggle button for form */
.toggle-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

/* Form visibility */
.job-application-form.hidden {
    display: none;
}

/* Submit button in job application form */
.job-application-form .submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    max-width: 220px;
    margin-top: 24px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.job-application-form .submit-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
}

/* Responsive design for job application form */
@media (max-width: 768px) {
    .job-application-form .form-columns {
        flex-direction: column;
    }

    .job-application-form .form-column {
        min-width: 100%;
    }
}

.job-application-form {
    transition: max-height 0.4s ease, opacity 0.4s ease;
    overflow: hidden;
    max-height: 1100px;
    opacity: 1;
}

.job-application-form.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.job-text .icon {
    margin: 0 6px;
}

/* Job Detail Section */
.job-detail {
    margin-top: 24px;
    padding: 18px;
    background: #f0f4ff;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job-detail p {
    margin-bottom: 18px;
    line-height: 1.7;
    overflow-wrap: break-word;
    white-space: normal;
}

.job-detail strong {
    color: #1e3a8a;
    font-weight: 700;
}

/* Job Meta */
.job-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #4b5563;
    flex-wrap: wrap;
}
.job-content-wrapper.has-picture .job-meta {
    flex-direction: column; /* Stack meta items vertically in the first row */
    gap: 12px;
    margin-bottom: 0; /* Remove margin since it’s in the first row */
}

.meta-item {
    display: flex;
    align-items: center;
    background: #f0f4ff;
    padding: 8px 14px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    flex: 1;
    min-width: 140px;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.meta-item .icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.meta-item:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

/* Color variations for meta-items */
.meta-item:nth-child(1) { background: #e0f2fe; }
.meta-item:nth-child(2) { background: #dbeafe; }
.meta-item:nth-child(3) { background: #ede9fe; }
.meta-item:nth-child(4) { background: #d1fae5; }

/* Ensure job-image consistency */
.job-image {
    flex: 0 0 auto;
    max-width: 320px;
}

.job-img {
    max-width: 100%;
    max-height: 220px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Application Form Section */
#application-form-section {
    margin-top: 36px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .job-image {
        max-width: 100%;
        margin-bottom: 18px;
    }

    .job-text {
        width: 100%;
    }

    .job-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-item {
        width: 100%;
        justify-content: flex-start;
    }

    .job-text .apply-btn {
        align-self: center;
    }
}

/* Search and Filter Container */
.search-filter {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    align-items: center;
    flex-wrap: wrap;
}

/* Search Input */
.search-filter input#job-search {
    flex: 1;
    min-width: 220px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f9fafb;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.search-filter input#job-search::placeholder {
    color: #6b7280;
}

/* Filter Dropdowns */
.search-filter select {
    width: 220px;
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f9fafb;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .search-filter input#job-search,
    .search-filter select {
        width: 100%;
    }
}

/* Dashboard Styles */
.dashboard-section {
    margin-bottom: 36px;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-section h2 {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 24px;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    text-align: left;
}

.dashboard-section h2 i {
    margin-right: 12px;
    color: #3b82f6;
}

.welcome-message {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    color: #1e3a8a;
    padding: 36px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 36px;
}

.welcome-message h2 {
    color: #3b82f6;
    font-size: 2.4em;
    margin-bottom: 12px;
}

.welcome-message p {
    font-size: 1.2em;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.stat-card {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #ffffff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: scale(1.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.stat-card p {
    font-size: 2.8em;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.recent-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recent-table th,
.recent-table td {
    padding: 18px;
    text-align: left;
}

.recent-table th {
    background: linear-gradient(135deg, #1e3a8c, #1d7495);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1em;
    padding: 18px;

}

.recent-table td {
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.recent-table tr {
    transition: background 0.3s ease;
}

.recent-table tr:hover {
    background: #dbeafe;
}

.recent-table tr:last-child td {
    border-bottom: none;
}

.recent-table a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.chart-container {
    max-width: 700px;
    margin: 36px auto;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.report-builder {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.report-builder .form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.report-builder .form-column {
    flex: 1;
    min-width: 280px;
}

.report-builder .form-field {
    margin-bottom: 18px;
}

.report-builder .form-field select,
.report-builder .form-field input[type="date"],
.report-builder .form-field input[type="text"] {
    padding: 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1rem;
    background: #f9fafb;
}

.report-builder .button-group {
    justify-content: flex-start;
    gap: 12px;
}

#preview-area {
    margin-top: 24px;
}

.chart-container {
    max-width: 850px;
    margin: 0 auto;
}

/* Report List */
.report-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.report-item {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-item h3 {
    margin-bottom: 18px;
    text-align: center;
    color: #1e3a8a;
}

#report-table {
    width: 100%;
    margin-top: 24px;
}

/* Section Tabs */
.section-tabs li {
    padding: 14px 28px;
    font-size: 1.2rem;
    font-weight: 600;
}

.section-tabs li.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 12px;
    left: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #dc2626;
}

.report-item p, #preview-description {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 18px;
    line-height: 1.6;
}

.sortable-ghost {
    opacity: 0.5;
}

.chart-container {
    max-width: 100%;
    height: 320px;
}

/* Styles moved from interviews.html */
.split-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 24px;
    width: 100%;
}

.right-section,
.left-section {
    flex: 1;
    min-width: 0;
    max-width: 50%;
}

.calendar-container {
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#calendar {
    width: 100%;
    height: 650px;
    font-family: 'Inter', sans-serif;
}

.fc-event {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #2563eb;
    color: #fff;
    font-size: 15px;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
}

.fc-daygrid-day.has-events .fc-daygrid-day-number::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
}

.modal-content select,
.modal-content textarea,
.modal-content input {
    width: 100%;
    margin: 12px 0;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
}

#selected-date {
    background: #e5e7eb;
    cursor: not-allowed;
}

.notes-container textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    background: #f9fafb;
}

#day-events-modal .modal-content {
    width: 550px;
    max-height: 85vh;
    overflow-y: auto;
}

.event-list {
    margin-top: 12px;
}

.event-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

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

.reschedule-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 12px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.reschedule-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-2px);
}

#reschedule-modal .modal-content {
    width: 420px;
}

.note {
    border: 1px solid #bfdbfe;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.notes-container {
    margin-top: 24px;
}

.edit-note-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    margin-top: 6px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.edit-note-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.delete-note-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    margin-top: 6px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.delete-note-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.filter-container {
    margin-bottom: 18px;
}

.filter-container label {
    margin-right: 12px;
    font-weight: 600;
    color: #1e3a8a;
}



.attached-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.delete-file-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.95em;
    transition: background 0.3s ease;
}

.delete-file-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.attached-files-list {
    margin-top: 12px;
}

.view-notes-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

.view-notes-btn:hover {
    background: linear-gradient(135deg, #357abd, #2b6cb0);
    transform: translateY(-2px);
}

.view-notes-btn:active {
    transform: translateY(0);
}

.view-notes-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

#nda-upload-modal:not(.hidden) {
    display: block !important;
}

.job-checkbox {
    margin: 12px 0;
}

.job-time-input {
    margin: 12px 0;
}

.job-time-input label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1e3a8a;
}

.job-time-input input[type="time"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
}

/* Responsive Adjustments for Tablets and Phones (max-width: 768px) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Button Group */
    .button-group {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 18px;
        gap: 12px;
    }

    .button-group .submit-btn,
    .button-group #sort-by-status,
    .button-group .filter-label,
    .button-group .filter-select,
    .button-group .search-input,
    .button-group .results-btn,
    .button-group .edit-btn,
    .button-group .delete-btn,
    .button-group .back-btn,
    .button-group .button-modal {
        width: 100%;
        margin: 6px 0;
        padding: 12px;
    }

    .button-group .search-input {
        width: 100%;
        margin-left: 0;
    }

    /* Search and Filter Container */
    .search-add-container {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .search-add-container #job-search,
    .search-add-container #status-filter,
    .search-add-container .submit-btn {
        width: 100%;
        margin: 6px 0;
    }

    /* Search Filter */
    .search-filter {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .search-filter input#job-search,
    .search-filter select {
        width: 100%;
        min-width: unset;
        margin: 6px 0;
    }

    /* Tables */
    .submissions-table,
    .jobs-table {
        font-size: 15px;
    }

    .submissions-table th,
    .submissions-table td,
    .jobs-table th,
    .jobs-table td {
        padding: 10px;
        max-width: none;
        min-width: 0;
        font-size: 13px;
    }

    .submissions-table th:nth-child(12),
    .submissions-table td:nth-child(12) {
        max-width: none;
    }

    /* Hide less critical columns in tables for smaller screens */
    .submissions-table th:nth-child(n+7),
    .submissions-table td:nth-child(n+7),
    .jobs-table th:nth-child(n+5),
    .jobs-table td:nth-child(n+5) {
        display: none;
    }

    /* Form Layout */
    .form-columns,
    .form-rows,
    .form-row {
        flex-direction: column;
    }

    .form-field,
    .form-column {
        min-width: 100%;
        flex: 1 1 100%;
    }

    /* Modal */
    .modal-content {
        width: 96%;
        max-height: 92vh;
        padding: 18px;
        margin: 12% auto;
    }

    .close-btn {
        font-size: 22px;
        top: 6px;
        left: 18px;
    }

    /* Job Header */
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .job-header p,
    .job-header .results-btn {
        flex: 0 0 auto;
        width: 100%;
        text-align: left;
        margin: 6px 0;
    }

    /* Job Meta */
    .job-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .meta-item {
        width: 100%;
        min-width: 100%;
        justify-content: flex-start;
    }

    /* Dashboard */
    .dashboard-section {
        padding: 18px;
    }

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

    .stat-card {
        padding: 18px;
    }

    .stat-card h3 {
        font-size: 1.2em;
    }

    .stat-card p {
        font-size: 2.2em;
    }

    /* Recent Table */
    .recent-table th,
    .recent-table td {
        padding: 12px;
        font-size: 13px;
    }

    .recent-table th:nth-child(n+4),
    .recent-table td:nth-child(n+4) {
        display: none;
    }

    /* Report Builder */
    .report-builder .form-columns {
        flex-direction: column;
    }

    .report-builder .form-column {
        min-width: 100%;
    }

    /* Report List */
    .report-list {
        grid-template-columns: 1fr;
    }

    /* Split Container for Interviews */
    .split-container {
        flex-direction: column;
        align-items: center;
    }

    .right-section,
    .left-section {
        max-width: 100%;
        width: 100%;
    }

    #calendar {
        height: 450px;
    }

    /* Modal for Interviews */
    #day-events-modal .modal-content,
    #reschedule-modal .modal-content {
        width: 92%;
        max-width: 380px;
    }

    /* Login Box */
    .login-box {
        padding: 24px;
        max-width: 92%;
    }

    .login-box h1 {
        font-size: 1.7em;
    }

    /* Tabs */
    .section-tabs {
        flex-direction: column;
        gap: 6px;
    }

    .section-tabs li {
        padding: 12px;
        font-size: 1.1em;
        text-align: center;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .tab-btn {
        padding: 10px;
        font-size: 15px;
    }

    /* Slider */
    .slides {
        flex-direction: column;
    }

    .slide {
        width: 100%;
        min-height: 160px;
    }

    /* Chart Container */
    .chart-container {
        max-width: 100%;
        height: 280px;
        padding: 12px;
    }
}

/* Responsive Adjustments for Smaller Phones (max-width: 480px) */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.3em;
    }

    /* Container */
    .container {
        padding: 0 6px;
    }

    /* Buttons */
    .apply-btn,
    .submit-btn,
    .back-btn,
    .results-btn,
    .edit-btn,
    .delete-btn,
    .schedule-btn,
    .toggle-btn,
    .slide-btn {
        padding: 10px 14px;
        font-size: 15px;
    }

    /* Tables */
    .submissions-table th,
    .submissions-table td,
    .jobs-table th,
    .jobs-table td,
    .recent-table th,
    .recent-table td {
        padding: 8px;
        font-size: 12px;
    }

    /* Hide even more columns for very small screens */
    .submissions-table th:nth-child(n+4),
    .submissions-table td:nth-child(n+4),
    .jobs-table th:nth-child(n+3),
    .jobs-table td:nth-child(n+3) {
        display: none;
    }

    /* Form Fields */
    .form-field input,
    .form-field textarea,
    .form-field select,
    .job-application-form .form-column input,
    .modal-content input,
    .modal-content textarea,
    .modal-content select {
        font-size: 15px;
        padding: 8px;
    }

    /* Modal */
    .modal-content {
        padding: 12px;
        width: 99%;
    }

    .close-btn,
    .modal-close {
        font-size: 20px;
        left: 12px;
    }

    /* Job Item */
    .job-item,
    .job {
        padding: 12px;
    }

    /* Job Header */
    .job-header h3 {
        font-size: 1.2em;
        min-width: 0;
    }

    /* Job Image */
    .job-img {
        max-height: 160px;
    }

    /* Dashboard */
    .dashboard-section h2 {
        font-size: 1.7em;
    }

    .welcome-message h2 {
        font-size: 2em;
    }

    .welcome-message p {
        font-size: 1.1em;
    }

    /* Calendar */
    #calendar {
        height: 350px;
    }

    .fc-event {
        font-size: 13px;
        padding: 4px;
    }

    /* Login Box */
    .login-box {
        padding: 18px;
    }

    .login-box input[type="text"],
    .login-box input[type="password"] {
        padding: 10px;
        font-size: 15px;
    }

    /* Chart Container */
    .chart-container {
        height: 220px;
    }
}

.chatbot-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s ease, transform 0.3s ease;
}

.chatbot-icon:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: scale(1.12);
}

.chatbot-icon i {
    font-size: 28px;
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-height: 550px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-container.hidden {
    display: none;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 700;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chatbot-close:hover {
    color: #ef4444;
}

  /* Chatbot Messages */
  .chatbot-messages {
      flex: 1;
      padding: 15px;
      overflow-y: auto;
      background-color: #f9f9f9;
  }

  .chatbot-message {
      margin-bottom: 10px;
      padding: 10px 15px;
      border-radius: 8px;
      max-width: 80%;
      word-wrap: break-word;
      font-size: 14px;
      line-height: 1.4;
  }

  .user-message {
      background-color: #3498db;
      color: #fff;
      margin-left: auto;
      border-bottom-right-radius: 2px;
  }

  .bot-message {
      background-color: #e0e0e0;
      color: #333;
      margin-right: auto;
      border-bottom-left-radius: 2px;
  }

  .bot-message.error {
      background-color: #f8d7da;
      color: #721c24;
  }

  .bot-message ul {
      list-style: none;
      padding: 0;
      margin: 10px 0 0;
  }

  .bot-message ul li {
      margin-bottom: 5px;
  }

  .bot-message ul li a {
      color: #3498db;
      text-decoration: none;
      font-weight: 500;
  }

  .bot-message ul li a:hover {
      text-decoration: underline;
  }

  /* Chatbot Input */
  .chatbot-input {
      display: flex;
      padding: 10px;
      background-color: #fff;
      border-top: 1px solid #ddd;
  }

  .chatbot-input input {
      flex: 1;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 8px 0 0 8px;
      font-size: 14px;
      outline: none;
      transition: border-color 0.3s ease;
  }

  .chatbot-input input:focus {
      border-color: #3498db;
  }

  .chatbot-input button {
      padding: 10px 15px;
      background-color: #3498db;
      color: #fff;
      border: none;
      border-radius: 0 8px 8px 0;
      cursor: pointer;
      font-weight: 600;
      transition: background-color 0.3s ease;
  }

  .chatbot-input button:hover {
      background-color: #2980b9;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
      .chatbot-container {
          width: 90%;
          max-height: 400px;
          bottom: 80px;
          right: 5%;
      }

      .chatbot-icon {
          width: 50px;
          height: 50px;
          bottom: 15px;
          right: 15px;
      }

      .chatbot-icon i {
          font-size: 20px;
      }

      .chatbot-header h3 {
          font-size: 1em;
      }

      .chatbot-message {
          font-size: 13px;
          padding: 8px 12px;
      }
  }

  @media (max-width: 480px) {
      .chatbot-container {
          width: 95%;
          max-height: 350px;
          bottom: 70px;
      }

      .chatbot-icon {
          width: 45px;
          height: 45px;
      }

      .chatbot-input input {
          font-size: 12px;
      }

      .chatbot-input button {
          padding: 8px 12px;
          font-size: 14px;
      }
  }
/* Container for each job with custom-checkbox class */
.job.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Subtle hover effect for the job container */
.job.custom-checkbox:hover {
    background-color: #f5f5f5; /* Light gray background on hover */
}

/* Hide the default checkbox */
.job.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Custom checkbox styling */
.job.custom-checkbox input[type="checkbox"] + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Arial', sans-serif;
    color: #333; /* Dark gray for readability */
    font-weight: 400; /* Normal weight for clarity */
    user-select: none;
}

/* Custom checkbox square */
.job.custom-checkbox input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #666; /* Medium gray border */
    border-radius: 3px;
    background-color: #fff;
    transition: all 0.2s ease;
}

/* Checkmark when checked */
.job.custom-checkbox input[type="checkbox"]:checked + label:before {
    background-color: #007bff; /* Single blue color when checked */
    border-color: #007bff;
}

/* Simple checkmark */
.job.custom-checkbox input[type="checkbox"]:checked + label:after {
    content: '\2713'; /* Checkmark symbol */
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Username styling */
.job.custom-checkbox input[type="checkbox"] + label {
    line-height: 1.5;
}

/* Subtle checked state for username */
.job.custom-checkbox input[type="checkbox"]:checked + label {
    color: #007bff; /* Match the checkbox color for consistency */
}
.fas {
  padding: 0.25rem; /* Adds 4px padding around all icons */
}

/* Detail Cards */
        .detail-card {
            background: #ffffff;
            border: 1px solid #bfdbfe;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .detail-card h3 {
            font-size: 1.4em;
            color: #1e3a8a;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-card p {
            font-size: 1em;
            color: #4b5563;
            line-height: 1.6;
        }
/* Fixed Apply Bar */
        .fixed-apply-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            padding: 12px;
            text-align: center;
            z-index: 100;
            box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        }

        .fixed-apply-bar .apply-btn {
            padding: 12px 24px;
            font-size: 1.1em;
            border-radius: 8px;
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
            display: block;
        }

    /* Add to existing styles.css to limit jobs to 3 per row */
.jobs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.job-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

/* Optional: Responsive adjustments */
@media (max-width: 1024px) {
    .jobs-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jobs-container {
        grid-template-columns: 1fr;
    }
}
.cta-banner {
    background-color: #f4f7fa; /* Light background for contrast */
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-banner h2 {
        text-align: center;
    }

.cta-banner p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Responsive design */
@media (max-width: 768px) {
    .cta-banner {
        padding: 1.5rem;
    }
    
    .cta-banner h2 {
        font-size: 1.5rem;
    }
    
    .cta-banner p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.job-description-preview {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0.5rem 0;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}



.job-item {
    position: relative; /* Ensure tooltip is positioned relative to job item */
}

.job-description-tooltip {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Below the job item */
    left: 0;
    right: 0;
    background-color: #fff;
    color: #4a4a4a;
    padding: 0.75rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-size: 0.95rem;
    line-height: 1.4;
    max-width: 100%;
    border: 1px solid #e0e0e0;
}

.job-item:hover .job-description-tooltip,
.job-item:focus-within .job-description-tooltip {
    display: block; /* Show on hover or focus */
}

/* Ensure tooltip doesn't overflow on small screens */
@media (max-width: 768px) {
    .job-description-tooltip {
        font-size: 0.9rem;
        padding: 0.5rem;
        top: calc(100% + 5px); /* Slight offset for mobile */
    }
}



/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 24px 0;
    position: relative;
    overflow: visible;
    opacity: 0.92;
    display: flex;
    align-items: center;
    min-height: 80px;
    z-index: 1000;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    opacity: 0.98;
    width: 100%;
    position: relative;
}

/* User Info (Inside Header) */
.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1002; /* Above header content */
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid #fff;
    display: block;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

/* User Dropdown */
.user-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    z-index: 1002;
}

.user-dropdown.show {
    display: block;
    border-radius: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #e0f2fe;
    border-radius: 8px;

}

.dropdown-item i {
    margin-right: 8px;
}

/* Sidebar */
.sidebar {
    width: 60px; /* Collapsed width (icons only) */
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* Full viewport height */
    padding-top: 20px;
    overflow-y: auto; /* Allow vertical scrolling if needed */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    z-index: 1001; /* Above header */
    transition: width 0.3s ease; /* Smooth width transition */
}

.sidebar.expanded {
    width: 250px; /* Expanded width (icons + text) */
}

/* Toggle Button (Inside Sidebar) */
.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
    display: block;
    margin: 0 auto 10px; /* Center and space below */
    transition: transform 0.3s ease;
    z-index: 1003; /* Ensure clickability */
}

.toggle-btn:hover {
    color: #e0f2fe;
}

.sidebar.expanded .toggle-btn {
    transform: rotate(90deg); /* Rotate hamburger icon when expanded */
}

/* Sidebar Links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    width: 250px; /* Fixed width to prevent content shift */
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, padding-left 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping */
}
/* Hover effect for sidebar when not pinned */
.sidebar:not(.pinned):hover {
    width: 250px; /* Expand to full width on hover */
}

.sidebar:not(.pinned):hover .sidebar-item span {
    opacity: 1; /* Show text on hover */
}
.sidebar-item i {
    margin-right: 10px;
    width: 24px; /* Fixed width for icons to align */
    text-align: center;
}

.sidebar-item span {
    opacity: 0; /* Hidden in collapsed state */
    transition: opacity 0.3s ease;
}

.sidebar.expanded .sidebar-item span,
.sidebar:hover .sidebar-item span {
    opacity: 1; /* Visible in expanded state or on hover */
}

.sidebar-item:hover {
    background: #2563eb;
}

.sidebar-item.active {
    background: #3b82f6;
}

.content {
    margin-left: 60px; /* Match collapsed sidebar width */
    padding: 24px 0;
    position: relative;
    transition: margin-left 0.3s ease; /* Smooth content shift */
    min-height: calc(100vh - 80px); /* Account for header height */
}

.sidebar.expanded ~ .content,
.sidebar:not(.pinned):hover ~ .content {
    margin-left: 250px; /* Match expanded sidebar width */
}

/* Profile Page Specific Styles */
.profile-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #bfdbfe;
}

.profile-info p {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #1f2937;
}

.profile-info strong {
    color: #1e3a8a;
    margin-right: 5px;
}

/* Existing styles (abridged to avoid repetition) */
.button-group {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.back-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    transform: translateY(-2px);
}

.search-input {
    width: 420px;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 15px;
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.dashboard-section {
    margin-bottom: 36px;
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.form-column {
    flex: 1;
    min-width: 280px;
}

.recent-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 18px;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}



.recent-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

.recent-table tr:hover {
    background: #dbeafe;
}

.flash.success {
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    color: #065f46;
    border: none;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flash.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border: none;
    padding: 12px;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 50px; /* Narrower collapsed state */
    }

    .sidebar.expanded {
        width: 200px;
    }

    .content {
        margin-left: 50px;
    }

    .sidebar.expanded ~ .content {
        margin-left: 200px;
    }

    .user-avatar {
        width: 30px;
        height: 30px;
    }

    .username {
        font-size: 1em;
    }

    .profile-picture {
        width: 80px;
        height: 80px;
    }

    .profile-details {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
        position: fixed;
    }

    .sidebar.expanded {
        width: 100%; /* Full width on mobile */
    }

    .content {
        margin-left: 50px;
    }

    .sidebar.expanded ~ .content {
        margin-left: 0; /* Content takes full width when sidebar expands */
    }

    .user-info {
        top: 10px;
        right: 10px;
    }

    .sidebar-item {
        padding: 10px 5px;
    }
}





/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 24px 0;
    color: #fff;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    opacity: 0.92;
    z-index: 100;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.copyright {
    font-size: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
    transform: scale(1.1);
}

.social-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments for Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        width: 100%;
        margin: 8px 0;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .social-link {
        font-size: 1.1rem;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 16px 0;
    }

    .copyright {
        font-size: 0.9rem;
    }

    .social-link {
        font-size: 1rem;
        padding: 5px;
    }
}



/* Settings Form */
.form-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.form-column {
    flex: 1;
    min-width: 280px;
}

.form-column label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-column input[type="text"],
.form-column input[type="email"],
.form-column input[type="url"],
.form-column input[type="tel"],
.form-column input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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





/* Font size control buttons */
.font-size-control {
    display: flex;
    align-items: center;
    gap: calc(0.5rem * var(--font-size-multiplier));
    margin-top: calc(0.375rem * var(--font-size-multiplier));
}

.font-size-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: calc(0.5rem * var(--font-size-multiplier));
    font-size: calc(1rem * var(--font-size-multiplier));
    padding: calc(0.5rem * var(--font-size-multiplier));
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: calc(2rem * var(--font-size-multiplier));
    height: calc(2rem * var(--font-size-multiplier));
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-size-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.font-size-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
}






/* File Input Wrapper */
.file-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Style the file input */
.file-input-wrapper input[type="file"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* File Loader (Spinner) */
.file-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #3b82f6;
}

/* Hidden class to toggle spinner visibility */
.hidden {
    display: none;
}

/* Ensure file input has padding to avoid overlap with spinner */
.file-field input[type="file"] {
    padding-right: 40px; /* Space for the spinner */
}




/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
}

/* Action Button Wrapper */
.action-btn-wrapper {
    position: relative;
    display: inline-block;
}

/* Generic Action Button Styling (Users List Table Only) */
.action-buttons button.action-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Subtle border for visibility */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Specific Action Button Styles */
.action-buttons button.action-btn.edit-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    background-color: #f59e0b !important; /* Fallback */
}

.action-buttons button.action-btn.edit-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    background-color: #d97706 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons button.action-btn.disable-btn {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    background-color: #9ca3af !important; /* Fallback */
}

.action-buttons button.action-btn.disable-btn:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    background-color: #6b7280 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons button.action-btn.unlock-btn {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    background-color: #34d399 !important; /* Fallback */
}

.action-buttons button.action-btn.unlock-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    background-color: #10b981 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons button.action-btn.reset-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important; /* Fallback */
}

.action-buttons button.action-btn.reset-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    background-color: #2563eb !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-buttons button.action-btn.delete-btn {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    background-color: #f87171 !important; /* Fallback */
}

.action-buttons button.action-btn.delete-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    background-color: #ef4444 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Icon Styling */
.action-buttons button.action-btn i {
    font-size: 16px;
    color: #ffffff !important; /* Ensure icons are white */
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Tooltip Styling */
.action-btn-wrapper .action-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a8a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn-wrapper:hover .action-tooltip {
    display: block;
}

/* Override Conflicting Styles for Action Buttons Only */
.action-buttons button.edit-btn,
.action-buttons button.delete-btn,
.action-buttons button.disable-btn,
.action-buttons button.unlock-btn,
.action-buttons button.reset-btn,
.action-buttons .toggle-form button.action-btn,
.action-buttons form button[type="submit"].action-btn {
    padding: 0 !important;
    text-decoration: none !important;
    font-weight: normal !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    min-width: unset !important;
    min-height: unset !important;
}

/* Ensure Form Buttons Inherit Correct Background */
.action-buttons .toggle-form button.action-btn.disable-btn {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    background-color: #9ca3af !important;
}

.action-buttons form button[type="submit"].action-btn.unlock-btn {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    background-color: #34d399 !important;
}

.action-buttons form button[type="submit"].action-btn.delete-btn {
    background: linear-gradient(135deg, #f87171, #ef4444) !important;
    background-color: #f87171 !important;
}

/* Restore Background Colors for Other Buttons */
button.submit-btn,
.button-group .submit-btn,
.centered-form .submit-btn,
.job-application-form .submit-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important; /* Fallback */
}

button.submit-btn:hover,
.button-group .submit-btn:hover,
.centered-form .submit-btn:hover,
.job-application-form .submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    background-color: #2563eb !important;
}

button.back-btn,
.button-group .back-btn,
.centered-form .back-btn {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    background-color: #6b7280 !important; /* Fallback */
}

button.back-btn:hover,
.button-group .back-btn:hover,
.centered-form .back-btn:hover {
    background: linear-gradient(135deg, #4b5563, #374151) !important;
    background-color: #4b5563 !important;
}

button.results-btn,
.button-group .results-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    background-color: #10b981 !important; /* Fallback */
}

button.results-btn:hover,
.button-group .results-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    background-color: #059669 !important;
}

button.apply-btn,
.job-text .apply-btn,
.fixed-apply-bar .apply-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important; /* Fallback */
}

button.apply-btn:hover,
.job-text .apply-btn:hover,
.fixed-apply-bar .apply-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    background-color: #2563eb !important;
}

button.schedule-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    background-color: #10b981 !important; /* Fallback */
}

button.schedule-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    background-color: #059669 !important;
}

button.toggle-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important; /* Fallback */
}

button.toggle-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    background-color: #2563eb !important;
}

button.slide-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    background-color: #3b82f6 !important; /* Fallback */
}

button.slide-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    background-color: #2563eb !important;
}

button.ai-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    background-color: #f59e0b !important; /* Fallback */
}

button.ai-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    background-color: #d97706 !important;
}

button.reschedule-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    background-color: #f59e0b !important; /* Fallback */
}

button.reschedule-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    background-color: #d97706 !important;
}

button.edit-note-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    background-color: #22c55e !important; /* Fallback */
}

button.edit-note-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    background-color: #16a34a !important;
}

button.delete-note-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    background-color: #ef4444 !important; /* Fallback */
}

button.delete-note-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    background-color: #dc2626 !important;
}

button.view-notes-btn {
    background: linear-gradient(135deg, #4a90e2, #357abd) !important;
    background-color: #4a90e2 !important; /* Fallback */
}

button.view-notes-btn:hover {
    background: linear-gradient(135deg, #357abd, #2b6cb0) !important;
    background-color: #357abd !important;
}

button.delete-file-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    background-color: #ef4444 !important; /* Fallback */
}

button.delete-file-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    background-color: #dc2626 !important;
}

/* Ensure Form Styling Doesn’t Interfere */
.action-buttons .toggle-form,
.action-buttons form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .action-buttons button.action-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .action-buttons button.action-btn i {
        font-size: 14px;
    }

    .action-btn-wrapper .action-tooltip {
        font-size: 12px;
        padding: 5px 10px;
    }
}







/* Sidebar Scrollbar Styling */
.sidebar {
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #3b82f6 #1e3a8a; /* Thumb and track colors for Firefox */
}

/* WebKit Scrollbar Styling (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 8px; /* Narrow scrollbar to match sleek design */
}

.sidebar::-webkit-scrollbar-track {
    background: linear-gradient(135deg, #1e3a8a, #1e40af); /* Match sidebar background */
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #2563eb); /* Blue gradient to match site theme */
    border-radius: 4px;
    border: 1px solid #1e3a8a; /* Subtle border for contrast */
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af); /* Darker on hover */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* Ensure sidebar-links container doesn't interfere with scrollbar */
.sidebar-links {
    width: 100%; /* Full width to align content properly */
    padding-bottom: 20px; /* Extra space at bottom to prevent content cutoff */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar::-webkit-scrollbar {
        width: 6px; /* Slightly narrower for mobile */
    }

    .sidebar::-webkit-scrollbar-thumb {
        border-width: 0.5px; /* Thinner border for mobile */
    }
}







input[name="tags"], #tag-filter {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
}

input[name="tags"]:focus, #tag-filter:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}
.tags-container {
    margin: 20px 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Tag Display in Table */
td .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: #e9ecef;
    color: #333;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    margin: 2px;
    position: relative;
}

.tag .remove-tag {
    display: none;
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    background: #dc3545;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
}

.tag:hover .remove-tag {
    display: inline;
}

/* Add Tag Button */
#add-tag-btn {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Autocomplete Styles (using jQuery UI) */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}
.tags-container {
    margin: 20px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f0 100%);
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tags-container:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tags-container h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tags-container h3 i {
    color: #007bff;
}

.ui-autocomplete .ui-menu-item {
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
}

.ui-autocomplete .ui-state-active {
    background-color: #007bff;
    color: #fff;
}










/* Existing styles (abridged, focusing on relevant sections) */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e3a8a;
    background: #f9fafb;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.tab-button:hover {
    background: #dbeafe;
}

.tab-content {
    display: none;
}

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

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.gauge-container {
    position: relative;
    width: 200px;
    margin: 24px auto;
    text-align: center;
}

.gauge-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    font-weight: 700;
    color: #1e3a8a;
}

.match-results {
    margin-top: 24px;
}

.match-results h3 {
    font-size: 1.6em;
    color: #1e3a8a;
    margin-bottom: 18px;
    text-align: center;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    font-size: 1.4em;
    color: #1e3a8a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card p {
    font-size: 1em;
    color: #4b5563;
    line-height: 1.6;
}

/* Styles for candidate selection table */
.candidate-selection-table {
    max-height: 400px; /* Larger area for candidate selection */
    overflow-y: auto;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.candidate-selection-table .recent-table {
    margin: 0;
}

.candidate-selection-table .recent-table th,
.candidate-selection-table .recent-table td {
    padding: 10px; /* Compact padding */
    font-size: 0.95em; /* Balanced font size */
}

.candidate-selection-table .recent-table th:first-child,
.candidate-selection-table .recent-table td:first-child {
    width: 50px; /* Fixed width for checkbox column */
    text-align: center;
}

.candidate-selection-table .recent-table td {
    vertical-align: middle;
}

/* Fallback styles for candidate-checkbox to ensure visibility */
.candidate-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6; /* Default color */
    margin: 0 auto;
}




/* Style for score cell */
.score-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.job-item .score-cell{
    align-items: left;
    justify-content: left;
    text-align: left;
    vertical-align: left;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .score-cell {
        padding: 8px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .score-cell {
        padding: 6px;
        align-items: center;
        justify-content: center;
    }
}
.tiny-gauge {
    width: 40px !important;
    height: 20px !important;
    display: inline-block;
    vertical-align: middle;
}

.score-label {
    font-weight: 700;
    font-size: 0.95em;
}

.score-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.score-link:hover .score-label {
    text-decoration: underline;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        align-items: stretch;
    }

    .left-section, .right-section {
        max-width: 100%;
    }

    .gauge-container {
        width: 150px;
    }

    .gauge-label {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .gauge-container {
        width: 120px;
    }

    .gauge-label {
        font-size: 1em;
    }

    .match-results h3 {
        font-size: 1.4em;
    }

    .detail-card h3 {
        font-size: 1.2em;
    }

    .detail-card p {
        font-size: 0.9em;
    }
}







/* Drag and Drop Area */
.drag-drop-section {
    margin-bottom: 20px;
}

.drag-drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: border-color 0.3s, background-color 0.3s;
}

.drag-drop-area.dragover {
    border-color: #007bff;
    background-color: #e7f1ff;
}

.drag-drop-area p {
    margin: 0 0 10px 0;
    color: #333;
}

.drag-drop-area input[type="file"] {
    display: none;
}

.drag-drop-area button {
    margin-top: 10px;
}



.loading-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-spinner i {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .drag-drop-area {
        padding: 15px;
    }

    .drag-drop-area p {
        font-size: 14px;
    }
    .loading-spinner {
        font-size: 14px;
    }
}







/* Reset container to ensure consistent base styling */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    text-align: inherit;
}

/* Remove sidebar margin and center container within content */
body.job-details-page .content,
body.submit-cv-general-page .content,
body.terms-privacy-page .content {
    margin-left: 0; /* Remove sidebar offset */
    width: 100%;
    max-width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: center; /* Center the container */
}

/* Ensure container is centered */
body.job-details-page .content .container,
body.submit-cv-general-page .content .container,
body.terms-privacy-page .content .container {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px; /* Match site’s max-width for consistency */
    padding: 0 24px;
    box-sizing: border-box;
}

/* Center hero section in job_details.html */
body.job-details-page .hero.dashboard-section,
body.terms-privacy-page .hero.dashboard-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 20px 10px;
    margin: 0 auto;
}

body.job-details-page .hero.dashboard-section h1,
body.job-details-page .hero.dashboard-section .hero-subtitle,
body.terms-privacy-page .hero.dashboard-section h1,
body.terms-privacy-page .hero.dashboard-section .hero-subtitle {
    width: 100%;
    text-align: center;
}

/* Dashboard section styling */
body.job-details-page .dashboard-section,
body.submit-cv-general-page .dashboard-section,
body.terms-privacy-page .dashboard-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px 10px;
}

/* Left-align content within dashboard-section */
body.job-details-page .dashboard-section > *,
body.submit-cv-general-page .dashboard-section > *,
body.terms-privacy-page .dashboard-section > * {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* Job item within dashboard-section */
body.job-details-page .dashboard-section .job.job-item {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

/* Left-align job description, requirements, and reports to */
body.job-details-page .dashboard-section .detail-card,
body.job-details-page .dashboard-section .detail-card h3,
body.job-details-page .dashboard-section .detail-card p,
body.terms-privacy-page .dashboard-section .detail-card,
body.terms-privacy-page .dashboard-section .detail-card h3,
body.terms-privacy-page .dashboard-section .detail-card p {
    text-align: left;
}

/* Job meta left-aligned */
body.job-details-page .dashboard-section .job-meta {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}

body.job-details-page .dashboard-section .meta-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

/* Form within dashboard-section */
body.job-details-page .dashboard-section .job-application-form,
body.submit-cv-general-page .dashboard-section .job-application-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    box-sizing: border-box;
    max-height: none;
    opacity: 1;
    text-align: left;
}

/* Form rows */
body.job-details-page .dashboard-section .form-rows,
body.submit-cv-general-page .dashboard-section .form-rows {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form row layout: two columns on larger screens */
body.job-details-page .dashboard-section .form-row,
body.submit-cv-general-page .dashboard-section .form-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 18px;
    justify-content: flex-start;
}

/* Form field styling with left-aligned labels */
body.job-details-page .dashboard-section .form-field,
body.submit-cv-general-page .dashboard-section .form-field {
    flex: 1 1 45%; /* Two-column layout on larger screens */
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.job-details-page .dashboard-section .form-field label,
body.submit-cv-general-page .dashboard-section .form-field label {
    text-align: left;
    width: 100%;
}

/* File input wrapper */
body.job-details-page .dashboard-section .file-input-wrapper,
body.submit-cv-general-page .dashboard-section .file-input-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    position: relative;
}

body.job-details-page .dashboard-section .file-field input[type="file"],
body.submit-cv-general-page .dashboard-section .file-field input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding-right: 50px;
    box-sizing: border-box;
}

/* Submit button */
body.job-details-page .dashboard-section .job-application-form .submit-btn,
body.submit-cv-general-page .dashboard-section .job-application-form .submit-btn {
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 1em;
    visibility: visible;
}

/* Button group for back button */
body.terms-privacy-page .dashboard-section .button-group,
body.submit-cv-general-page .dashboard-section .button-group {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 20px 10px;
}

body.terms-privacy-page .dashboard-section .button-group .back-btn,
body.submit-cv-general-page .dashboard-section .button-group .back-btn {
    text-align: center;
    padding: 12px;
    font-size: 1em;
}

/* Prevent centering of header and footer */
body.job-details-page .header,
body.job-details-page .footer,
body.submit-cv-general-page .header,
body.submit-cv-general-page .footer,
body.terms-privacy-page .header,
body.terms-privacy-page .footer {
    text-align: inherit;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    body.job-details-page .content,
    body.submit-cv-general-page .content,
    body.terms-privacy-page .content {
        margin-left: 0;
        display: flex;
        justify-content: center;
    }

    body.job-details-page .content .container,
    body.submit-cv-general-page .content .container,
    body.terms-privacy-page .content .container {
        padding: 0 15px;
    }

    body.job-details-page .dashboard-section,
    body.submit-cv-general-page .dashboard-section,
    body.terms-privacy-page .dashboard-section {
        padding: 15px 8px;
    }

    body.job-details-page .dashboard-section .job.job-item,
    body.submit-cv-general-page .dashboard-section .job-application-form,
    body.terms-privacy-page .dashboard-section .detail-card {
        padding: 15px;
    }

    /* Single-column form layout on mobile */
    body.job-details-page .dashboard-section .form-row,
    body.submit-cv-general-page .dashboard-section .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    body.job-details-page .dashboard-section .form-field,
    body.submit-cv-general-page .dashboard-section .form-field {
        flex: 1 1 100%;
        min-width: 100%;
        align-items: flex-start;
    }

    body.job-details-page .dashboard-section .form-field label,
    body.submit-cv-general-page .dashboard-section .form-field label {
        text-align: left;
    }

    body.job-details-page .dashboard-section .form-field input,
    body.job-details-page .dashboard-section .form-field select,
    body.submit-cv-general-page .dashboard-section .form-field input,
    body.submit-cv-general-page .dashboard-section .form-field select {
        font-size: 0.95em;
    }

    body.job-details-page .dashboard-section .submit-btn,
    body.submit-cv-general-page .dashboard-section .submit-btn {
        font-size: 0.95em;
        padding: 10px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body.job-details-page .content .container,
    body.submit-cv-general-page .content .container,
    body.terms-privacy-page .content .container {
        padding: 0 10px;
    }

    body.job-details-page .dashboard-section,
    body.submit-cv-general-page .dashboard-section,
    body.terms-privacy-page .dashboard-section {
        padding: 10px 5px;
    }

    body.job-details-page .dashboard-section .job.job-item,
    body.submit-cv-general-page .dashboard-section .job-application-form,
    body.terms-privacy-page .dashboard-section .detail-card {
        padding: 10px;
    }

    body.job-details-page .dashboard-section .form-field label,
    body.job-details-page .dashboard-section .form-field input,
    body.job-details-page .dashboard-section .form-field select,
    body.submit-cv-general-page .dashboard-section .form-field label,
    body.submit-cv-general-page .dashboard-section .form-field input,
    body.submit-cv-general-page .dashboard-section .form-field select {
        font-size: 0.9em;
    }

    body.job-details-page .dashboard-section .submit-btn,
    body.submit-cv-general-page .dashboard-section .submit-btn {
        font-size: 0.9em;
        padding: 8px;
        max-width: 100%;
    }
}






.form-field.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.form-field.custom-checkbox input[type="checkbox"] {
    display: none;
}

.form-field.custom-checkbox label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: calc(1rem * var(--font-size-multiplier));
    font-weight: 500;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.form-field.custom-checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #bfdbfe;
    border-radius: 4px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.form-field.custom-checkbox input[type="checkbox"]:checked + label:before {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
}

.form-field.custom-checkbox input[type="checkbox"]:checked + label:after {
    content: '\2713';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.form-field.custom-checkbox label:hover:before {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Terms Link within Checkbox Label */
.form-field.custom-checkbox .terms-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-field.custom-checkbox .terms-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer Text Link (to match social-links) */
.footer-text-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 500;
  

}

.footer-text-link i {
    font-size: 1.2rem;
}

.footer-text-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-field.custom-checkbox label {
        font-size: calc(0.95rem * var(--font-size-multiplier));
        padding-left: 28px;
    }

    .form-field.custom-checkbox label:before {
        width: 18px;
        height: 18px;
    }

    .form-field.custom-checkbox input[type="checkbox"]:checked + label:after {
        left: 5px;
        font-size: 12px;
    }

    .footer-text-link {
        font-size: 0.95rem;
        padding: 6px 10px;
    }

    .footer-text-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .form-field.custom-checkbox label {
        font-size: calc(0.9rem * var(--font-size-multiplier));
        padding-left: 26px;
    }

    .form-field.custom-checkbox label:before {
        width: 16px;
        height: 16px;
    }

    .form-field.custom-checkbox input[type="checkbox"]:checked + label:after {
        left: 4px;
        font-size: 11px;
    }

    .footer-text-link {
        font-size: 0.9rem;
        padding: 5px 8px;
    }

    .footer-text-link i {
        font-size: 1rem;
    }
}
