body, html {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #eef3f2;
}

article {
    padding-top: 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.contain {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 24px;
    color: #111;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.filter-container {
    width: 100%;
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input, .filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}
.filter-input{
    width: 100%;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #0047AB;
    box-shadow: 0 0 0 2px rgba(0,71,171,0.1);
}

.salary-filter {
    display: flex;
    gap: 10px;
}

.salary-filter .filter-input {
    min-width: 120px;
}

.filter-reset {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset:hover {
    background-color: #e9ecef;
}


.noResults {
    display: none;
    text-align: center;
    -size: 18px;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 100px;
}

.jobs-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.job-card {
    width: 100%;
    width: 60vw;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

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

.job-card.hidden {
    display: none;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    font-family: 'montserratBold';
    margin: 0;
}

.job-time-added{
    font-size: 12px;
    font-family: 'montserratRegular';
    margin-top: 5px;
}

.job-salary-sub {
    font-size: 14px;
    color: #666666;
    display: block;
    font-family: 'montserratRegular';
}

.salary-item{
    margin-top: 5px;
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.job-type {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'montserratRegular';
}

.full-time {
    background-color: #eef3f2;
    color: #0fa958;
}

.part-time {
    background-color: #eef3f2;
    color: #e53e3e;
}

.contractual {
    background-color: #eef3f2;
    color: #073884;
}

.job-details {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.job-details p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.job-details i {
    color: #073884;
    width: 16px;
    text-align: center;
}

.salary {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap;
    gap: 8px;
}

.salary i {
    margin-right: 4px;
}

/* Hide empty salary sections */
.salary:empty {
    display: none;
}

/* Ensure consistent spacing */
.job-details > * {
    margin-right: 20px;
}

/* Remove any unwanted wrapping */
.job-details > p {
    flex-shrink: 0;
}

.job-company {
    font-weight: 500;
}

.job-location {
    align-items: center;
    gap: 4px;
}

.job-salary {
    color: #2E8B57 !important;
    font-weight: 500;
}

.job-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'montserratRegular';
    margin-bottom: 2vw;
}

.job-description li {
    margin-left: 3vw;
}

.job-description ul {
    margin-bottom: 3vw;
}

input::placeholder {
    color: #666;
    opacity: 0.8;
}

.sidebar {
    background-color: #073884;
    width: 6.5rem;
    min-height: 100vh;
    height: 100%;
    color: white;
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    transition: width 0.3s ease;
    overflow: hidden;
    font-family: montserratSemiBold;
    position: fixed;
    top: 0;
    left: 0;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 0;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Primary action buttons*/
.next-button, 
.preview-button, 
.submit-button {
    background-color: #073884;
    color: white;
    padding: 12px 20px;
    border: 1px solid #073884;
    border-radius: 25px;
    cursor: pointer;
    flex: 1.5; 
    min-width: 150px;
    font-family: 'montserratSemiBold';
    transition: all 0.3s ease;
}

/* Secondary action buttons (back, cancel) */
.back-button, 
.cancel-button {
    background-color: #e53e3e;
    color: white;
    padding: 12px 20px;
    border: 1px solid #e53e3e;
    border-radius: 25px;
    cursor: pointer;
    flex: 1; /* Takes up less space */
    min-width: 120px; /* Ensures minimum width */
    font-family: 'montserratSemiBold';
    transition: all 0.3s ease;
}

/* Hover states */
.next-button:hover, 
.preview-button:hover, 
.submit-button:hover {
    color: #073884;
    background-color: white;
}

.back-button:hover, 
.cancel-button:hover {
    background-color: white;
    color: #e53e3e;
}

/* Ensure buttons maintain shape when transitioning */
.modal-footer button {
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
}

/* Preview Section Styles */
.preview-section {
    margin-bottom: 20px;
}

.preview-section h3 {
    color: #073884;
    margin-bottom: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin-top: -5px;
}

.modal-company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px;
}

.modal-company-info span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

.modal-company-info i {
    margin-right: 8px;
    color: #073884;
}

/* Job modal specific styles */
.modal-title-section {
    margin-right: 30px;
}

.modal-title-section h2 {
    margin: 0;
    color: #073884;
    font-size: 1.5rem;
}

.modal-company {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Modal scrollbar styles */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* For Firefox */
.modal-body {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Ensure modal body has proper overflow settings */
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: calc(90vh - 200px);
    margin-right: 2px; /* Prevent scrollbar from sticking to edge */
}

#applicationModal .modal-content {
    max-width: 500px;
    padding: 10px;
}

#applicationModal .modal-job-title {
    font-size: 24px;
    margin-bottom: 5px;
}

#applicationModal .modal-company {
    color: #666;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.submit-button,
.cancel-button {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    flex: 1.5;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    color: #666;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-group textarea:focus {
    outline: none;
    border-color: #073884;
}

.char-count {
    text-align: right;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    padding-right: 10px;
}

.char-count.near-limit {
    color: #f0ad4e;
}

.char-count.at-limit {
    color: #dc3545;
}

/* Company Section Styles */
.company-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-company i {
    color: #073884;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.detail-item i {
    color: #073884;
    font-size: 16px;
}

/* Separator between items */
.detail-item:not(:last-child)::after {
    content: "•";
    margin-left: 24px;
    color: #ddd;
}

/* Fix for all button containers */
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    margin-top: 15px;
}

#viewJobModal .modal-footer {
    margin-top: 20px;
    border-top: 1px solid #dee2e6;
    padding: 20px;
}

/* Autofill option checkbox styling */
.autofill-option {
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.checkbox-text {
    font-family: interRegular;
    font-size: 14px;
    color: #333;
}

/* Improve hover state for checkbox container */
.checkbox-container:hover {
    color: #073884;
}

/* Checkbox focus state */
.checkbox-container input[type="checkbox"]:focus {
    outline: 2px solid rgba(7, 56, 132, 0.2);
    border-radius: 2px;
}

/* Add success message for autofill */
.autofill-success {
    color: #27AE60;
    font-size: 13px;
    margin-top: 8px;
    font-family: interRegular;
    display: none;
    text-align: center;
}

.autofill-success.visible {
    display: block;
    animation: fadeIn 0.5s;
}

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

/* File preview styling */
.file-preview {
    margin-top: 10px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    margin-top: 8px;
}

.file-info span {
    font-family: interRegular;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.resume-exists {
    background-color: #e5f8f0;
    color: #27AE60;
    border: 1px solid #c3e6d4;
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: interSemiBold;
    cursor: default;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
}

.remove-file:hover {
    color: #bd2130;
}

/* Adjust file info for mobile */
@media (max-width: 480px) {
    .file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .file-info span {
        max-width: 100%;
    }
}

/* Profile option styling */
.profile-option-container {
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.profile-info-button {
    background-color: #f8f9fa;
    color: #073884;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: interSemiBold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile-info-button i {
    margin-right: 8px;
    font-size: 16px;
}

.profile-info-button:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-info-button:active {
    transform: translateY(1px);
}

.profile-info-button.active {
    background-color: #e5f8f0;
    border-color: #c3e6d4;
    color: #27AE60;
}

/* Profile Card Styles */
.profile-card {
    display: none; /* Hidden by default */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 15px 0 25px 0;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease when shown;
}

.profile-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-card-avatar {
    width: 50px;
    height: 50px;
    background-color: #073884;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: interSemiBold;
    font-size: 18px;
    margin-right: 15px;
}

.profile-card-name {
    font-family: interSemiBold;
    font-size: 18px;
    color: #333;
    margin: 0;
}

.profile-card-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-card-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-family: interRegular;
    font-size: 14px;
}

.profile-card-info i {
    color: #073884;
    min-width: 25px;
    margin-right: 10px;
    margin-top: 2px;
}

.profile-card-info label {
    font-family: interSemiBold;
    margin-right: 5px;
    color: #555;
    min-width: 70px;
}

.profile-card-info span {
    color: #333;
    word-break: break-word;
}

/* Update Profile Info Button */
.profile-info-button {
    background-color: #073884;
    color: white;
    border: 1px solid #073884;
    border-radius: 5px;
    padding: 12px 18px;
    font-family: interSemiBold;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.profile-info-button i {
    margin-right: 10px;
}

.profile-info-button:hover {
    background-color: #2980b9;
}

.profile-info-button.active {
    background-color: #27ae60;
    border-color: #27ae60;
    color: white;
}

.profile-option-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.autofill-success {
    color: #27AE60;
    font-size: 13px;
    margin-top: 8px;
    display: none;
    font-family: interRegular;
}

.autofill-success.visible {
    display: block;
    animation: fadeIn 0.5s;
}

/* File select styling - Match the image shown */
.file-select {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    background: #fff;
    flex: 1;
}

.file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: interRegular;
    font-size: 14px;
    color: #333;
}

.file-select-button {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 0 5px;
}

.file-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.file-actions button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
}

.resume-status {
    font-size: 13px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: interRegular;
}

.resume-status.success {
    color: #27AE60;
}

/* Cover letter tip styling */
.cover-letter-tip {
    background-color: #f5f9fd;
    border-left: 3px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-family: interRegular;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Loading spinner */
.loading-resumes {
    padding: 15px;
    text-align: center;
    color: #777;
    font-family: interRegular;
}

.loading-resumes i {
    margin-right: 8px;
    color: #3498db;
    animation: spin 1s linear infinite;
}

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

/* Radio button option styling */
.resume-option,
.cover-letter-option {
    margin-bottom: 15px;
}

.resume-option label,
.cover-letter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 5px;
    font-family: interRegular;
    color: #333;
}

.resume-option input[type="radio"],
.cover-letter-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Adjust heading in form groups */
.form-group h3 {
    font-family: interSemiBold;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .file-select-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-actions {
        justify-content: flex-end;
    }
}

/* Option groups for resume and cover letter */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    position: relative;
    margin-bottom: 10px;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-family: interRegular;
    font-size: 14px;
    color: #333;
}

.option label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #fff;
}

