* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: "Urbanist", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Variables */
:root {
    --primary-color: #0081A7;
    --primary-hover: #157a92;
    --secondary-color: #6c757d;
    --accent-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #ffffff;
    --black: #212529;
    --border-radius: 8px;
    --extra-border-radius: 60px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.default-image {
    width: 24px;
    height: 24px;
}

/* Alert */
.alert {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 9999;
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 20px 32px;
    -webkit-box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
    box-shadow: var(--shadow-md);
}

.alert--success {
    background-color: var(--primary-color);
}

.alert--error {
    background-color: var(--warning-color);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: "Readex Pro", sans-serif;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.btn-link {
    background: none;
    color: var(--accent-color);
    padding: 0;
    font-weight: normal;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 300;
    padding: 12px 96px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.header__logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    transition: var(--transition);
}

.header__logo:hover {
    transform: scale(1.05);
}

.header__logo-accent {
    color: var(--primary-color);
}

.header__nav {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.header__nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.header__nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--primary-color);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
    width: 100%;
}

.header__user {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.header__profile-link:hover {
    transform: scale(1.05);
}

.header__username {
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.header__username:hover {
    transform: scale(1.05);
}

.header__logout {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.header__logout:hover {
    color: var(--danger-color);
}

.header__login,
.header__signup {
    color: var(--primary-color);
    padding: 4px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.header__login:hover {
    background-color: var(--medium-gray);
}

.header__signup {
    border: 1px solid var(--primary-color);
    border-radius: var(--extra-border-radius)
}

.header__signup:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
}

.nav__user-img {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.header__mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition);
}

.header__mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.header__mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav__el {
    display: flex;
    align-items: center;
    gap: 8px
}

/* Job Listing Page */
.jobs-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    padding: 20px 32px;
    min-height: calc(100vh - 120px);
}

.filter-toggle {
    display: none;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 50px;
    animation: slideIn 0.5s ease-out;
}

.filter-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--medium-gray);
}

.filter-sidebar__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
}

.filter-sidebar__submit {
    background-color: var(--medium-gray);
    border: none;
    font-weight: 500;
}

.filter-sidebar__refresh {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background-color: var(--white);
}

.filter-sidebar__refresh:hover {
    text-decoration: underline;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 4px;
}

.filter-option:hover {
    background: var(--light-gray);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.filter-option label {
    font-size: 14px;
    color: var(--dark-gray);
    cursor: pointer;
    flex: 1;
}

/* Main Content Area */
.main-content {
    animation: fadeIn 0.6s ease-out;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 12px 32px;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-section__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hero-section__title {
    font-size: 24px;
    font-weight: 700;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-section__subtitle {
    font-size: 16px;
    font-weight: 400;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Recruiter Job Search */
.recruiter-search {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.recruiter-search .search-input {
    flex: 1;
}

/* Jobs Grid */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.jobs-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
}

.jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Job Card */
.job-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

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

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.job-card__left {
    display: flex;
    gap: 16px;
    flex: 1;
}

.job-card__logo {
    width: 56px;
    height: 56px;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--dark-gray);
    flex-shrink: 0;
}

.job-card__info {
    flex: 1;
}

.job-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.job-card__title:hover {
    color: var(--primary-color);
}

.job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

.job-card__salary {
    font-weight: 600;
    color: var(--primary-color);
}

.job-card__favorite,
.job-detail__favorite {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--dark-gray);
    transition: var(--transition);
    padding: 8px;
}

.job-card__favorite:hover,
.job-detail__favorite:hover {
    color: var(--danger-color);
    transform: scale(1.2);
}

.fav-image,
.detail-fav-image {
    pointer-events: none;
}

.job-card__description {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--secondary-color);
}

.job-card__deadline,
.job-card__posted {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Recruiter job card actions */
.job-card__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.job-card__recruiter-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

/* Status toggle (pill switch) */
.status-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 0;
}

.status-toggle__track {
    display: inline-block;
    width: 40px;
    height: 22px;
    border-radius: var(--extra-border-radius);
    background: var(--medium-gray);
    position: relative;
    transition: var(--transition);
}

.status-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.status-toggle[data-status="active"] .status-toggle__track {
    background: var(--success-color);
}

.status-toggle[data-status="active"] .status-toggle__thumb {
    transform: translateX(18px);
}

/* More-actions dropdown */
.job-card__more-menu {
    position: relative;
}

.job-card__more-btn {
    background: var(--light-gray);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

.job-card__more-btn:hover {
    background: var(--medium-gray);
    color: var(--black);
}

.job-card__more-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    overflow: hidden;
    z-index: 10;
}

.job-card__more-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    font-size: 14px;
    font-family: inherit;
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.job-card__more-item:hover {
    background: var(--light-gray);
}

.job-card__more-item.job-card__delete {
    color: var(--danger-color);
}

/* 404 Page */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page__code {
    font-size: 96px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.error-page__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-top: 16px;
    margin-bottom: 8px;
}

.error-page__subtitle {
    color: var(--dark-gray);
    margin-bottom: 24px;
    max-width: 480px;
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 20px;
}

.auth-container,
.roles-container,
.onboard-container,
.jobForm-container,
.profile-container {
    position: relative;
    top: 32;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 20px 56px;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
}

.jobForm-container,
.profile-container {
    margin: 0 auto;
}

.auth-logo {
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    text-align: center;
    margin-bottom: 48px;
    text-decoration: none;
}

.auth-logo-accent {
    color: var(--primary-color);
}

.auth-title,
.role-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.auth-subtitle,
.role-subtitle,
.login-text {
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.auth-subtitle a,
.login-text a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-subtitle a:hover,
.login-text a:hover {
    text-decoration: underline;
}

.google-signin {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--medium-gray);
    background: var(--white);
    color: var(--black);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.google-signin:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.google-icon {
    width: 20px;
    height: 20px
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--dark-gray);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--medium-gray);
}

