

body {
    background-color: #fff;
    color: #333;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 2px solid #000000;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-wrapper {
    position: relative;
    font-size: 30px;
    color: #0d6efd; 
}
.logo-overlay {
    position: absolute;
    font-size: 14px;
    bottom: -2px;
    right: -2px;
    background: white;
    border-radius: 50%;
    padding: 2px;
    font-weight: bold;
}
.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
}


.header-nav {
    display: flex;
    gap: 15px;
}
.nav-link-custom {
    text-decoration: none;
    color: #333;
    padding: 8px 25px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
.nav-link-custom.active {
    border-color: #0d6efd;
    background-color: #f0f8ff;
    color: #0d6efd;
}
.nav-link-custom:hover {
    background-color: #f9f9f9;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}
.icon-btn, .profile-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}
.profile-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-container {
    display: flex;
    width: 100%;
    min-height: 100vh; 
    margin: 0;
    padding: 0 40px; 
    background-color: #fff;
    box-sizing: border-box;
    position: relative; 
}
.filter-title {
    color: #000000;

}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    border-right: 2px solid #000000;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 50px; 
    background-color: #fff; 

}
.sidebar-header {

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.reset-all {
    font-size: 12px;
    color: #0d6efd;
}
.filter-group {
    margin-bottom: 30px;
}
.filter-group h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}
.custom-checkbox input {
    display: none;
}
.checkmark {
    width: 18px;
    height: 18px;
    background-color: white;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-checkbox input:checked + .checkmark {
    background-color: #ffffff;
}

.custom-checkbox input:checked + .checkmark::after {
    content: '\F272'; 
    font-family: 'bootstrap-icons';
    font-weight: 900;
    color: rgb(33, 30, 253);
    font-size: 14px;
}

.salary-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-bottom: 5px;
}
.bar {
    flex: 1;
    background-color: #ddd;
    border-radius: 3px 3px 0 0;
}
.bar:nth-child(even) { background-color: #bbb; }
.salary-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 5px;
}