.option input[type="radio"]:checked + label:before {
    border-color: #073884;
}

/* File Drop Area Styles */
#resumeUploadInterface {
    display: none;
    margin-top: 15px;
}

#resumeUploadInterface.active {
    display: block;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 25px;
    border: 2px dashed #073884;
    border-radius: 8px;
    transition: 0.2s;
    background-color: #f8fafc;
    min-height: 150px;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    margin: 10px 0;
}

.file-drop-area.highlight {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.file-drop-area.selected {
    border-style: solid;
    background-color: rgba(7, 56, 132, 0.05);
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-msg {
    font-size: 0.9em;
    color: #666;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.fake-btn {
    background-color: #073884;
    color: #fff;
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.file-drop-area:hover .fake-btn {
    background-color: #3498db;
}

.option input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #073884;
}

.option-content {
    margin-top: 10px;
    margin-left: 30px;
    padding: 5px 0;
}

/* File select container */
.file-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.file-actions button:hover {
    background: #f5f5f5;
}

.resume-status.error {
    color: #e53e3e;
}

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

/* Application Preview Modal Styles */
#applicationPreviewModal .modal-content {
    max-width: 700px;
}

#applicationPreviewModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#applicationPreviewModal .modal-title-section {
    display: flex;
    flex-direction: column;
}