.auth-divider::before {
    margin-right: 16px;
}

.auth-divider::after {
    margin-left: 16px;
}

.form-group {
    flex: 1;
    margin-bottom: 16px;
}

.double-form-group {
    display: flex;
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--black);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 156, 184, 0.1);
}

.form-input::placeholder {
    color: var(--secondary-color);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    font-size: 18px;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.auth-submit,
.role-submit {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    padding: 16px;
    margin-bottom: 16px;
    margin-top: 24px;
}

/* Roles */

.options-container {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.option-card {
    flex: 1;
    position: relative;
}

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

.option-card label {
    display: block;
    border: 2px solid var(--medium-gray);
    border-radius: 12px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--white);
    height: 100%;
}

.option-card label:hover {
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.option-card input[type="radio"]:checked+label {
    border-color: var(--primary-hover);
    background: #f0f9ff;
    box-shadow: 0 2px 8px var(--shadow-md);
}

.option-icon {
    width: 48px;
    height: 48px
}

.option-icon img {
    width: 32px;
    height: 32px
}

/* Onboarding */

label {
    display: block;
    color: var(--black);
    font-size: 14px;
    font-weight: 500;
}

.upload-div {
    display: flex;
    align-items: center;
    width: 60%;
    gap: 20px;
    position: relative;
}

.image-box {
    width: 52px;
    height: 52px;
    border-radius: 100%;
    border: 2px dashed var(--medium-gray);
    cursor: pointer;
    flex-shrink: 0;
}

.upload-area {
    display: flex;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-icon {
    width: 24px;
    height: 24px;
}

.upload-text {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.file-uploaded,
.file-uploaded-error {
    display: none;
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.file-uploaded-error {
    color: var(--danger-color);
}

.has-file .file-uploaded {
    display: flex;
}

.has-file .image-box {
    border: 1px dashed var(--success-color);
    background-color: var(--medium-gray);
}

.has-error .image-box {
    border: 1px dashed var(--danger-color);
    background-color: var(--medium-gray);
}


.has-file .upload-text {
    display: none;
}

.has-file .upload-icon {
    display: none;
}

.has-error .upload-text {
    display: none;
}

.has-error .upload-icon {
    display: none;
}

/* Upload area error state */

.upload-area.has-error .upload-text {
    color: #dc2626;
}

/* Show error state instead of success when there's an error */
.upload-area.has-error .file-uploaded {
    display: none;
}

.upload-area.has-error .file-uploaded-error {
    display: flex;
}

input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea::placeholder {
    color: #9ca3af;
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--light-gray);
    color: var(--dark-gray);
    cursor: not-allowed;
}

/* Rich text editor (basic WYSIWYG) */
.rte {
    margin-bottom: 4px;
}

.rte-toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.rte-toolbar__btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: var(--white);
    color: var(--black);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.rte-toolbar__btn--bold {
    font-weight: 700;
}

.rte-toolbar__btn--italic {
    font-style: italic;
}

.rte-toolbar__btn:hover {
    border-color: #0ea5e9;
}

.rte-toolbar__btn.is-active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: var(--white);
}

.rte-editor {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
    transition: border-color 0.3s ease;
}

.rte-editor:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.rte-editor ul {
    padding-left: 24px;
}

input[type="text"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

input[type="text"]::placeholder {
    color: #9ca3af;
}

.interest-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.tag-container {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.interest-tag {
    background-color: var(--medium-gray);
    color: var(--primary-hover);
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: tagSlideIn 0.2s ease-out;
}

/* button:disabled {
    background-color: #ccc !important;
    color: #666;
    cursor: not-allowed;
} */


/* @keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
} */

.tag-remove {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.tag-remove:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.interest-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    min-width: 120px;
    padding: 4px;
    font-size: 14px;
    font-family: inherit;
}

.interest-input::placeholder {
    color: #9ca3af;
}

.interest-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.interest-limit-reached {
    color: #f59e0b;
    font-weight: 500;
}

.interest-container.limit-reached {
    border-color: #f59e0b;
}

.interest-container.limit-reached .interest-input {
    opacity: 0.5;
    cursor: not-allowed;
}

.link-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 36px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 36px;
}

.button-row {
    width: 100%;
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Job Detail Page */
.job-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px 48px;
}

.job-detail__main {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.job-detail__header {
    padding: 32px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}


.job-detail__top {
    display: flex;
    gap: 20px;
    align-items: center;
}

.job-detail__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-detail__logo {
    width: 64px;
    height: 64px;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--dark-gray);
}

.job-detail__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

.job-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 16px;
    color: var(--dark-gray);
}

.job-detail__salary {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.job-detail__actions {
    display: flex;
    gap: 12px;
}

.job-apply-btn {
    padding: 12px 24px;
}

.job-detail__content {
    padding: 32px;
}

.job-detail__section {
    margin-bottom: 32px;
}

.job-detail__section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.job-detail__description {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.job-detail__responsibilities {
    list-style: none;
    padding: 0;
}

.job-detail__responsibilities ul,
.job-detail__responsibilities ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-detail__responsibilities li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.6;
}

.job-detail__responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.job-detail__tags {
    display: flex;
    gap: 12px;
}

.job-detail__tag {
    font-size: 14px;
    color: var(--primary-hover);
    list-style: none;
    padding: 4px 12px;
    background-color: var(--light-gray);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
}

/* Job Detail Sidebar */
.job-detail__sidebar {
    animation: slideIn 0.5s ease-out 0.2s both;
}

.job-sidebar-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.job-sidebar-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

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

.job-detail-item__icon {
    width: 32px;
    height: 32px;
    background: var(--light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.job-detail-item__content {
    flex: 1;
}

.job-detail-item__label {
    font-size: 12px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-detail-item__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

/* Overlay */

.hidden {
    display: none !important;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    background-color: white;
    padding: 20px 40px;
    border-radius: 5px;
    box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 5;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

.overlay-header {
    margin-bottom: 30px;
}

.overlay-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.upload-section {
    margin-bottom: 40px;
}

.upload-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.resume-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    margin-bottom: 20px;
}

.resume-upload-area:hover {
    border-color: #3b82f6;
    background: #f8faff;
}

.resume-upload-area.dragover {
    border-color: #3b82f6;
    background: #f0f8ff;
    transform: scale(1.02);
}

.resume-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.5;
}

.resume-upload-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 14px;
    color: #888;
}

.file-input {
    display: none;
}

/* File uploaded state */
.resume-upload-area.uploaded {
    background: #f0fdf4;
    border-color: #10b981;
}

.resume-upload-area.uploaded .upload-success {
    display: block;
}

.success-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: #10b981;
}

.file-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.file-info.show {
    display: block;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.file-size {
    font-size: 14px;
    color: #666;
}

.remove-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

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

.submit-btn {
    background: #0891b2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background: #0e7490;
}

.submit-btn:disabled,
.job-apply-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Error state */
.resume-upload-area.error {
    background: #fef2f2;
    border-color: #ef4444;
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
}

.error-message.show {
    display: block;
}

/* Applications Page */
.applications-page {
    padding: 32px 0;
    animation: fadeIn 0.6s ease-out;
}

.applications-header {
    margin-bottom: 32px;
}

.applications-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.applications-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.applications-table table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table th {
    background: var(--light-gray);
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: var(--black);
    border-bottom: 1px solid var(--medium-gray);
}

.applications-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: top;
}

.applications-table tr:hover {
    background: var(--light-gray);
}

.application-job {
    display: flex;
    align-items: center;
    gap: 16px;
}

.application-job__logo {
    width: 40px;
    height: 40px;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--dark-gray);
    flex-shrink: 0;
}

.application-job__info {
    flex: 1;
}

.application-job__title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.application-job__company {
    font-size: 14px;
    color: var(--dark-gray);
}

.application-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-status--active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.application-status--pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.application-status--rejected {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.view-job-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-job-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Applicants / AI Screening Page */
.applicants-page {
    padding: 32px 0;
    animation: fadeIn 0.6s ease-out;
}

.applicants-header {
    margin-bottom: 32px;
}

.applicants-header .btn-link {
    display: inline-block;
    margin-bottom: 12px;
}

.applicants-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.applicants-subtitle {
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.applicants-table {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.applicants-table table {
    width: 100%;
    border-collapse: collapse;
}

.applicants-table th {
    background: var(--light-gray);
    padding: 20px 24px;
    text-align: left;
    font-weight: 600;
    color: var(--black);
    border-bottom: 1px solid var(--medium-gray);
}

.applicants-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    vertical-align: top;
}

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

.applicants-table tr:hover {
    background: var(--light-gray);
}

.applicant-info__name {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 4px;
}

.applicant-info__email {
    font-size: 14px;
    color: var(--dark-gray);
}

.applicant-score {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.applicant-score--high {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.applicant-score--mid {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.applicant-score--low {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.applicant-score--none {
    background: var(--medium-gray);
    color: var(--dark-gray);
    font-weight: 500;
}

.applicant-feedback {
    color: var(--dark-gray);
    font-size: 14px;
    max-width: 320px;
}

/* Application Details Styles */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-reviewed {
    background: #dbeafe;
    color: #1e40af;
}

.status-accepted {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.job-detail-item__actions {
    margin-top: 8px;
}

/* Recruiter Dash */
.recruiter-dash {
    padding: 32px 200px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Header */
    .header__container {
        padding: 12px 16px;
    }

    .header__mobile-toggle {
        display: flex;
    }

    .header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        background: var(--white);
        padding: 16px 24px;
        box-shadow: var(--shadow-md);
    }

    .header__nav.header__nav--open {
        display: flex;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .header__user {
        gap: 12px;
    }

    .header__username {
        display: none;
    }

    /* Two-column layouts collapse to one column */
    .jobs-page {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .filter-sidebar {
        position: static;
        display: none;
        margin-bottom: 20px;
    }

    .filter-sidebar.filter-sidebar--open {
        display: block;
    }

    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        margin-bottom: 16px;
        background: var(--white);
        border: 1px solid var(--medium-gray);
        border-radius: var(--border-radius);
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
    }

    /* Hero section: image first, smaller and centered */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .hero-section__image {
        order: -1;
        margin-bottom: 12px;
    }

    .hero-section__image img {
        max-width: 140px;
        margin: 0 auto;
    }

    .hero-section__title {
        font-size: 18px;
    }

    .hero-section__subtitle {
        font-size: 14px;
    }

    .job-detail {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .job-detail__header {
        flex-direction: column;
        padding: 20px;
    }

    .job-detail__actions {
        width: 100%;
    }

    .job-detail__actions .btn {
        width: 100%;
    }

    /* Forms */
    .double-form-group {
        flex-direction: column;
        gap: 0;
    }

    .auth-container,
    .roles-container,
    .onboard-container,
    .jobForm-container,
    .profile-container {
        padding: 20px 24px;
    }

    .recruiter-dash {
        padding: 24px 16px;
    }

    .button-row {
        flex-direction: column;
    }

    /* Jobs header / search */
    .jobs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recruiter-search {
        flex-direction: column;
    }

    /* Tables scroll horizontally instead of overflowing */
    .applications-table,
    .applicants-table {
        overflow-x: auto;
    }

    .applications-table th,
    .applications-table td,
    .applicants-table th,
    .applicants-table td {
        padding: 12px 16px;
    }

    /* Apply-for-job modal */
    .modal {
        width: 90%;
        max-width: 400px;
        padding: 20px;
    }

    .resume-upload-area {
        padding: 32px 16px;
    }

    /* Recruiter job card */
    .job-card__header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .job-card__recruiter-actions {
        flex-wrap: wrap;
    }

    .job-card__recruiter-actions .btn {
        width: 100%;
        text-align: center;
    }
}