.content-area {
    flex-grow: 1;
    padding-top: 30px;
    padding-left: 50px;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    background-color: white;
    padding-top: 20px
}
.search-input {
    background-color: #ffffff;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #888;
}
.search-button {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}
.job-listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
}
.job-card {
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    min-width: 312px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.microsoft-card { background-color: #d8f5d6; } 
.netflix-card { background-color: #ffb1b8; }   
.united-card { 
    background-color: #5d7fff; 
    color: rgb(0, 0, 0); 
}
.paypal-card { background-color: #badcff; }    
.apple-card { 
    background-color: #9e9e9e; 
    color: #111;
}
.ign-card { background-color: #ff6b6b; }       

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.salary {
    color: #000;
    font-size: 20px;
    font-weight: 800;
}
.per-month {
    font-size: 12px;
    font-weight: normal;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    width: 81px;
    height: 81px;
    
}
.logo-box {
    width: 50px;
    height: 50px;
    
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.job-title {
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 2px;
    font-weight: bold;
    color: #000000;
}
.company-name {
    font-size: 13px;
    margin-bottom: 15px;
    opacity: 0.8;
}


.job-details {
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.detail-row {
    margin-bottom: 6px;
}
.detail-row-flex {
    display: flex;
    gap: 15px;
}
.detail-row i, .detail-row-flex i {
    margin-right: 5px;
}


.job-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.tag {
    border: 1px solid rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.united-card .tag { border-color: rgba(255,255,255,0.4); }
.united-card .salary { color: black; }


.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.apply-button {
    flex-grow: 1;
    background-color: black;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s;
}
.apply-button:hover {
    background-color: #333;
    color: white;
}
.like-button {
    width: 42px;
    height: 42px;
    border: none;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 25%;
    border-color: #111;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    outline: 1px solid rgb(0, 0, 0);
    transition: all 0.2s; 
}
.pagination-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-top: 40px; 
    padding-bottom: 20px;
}

.page-numbers {
    display: flex;
    gap: 10px; 
}

.page-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #dee2e6; 
    background-color: white;
    border-radius: 12px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.page-btn:hover {
    background-color: #f8f9fa;
    border-color: #c0c4c9;
}

.page-btn.active {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: #f0f8ff;
}

.dots {
    display: flex;
    align-items: end;
    font-size: 18px;
    color: #888;
    padding: 0 5px;
}

.arrow-btn {
    color: #555;
}

.like-button:hover {
    
    background-color: white;
    outline: 1px solid rgb(0, 0, 0); 
}







/* --- СТИЛИ СТРАНИЦЫ РЕГИСТРАЦИИ --- */

/* Шапка с логотипом (отдельно для этой страницы) */
/* Шапка с логотипом (ссылка) */
.auth-header {
    padding: 30px 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    color: inherit; /* Цвет наследуется (чтобы не был синим как стандартная ссылка) */
    width: fit-content; /* Чтобы ссылка была только по ширине логотипа */
}

/* При наведении курсор будет меняться на "руку", так как это тег <a> */

/* Контейнер по центру */
.auth-container {
    max-width: 450px;
    margin: 50px auto; /* Отступ сверху и центрирование */
    padding: 20px;
    text-align: center;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #000;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Поля ввода (Input) */
.auth-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 50px; /* Сильное скругление */
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

.auth-input:focus {
    border-color: #0d6efd;
}

/* Группа с паролем (для иконки глаза) */
.password-group {
    position: relative;
    
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 20px;
}

/* Чекбокс и текст */
.terms-group {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    gap: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.terms-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

.terms-text a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

/* Кнопки (Register и Google) */
.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Кнопка Register */
.btn-primary {
    background-color: #0d6efd; /* Ярко-синий */
    color: white;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

/* Разделитель "or" */
.divider {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

/* Кнопка Google */
.btn-google {
    background-color: white;
    border: 1px solid #777;
    color: #333;
}

.btn-google:hover {
    background-color: #f9f9f9;
}









/* --- СТИЛИ СТРАНИЦЫ ПРОФИЛЯ --- */

.profile-container {
    max-width: 1000px;
    min-height: 100vb;
    height: 100%; /* Ограничиваем ширину контента */
    margin: 40px auto;
    padding: 0 40px;
    background-color: #fff;
   
  
}

/* Верхняя часть (Заголовок + Аватар) */
.profile-top-section {
    display: flex;
    align-items: flex-start;
    gap: 100px; /* Отступ между "My account" и аватаркой */
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    min-width: 200px;
    color: #000;
}

.user-info-block {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background-color: #f0f2f5;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    border-radius: 4px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.edit-photo-btn {
    padding: 5px 20px;
    color: #333;
    border: 1px solid #333;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

/* Форма и колонки */
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две равные колонки */
    gap: 60px; /* Расстояние между колонками */
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.required {
    color: #dc3545; /* Красная звездочка */
    margin-left: 3px;
}

.form-input {
    padding: 10px 15px;
    outline: 1px solid rgb(0, 0, 0);
    background-color: #212529;
    border-radius: 4px; /* Небольшое скругление */
    font-size: 14px;
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    outline: 1px solid #0d6efd;
}

/* Текстовые области справа */
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    resize: vertical;
}

.large-area {
    height: 150px;
}

.medium-area {
    height: 120px;
}

/* Кнопка Upload */
.upload-btn {
    color : #333;
    width: 100%;
    padding: 8px;
    background: white;
    border: 1px solid #333;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    cursor: pointer;
}

/* Поле пароля с иконкой (адаптация для профиля) */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    color :white;
}

.input-wrapper .form-input {
    width: 100%;
}

.input-wrapper .password-toggle {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: #fdfdfd;
    font-size: 18px;
}

/* Кнопка SAVE */
.save-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.save-btn {
    background-color: #0d6efd; /* Синий цвет */
    color: white;
    border: none;
    padding: 12px 0;
    width: 400px; /* Широкая кнопка */
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.save-btn:hover {
    background-color: #0b5ed7;
}

/* Активная иконка профиля в хедере */
.active-profile i {
    color: #0d6efd; /* Делаем человечка синим, когда мы в профиле */
}

/* Стили для режима "Только чтение" */
.form-input[readonly], .form-textarea[readonly] {
    background-color: #f8f9fa; /* Светло-серый фон */
    color: #555; 
    outline: 1px solid rgb(0, 0, 0) ;/* Текст чуть темнее */
    cursor: default; /* Обычный курсор, не текстовый */
    border-color: transparent; /* Убираем рамку (опционально) */
}

/* Кнопка загрузки в неактивном режиме */
.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #eee;
    border-color: #ccc;
}


/* Стили для загруженного фото */
.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет блок, не сплющиваясь */
    border-radius: 4px; /* Сохраняем скругление родителя */
}

/* Визуально показываем, что кнопка фото отключена в режиме просмотра */
.edit-photo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
    border-color: #ccc;
}





/* --- СТИЛИ СТРАНИЦЫ СООБЩЕНИЙ --- */

/* Контейнер на всю высоту экрана минус хедер */
.messages-container {
    display: flex;
    height: calc(100vh - 85px); /* 85px - примерная высота хедера */
    overflow: hidden; /* Чтобы не было двойного скролла */
}

/* --- ЛЕВАЯ КОЛОНКА (СПИСОК) --- */
.chat-list-sidebar {
    width: 350px;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto; /* Скроллится только список */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fff;
}

/* Карточка чата */
.chat-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #333; /* Черная рамка как на скрине */
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.chat-card:hover {
    background-color: #f9f9f9;
}

/* Активный чат (синяя рамка) */
.active-chat {
    border: 2px solid #0d6efd;
    background-color: white;
}

.chat-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.chat-info {
    flex-grow: 1;
    overflow: hidden;
}

.chat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.time {
    font-size: 12px;
    font-weight: 600;
}

.company-sub {
    font-size: 11px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.last-message {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Троеточие если текст длинный */
    margin: 0;
}

.pinned-status {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* --- ПРАВАЯ КОЛОНКА (ОКНО ЧАТА) --- */
.chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Область с пузырями сообщений */
.messages-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto; /* Скроллится только переписка */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Пузырь сообщения (общий стиль) */
.message-bubble {
    max-width: 60%; /* Ширина сообщения */
    padding: 15px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.msg-text {
    margin: 0;
    padding-bottom: 5px;
}

.msg-time {
    font-size: 10px;
    display: block;
    text-align: right;
    opacity: 0.7;
}

/* Входящие (Темные) */
.incoming {
    background-color: #222;
    color: white;
    align-self: flex-start; /* Слева */
    border-radius: 15px 15px 15px 0; /* Хвостик слева внизу */
}

/* Исходящие (Синие) */
.outgoing {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end; /* Справа */
    border-radius: 15px 15px 0 15px; /* Хвостик справа внизу */
}

/* Поле ввода (внизу) */
.chat-input-area {
    padding: 15px 20px;
    border-top: 2px solid #333; /* Толстая линия сверху */
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: white;
    min-height: 70px;
}

.attach-btn, .action-btn {
    background: none;
    border: 2px solid #333; /* Квадратные иконки с рамкой */
    border-radius: 6px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.attach-btn:hover, .action-btn:hover {
    background-color: #f0f0f0;
}

.message-input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #888;
}

.input-actions {
    display: flex;
    gap: 10px;
}



/* --- СТИЛИ СТРАНИЦЫ SAVES --- */

.saves-container {
    padding: 30px 40px;
}

/* Панель фильтров (Овальная рамка) */
.filter-bar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 20px;
    border: 1px solid #333; /* Рамка вокруг всех кнопок */
    border-radius: 50px;
    width: 100%;
    max-width: 900px;
}

.filter-btn {
    flex: 1; /* Кнопки занимают равную ширину */
    background: none;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #333;
}

/* Активная кнопка фильтра (синяя обводка и текст) */
.filter-btn.active {
    border-color: #0d6efd;
    color: #0d6efd;
    background-color: #f0f8ff;
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

/* Сетка карточек */
.saves-grid {
    display: grid;
    /* 5 колонок, как на скрине */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px;
}

/* Карточка вакансии */
.save-card {
    border: 1px solid #333;
    border-radius: 20px;
    padding: 20px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: 0.2s;
    cursor: pointer;
}

.save-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Карточка с синей рамкой (как Meta на скрине) */
.active-card {
    border: 2px solid #0d6efd;
}

/* Верхняя часть карточки */
.save-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.save-logo {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Бейджи статусов */
.status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.status-approved {
    background-color: #d8f5d6; /* Светло-зеленый */
    color: #28a745;
}

.status-rejected {
    background-color: #fce8e8; /* Светло-красный */
    color: #dc3545;
}

.status-invited {
    background-color: #e6f0ff; /* Светло-синий */
    color: #0d6efd;
}

.status-review {
    background-color: #fff9db; /* Светло-желтый */
    color: #e6b800; /* Темно-желтый текст */
}

/* Текст карточки */
.save-job-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color : #000000;
}

.save-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
}

/* --- ФИНАЛЬНЫЙ ФИКС ФОНА (УБИРАЕМ ЧЕРНЫЕ ПОЛОСЫ) --- */

/* 1. Самое важное: красим "подложку" всего сайта */
html {
    background-color: #ffffff !important;
}

/* 2. Красим тело страницы и растягиваем его */
body {
    background-color: #ffffff !important;
    min-height: 100vh; /* Минимальная высота - во весь экран */
    margin: 0;
    padding: 0;
}

/* 3. На всякий случай для контейнеров */
.profile-container, 
.saves-container, 
.page-container {
    background-color: #ffffff; 
}