#applicationPreviewModal h2 {
    font-family: interBold;
    margin-bottom: 5px;
    color: #1a1a1a;
}

#applicationPreviewModal .modal-company {
    font-family: interRegular;
    color: #555;
    font-size: 0.9rem;
}

#applicationPreviewModal .modal-body {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

#applicationPreviewModal .preview-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

#applicationPreviewModal .preview-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#applicationPreviewModal h3 {
    font-family: interSemiBold;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

#applicationPreviewModal .preview-item {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    font-family: interRegular;
}

#applicationPreviewModal .preview-item p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

#applicationPreviewModal .preview-item p:last-child {
    margin-bottom: 0;
}

#applicationPreviewModal .preview-item strong {
    font-family: interSemiBold;
    color: #444;
}

#applicationPreviewModal .preview-item em {
    color: #777;
}

#applicationPreviewModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #f8f9fa;
}

#applicationPreviewModal .back-button {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-family: interRegular;
    cursor: pointer;
    transition: all 0.2s ease;
}

#applicationPreviewModal .back-button:hover {
    background-color: #e5e5e5;
}

#applicationPreviewModal .submit-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-family: interSemiBold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#applicationPreviewModal .submit-button:hover {
    background-color: #0b5ed7;
}

/* Success and Error Modal Styles */
.success-modal .modal-content,
.error-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.success-icon, .error-icon {
    font-size: 48px;
    margin: 20px 0;
}

.success-icon .fa-check-circle {
    color: #28a745;
}

.error-icon .fa-exclamation-circle {
    color: #dc3545;
}

.success-modal .modal-body p,
.error-modal .modal-body p {
    font-family: interRegular;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.success-modal .ok-button,
.error-modal .ok-button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 5px;
    font-family: interSemiBold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.success-modal .ok-button:hover,
.error-modal .ok-button:hover {
    background-color: #0b5ed7;
}

/* Application Modal Styles */
.applicationModal .modal-content {
    max-width: 600px;
    margin: 0 auto;
    font-family: interRegular;
}

.applicationModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.applicationModal .modal-header h2 {
    font-family: interSemiBold;
    margin: 0;
}

.applicationModal .modal-body {
    padding: 20px 0;
}

.applicationModal .modal-company {
    font-family: interRegular;
    color: #666;
    margin-top: 0;
}

.profile-info-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.use-profile-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: interRegular;
    transition: all 0.2s ease;
}

.use-profile-button:hover {
    background-color: #e9e9e9;
}

.use-profile-button.active {
    background-color: #e6f7e6;
    border-color: #c8e6c9;
    color: #1b5e20;
}

.use-profile-button i {
    font-size: 16px;
}

.autofill-success {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f0f9f0;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.autofill-success.visible {
    opacity: 1;
    visibility: visible;
}

.autofill-success i {
    color: #2e7d32;
}

.application-form-container {
    padding-right: 10px;
}

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

.form-group h3 {
    font-family: interSemiBold;
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    display: flex;
    flex-direction: column;
}

.option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: interRegular;
    margin-bottom: 6px;
}

.option-content {
    margin-left: 24px;
    margin-top: 8px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.file-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.file-select {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.file-select-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

.file-actions {
    display: flex;
    gap: 6px;
}

.file-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.file-actions button:hover {
    background-color: #f0f0f0;
}

.resume-status {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.resume-status.success {
    color: #2e7d32;
}

.resume-status.error {
    color: #c62828;
}

.resume-status i {
    font-size: 14px;
}

.resume-selection-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1100;
    max-height: 200px;
    overflow-y: auto;
    font-family: interRegular;
    position: absolute;
}

.resume-selection-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-selection-menu li {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.resume-selection-menu li:hover {
    background-color: #f5f5f5;
}

.resume-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-item i {
    color: #e74c3c;
    font-size: 16px;
}

.resume-item-details {
    display: flex;
    flex-direction: column;
}

.resume-item-name {
    font-weight: bold;
    color: #333;
}

.resume-item-date {
    font-size: 12px;
    color: #777;
}

.file-preview {
    margin-top: 10px;
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6f7ff;
    border-radius: 4px;
    padding: 10px 15px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-info span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
    font-family: interRegular;
    font-size: 14px;
    color: #333;
}

.remove-file {
    background: none;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.remove-file:hover {
    background-color: #fff1f1;
}

/* Special styling for resume selection */
.file-select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.file-select:hover {
    border-color: #073884;
}

.file-select-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.resume-selection-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1100;
    max-height: 200px;
    overflow-y: auto;
    font-family: interRegular;
    position: absolute;
    width: 100%;
}

.file-upload-area {
    position: relative;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: #073884;
    background-color: #f5f8ff;
}

.file-upload-area i {
    font-size: 36px;
    color: #073884;
    margin-bottom: 10px;
}

/* File select styles */
.file-select {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    cursor: pointer;
    list-style: none;
}

.file-select:focus {
    outline: none;
    border-color: #3498db;
}

.file-name {
    flex-grow: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-select-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #666;
    min-width: 24px;
    text-align: center;
}

.file-select-button:hover {
    color: #333;
}

.file-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.file-actions button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    min-width: 24px;
    text-align: center;
}

.file-actions button:hover {
    color: #333;
}

.resume-status {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
}

.resume-status.success {
    color: #4CAF50;
}

.resume-status i {
    font-size: 14px;
}

/* Hide native select elements */
.select-content select,
.resume-dropdown,
#applicationModal select:not(.custom-dropdown) {
    display: none !important;
}

/* Custom dropdown styles */
.custom-dropdown {
    position: relative;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.selected-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.selected-option::after {
    content: '▼';
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .selected-option::after {
    transform: rotate(180deg);
}

.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.dropdown-option {
    padding: 8px 12px;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .file-select {
        flex-wrap: wrap;
        padding: 6px 8px;
    }

    .file-name {
        width: 100%;
        margin-bottom: 5px;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-top: 5px;
    }

    .selected-option {
        padding: 8px 12px;
    }

    .dropdown-option {
        padding: 6px 10px;
    }
}

.file-upload-area .upload-text {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    font-family: interRegular;
}

.file-upload-area .upload-hint {
    font-size: 12px;
    color: #777;
    margin: 5px 0;
    font-family: interRegular;
}

.file-upload-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Add margin and scrolling to all modals */
.modal {
    overflow-y: auto !important;
    padding: 30px 0;
}

.modal .modal-content {
    margin: 30px auto;
    max-height: calc(100vh - 60px);
    overflow-y: hidden;
    position: relative;
}

/* File input styling improvements */
.file-input-container {
    margin-bottom: 15px;
}

.custom-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: interRegular;
    transition: background-color 0.2s;
    border: none;
}

.custom-file-button:hover {
    background-color: #2980b9;
}

.custom-file-button i {
    margin-right: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
}

.file-info span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: interRegular;
    color: #333;
}

.file-info .remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 8px;
}

.file-info .remove-file:hover {
    color: #c0392b;
}

/* No resumes message */
.no-resumes-message {
    padding: 15px;
    text-align: center;
    color: #777;
    font-style: italic;
    font-family: interRegular;
}

.no-resumes-message p {
    margin: 5px 0;
}

/* Option content spacing */
.option-content {
    padding: 15px;
    margin-top: 5px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* Cover letter textarea styling */
#coverLetter {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: interRegular;
    font-size: 14px;
    resize: vertical;
    line-height: 1.5;
}

#coverLetter:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

/* Exit button styling */
.exit-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    border: none;
    z-index: 10;
}

.exit-button:hover {
    background-color: #c0392b;
}

/* Application Modal specific styles */
.application-modal .modal-content {
    background-color: white;
    border-radius: 12px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.application-modal .modal-title-section {
    width: 100%;
    text-align: center;
    padding-left: 40px; /* To account for the back button */
    padding-right: 40px;
}

.application-modal .modal-job-title {
    font-size: 20px;
    color: #111;
    margin: 0 0 3px 0;
    font-family: interBold;
}

.application-modal .modal-company {
    font-size: 16px;
    color: #666;
    font-family: interRegular;
}

.application-modal .form-group {
    margin-bottom: 20px;
}

.application-modal label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #111;
    font-family: interRegular;
}

.application-modal input[type="text"],
.application-modal input[type="email"],
.application-modal input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #073884;
    border-radius: 25px;
    font-size: 14px;
    font-family: interRegular;
    outline: none;
}

.application-modal input[type="file"] {
    display: none;
}

.application-modal label[for="resume"] {
    display: inline-block;
    padding: 12px 18px;
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 20px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-family: interRegular;
}

/* Textarea styles for Additional Information */
.application-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #073884;
    border-radius: 15px;
    font-size: 14px;
    font-family: interRegular;
    min-height: 120px;
    resize: vertical;
}

/* Buttons for application modal */
.application-modal .cancel-button,
.application-modal .submit-button {
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-family: interSemiBold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    min-width: 100px;
}

.application-modal .cancel-button {
    background-color: white;
    color: #073884;
    border: 1px solid #073884;
}

.cancel-button:hover {
    background-color: white;
    color: #e53e3e;
}

.application-modal .submit-button {
    background-color: #073884;
    color: white;
    border: 1px solid #073884;
}

.application-modal .submit-button:hover {
    color: #073884;
    background-color: white;
}

/* Job view modal styles */
.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #111;
    font-family: interBold;
}

.modal-section p, .modal-section li {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    font-family: interRegular;
    margin-left: 1vw;
}

.modal-company-description {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.modal-section ul {
    margin: 0;
    padding-left: 20px;
}

.modal-section li {
    margin-top: 1vw;
    margin-bottom: 3px;
    margin-left: 3vw;
}

.apply-button {
    background-color: #073884;
    color: white;
    padding: 12px 24px;
    border: 1px solid #073884;
    border-radius: 25px;
    cursor: pointer;
    font-family: interSemiBold;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 120px;
    margin-left: auto;
}

.apply-button:hover {
    color: #073884;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Sign In Prompt Modal Styles */
#signInPromptModal .modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 400px;
    margin: 15% auto;
    text-align: center;
}

#signInPromptModal .back {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    left: 20px;
    gap: 10px; /* Space between the icon and the text */
    width: calc(100% - 40px); /* Adjust width to prevent overflow */
}

#signInPromptModal .back-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#signInPromptModal .modal-company {
    font-size: 14px;
    margin: 4vh;
    color: #333;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

#signInPromptModal .company-name {
    color: #666;
    margin-bottom: 40px;
}

#signInPromptModal .signin-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#signInPromptModal h3 {
    font-size: 20px;
    color: #333;
}

#signInPromptModal .sign-in-button {
    background-color: #073884;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#signInPromptModal .sign-in-button:hover {
    background-color: #003380;
}

#signInPromptModal .team-message {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* File Upload Interface Styles */
.file-drop-area {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-drop-area.has-file .file-drop-message {
    display: none;
}

.file-drop-area .file-name {
    display: none;
    padding: 8px 12px;
    background-color: #073884;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
    word-break: break-all;
    font-family: 'montserratRegular';
}

.file-drop-area.dragover {
    border-color: #073884;
    background-color: rgba(7, 56, 132, 0.05);
}

.file-drop-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
}

.file-drop-message i {
    font-size: 32px;
    color: #073884;
}

.file-drop-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.hidden-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-preview {
    margin-top: 15px;
}

.file-preview:empty {
    display: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-top: 10px;
}

.file-info i {
    color: #073884;
    font-size: 18px;
}

.file-info .file-name {
    flex-grow: 1;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}

.file-info .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
}

.file-info .remove-file:hover {
    color: #c82333;
}

/* Option Group Styles */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.option {
    position: relative;
    width: 100%;
    display: block;
}

.option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.option label {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'montserratRegular';
}

.option label::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: #fff;
}

.option input[type="radio"]:checked + label {
    border-color: #073884;
    background-color: rgba(7, 56, 132, 0.05);
}

.option input[type="radio"]:checked + label::before {
    border-color: #073884;
    background-color: #073884;
    box-shadow: inset 0 0 0 4px #fff;
}

.option-content {
    margin-top: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
}

/* Responsive styles */
@media (max-width: 770px) {
    .modal-content {
        width: 95%;
        margin: 30px auto;
    }
    
    .modal-footer {
        justify-content: center;
    }
    
    .application-modal .modal-content {
        width: 90%;
    }
    
    .application-modal .submit-button,
    .application-modal .cancel-button {
        width: 100%;
    }
    
    .application-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .apply-button {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 425px) {
    .modal-content {
        width: calc(100% - 20px);
        margin: 20px auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 12px;
    }
    
    .modal-job-title {
        font-size: 16px;
    }
    
    .application-modal .cancel-button,
    .application-modal .submit-button {
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .apply-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .application-modal label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .application-modal input[type="text"],
    .application-modal input[type="email"],
    .application-modal input[type="tel"] {
        padding: 10px;
        font-size: 11px;
    }
    
    #signInPromptModal .modal-content {
        padding: 30px 15px;
    }
}