﻿/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */

/* ===== Theme: override AntDesign CSS variables ===== */
html {
    --ant-primary-color: #10239E;
    --ant-primary-color-hover: #1D39C4;
    --ant-primary-color-active: #061178;
    --ant-primary-color-outline: rgba(16, 35, 158, 0.2);
    --ant-primary-1: #F0F5FF;
    --ant-primary-2: #D6E4FF;
    --ant-primary-3: #ADC6FF;
    --ant-primary-4: #85A5FF;
    --ant-primary-5: #2F54EB;
    --ant-primary-6: #10239E;
    --ant-primary-7: #1D39C4;
}

:root {
    --color-primary: #10239E;
    --color-primary-hover: #1D39C4;
    --color-primary-active: #061178;
    --color-primary-bg: #F0F5FF;
    --color-primary-bg-hover: #D6E4FF;
    --color-primary-border: #ADC6FF;
    --color-primary-shadow: rgba(16, 35, 158, 0.14);
}

html,
body,
#root,
#app,
app {
    height: 100%;
}

.colorWeak {
    filter: invert(80%);
}

.ant-layout {
    min-height: 100vh;
}

canvas {
    display: block;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
    list-style: none;
}

.action {
    cursor: pointer;
}

@media (max-width: 480px) {
    .ant-table {
        width: 100%;
        overflow-x: auto;
    }

    .ant-table-thead > tr > th,
    .ant-table-tbody > tr > th,
    .ant-table-thead > tr > td,
    .ant-table-tbody > tr > td {
        white-space: pre;
    }

        .ant-table-thead > tr > th > span,
        .ant-table-tbody > tr > th > span,
        .ant-table-thead > tr > td > span,
        .ant-table-tbody > tr > td > span {
            display: block;
        }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    body .ant-design-pro > .ant-layout {
        min-height: 100vh;
    }
}


.active-hover-cursor:hover {
    cursor: pointer; /* изменение курсора на указывающий палец */
}

.disable-hover-cursor:hover {
    cursor: default;
}

.student-application-chat-page {
    padding: 8px 0;
}

.chat-history {
    height: 60vh;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.message-wrapper {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease-in;
}

.message-outgoing {
    justify-content: flex-end;
}

.message-incoming {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px 8px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    transition: transform 0.2s ease;
}

    .message-bubble:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.bubble-outgoing {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.bubble-incoming {
    background: white;
    color: #333;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
}

.message-content {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
    margin-top: 4px;
}

.bubble-outgoing .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.bubble-incoming .message-time {
    color: rgba(0, 0, 0, 0.5);
}

.chat-input {
    margin-top: 16px;
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
}

.send-row {
    margin-top: 12px;
    text-align: right;
}

.load-more-tip {
    text-align: center;
    color: rgba(0,0,0,.45);
    font-size: 12px;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    margin: 8px 0;
    backdrop-filter: blur(4px);
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Улучшенный скроллбар */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

    .chat-history::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }

.applications-list {
    margin-top: 16px;
}

.application-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

    .application-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

    .application-card.status-new {
        border-left: 4px solid #1890ff;
    }

    .application-card.status-viewed {
        border-left: 4px solid #8c8c8c;
    }

    .application-card.status-invited {
        border-left: 4px solid #722ed1;
    }

    .application-card.status-accepted {
        border-left: 4px solid #52c41a;
    }

    .application-card.status-rejected {
        border-left: 4px solid #ff4d4f;
    }

    .application-card.status-archived {
        border-left: 4px solid #fa8c16;
        opacity: 0.8;
    }

    .application-card .ant-card-head {
        border-bottom: 1px solid #f0f0f0;
        padding: 16px 24px;
    }

    .application-card .ant-card-body {
        padding: 20px 24px;
    }

.application-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

    .application-info-item .anticon {
        margin-right: 8px;
        color: #8c8c8c;
    }

.status-badge {
    font-weight: 500;
    border-radius: 12px;
    padding: 2px 8px;
}

.search-section {
    background: #fafafa;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.tabs-with-badges .ant-tabs-tab {
    position: relative;
}

.tabs-with-badges .ant-badge {
    margin-left: 8px;
}

.action-buttons .ant-btn {
    margin-bottom: 8px;
}

    .action-buttons .ant-btn:last-child {
        margin-bottom: 0;
    }

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #8c8c8c;
}

.loading-state {
    text-align: center;
    padding: 48px 24px;
}

.page-header-enhanced {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 24px;
    border-radius: 8px;
}

    .page-header-enhanced .ant-page-header-heading-title {
        color: white;
    }

    .page-header-enhanced .ant-page-header-heading-sub-title {
        color: rgba(255, 255, 255, 0.8);
    }

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

.status-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
}

.application-title {
    font-size: 16px;
    font-weight: 600;
    color: #262626;
    margin: 0;
}

.company-info {
    color: #595959;
    font-size: 14px;
}

.date-info {
    color: #8c8c8c;
    font-size: 13px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .dropdown-menu-item.danger {
        color: #ff4d4f;
    }

        .dropdown-menu-item.danger:hover {
            background-color: #fff2f0;
        }

@media (max-width: 768px) {
    .application-card .ant-row {
        flex-direction: column;
    }

    .application-card .ant-col:last-child {
        margin-top: 16px;
        text-align: left !important;
    }

    .action-buttons .ant-btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .search-section {
        padding: 12px;
    }

    .sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .page-header-enhanced .ant-page-header-content {
        flex-direction: column;
        gap: 16px;
    }

    .tabs-with-badges .ant-tabs-nav {
        margin-bottom: 16px;
    }
}

/* Filters */
.additional-filters {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d9d9d9;
}

    .additional-filters .ant-collapse {
        border: none;
    }

        .additional-filters .ant-collapse > .ant-collapse-item {
            border: none;
        }

    .additional-filters .ant-collapse-content > .ant-collapse-content-box {
        background: #F0F2F5;
    }

    .additional-filters .ant-typography {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .additional-filters .ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector,
    .additional-filters .ant-select:not(.ant-select-customize-input) .ant-select-selector,
    .additional-filters .ant-btn {
        border-radius: 20px;
    }

.ant-select-multiple .ant-select-selection-item {
    border-radius: 20px;
}

/* Global tag styling */
.ant-tag {
    border-radius: 10px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 20px;
}

.grid-3-cols {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

    .grid-3-cols .ant-card,
    .grid-3-cols .ant-btn {
        border-radius: 20px;
        height: 100%;
    }

.quick-filters {
    border-radius: 20px;
}

    .quick-filters .ant-select-show-search.ant-select:not(.ant-select-customize-input) .ant-select-selector,
    .quick-filters .ant-select:not(.ant-select-customize-input) .ant-select-selector,
    .quick-filters .ant-btn {
        border-radius: 20px;
    }


@media (max-width: 768px) {
    .grid-3-cols {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*
.ant-menu-item-selected {
    background-color: #fcc45b !important;
}*/

.search-button {
    background: var(--color-primary);
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
}

    .search-button:hover {
        background: var(--color-primary-hover);
    }

.industry-card {
    border: 1px solid #E5E7EB;
    padding: 24px 20px;
    border-radius: 12px;
}

    .industry-card:hover {
        background: var(--color-primary-bg);
        border-color: var(--color-primary);
        box-shadow: 0 4px 6px var(--color-primary-shadow);
    }

.industry-title {
    color: #111827;
    font-size: 16px;
    font-weight: 500;
}

.industry-icon {
    background-color: #ffc353 !important;
}

/*.ant-pro-top-menu {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
}

    .ant-pro-top-menu .ant-menu {
        background: #fff;
    }

    .ant-pro-top-menu .ant-menu-item {*/
        /*background-color: #fcc45b !important;*/
    /*}

        .ant-pro-top-menu .ant-menu-item:hover {
            background-color: #fcc45b !important;
        }

        .ant-pro-top-menu .ant-menu-item span {
            color: #6B7280 !important;
        }

    .ant-pro-top-menu .ant-menu-item-selected {
        background: transparent !important;*/ /* убрать жёлтый фон */
        /*border-bottom: 3px solid #3B82F6 !important;*/ /* синее подчёркивание */
    /*}

        .ant-pro-top-menu .ant-menu-item-selected span {
            color: #111827;
        }

    .ant-pro-top-menu .ant-menu-submenu {
        background: #fff;
    }

        .ant-pro-top-menu .ant-menu-submenu span {
            color: #111827;
        }

.ant-pro-top-nav-header-logo h1 {
    color: #6B7280;
}*/

.clickable-card {
    border: 1px solid #E5E7EB;
    padding: 24px 20px;
    border-radius: 12px;
}

    .clickable-card:hover {
        background: var(--color-primary-bg);
        border-color: var(--color-primary);
        box-shadow: 0 4px 6px var(--color-primary-shadow);
    }

.ant-menu-item-selected a {
    color: var(--color-primary);
}

.ant-menu-item-selected span {
    color: var(--color-primary);
}

.ant-menu-item a:hover {
    color: var(--color-primary) !important;
}

.ant-menu-light .ant-menu-item:hover, .ant-menu-light .ant-menu-item-active, .ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open, .ant-menu-light .ant-menu-submenu-active, .ant-menu-light .ant-menu-submenu-title:hover {
    color: var(--color-primary);
}


.ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item:hover::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu:hover::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-active::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-active::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-open::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-open::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-item-selected::after, .ant-menu-horizontal:not(.ant-menu-dark) > .ant-menu-submenu-selected::after {
    border-bottom: 2px solid var(--color-primary);
}

.ant-pro-top-nav-header-logo {
    cursor: pointer;
    user-select: none;
}

.ant-pro-top-nav-header-logo h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

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

.logo-poisk {
    color: #1F2937;
}

.ant-pro-top-nav-header,
.ant-pro-top-nav-header-main,
.ant-pro-top-nav-header-main .ant-menu,
.ant-pro-top-nav-header-main .ant-menu-horizontal {
    line-height: 40px;
}

.ant-pro-top-nav-header-main .ant-menu-horizontal > .ant-menu-item,
.ant-pro-top-nav-header-main .ant-menu-horizontal > .ant-menu-submenu {
    height: 56px;
    line-height: 56px;
}

/* Tags */

.quick-filters .ant-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    user-select: none;
    border-radius: 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-filters .ant-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tag-blue {
    color: #1677FF;
    border-color: #1677FF;
}

.tag-green {
    color: #52C41A;
    border-color: #52C41A;
}

.tag-yellow {
    color: #FAAD14;
    border-color: #FAAD14;
}

.tag-dark-orange {
    color: #FA541C;
    border-color: #FA541C;
}

.tag-red {
    color: #F5222D;
    border-color: #F5222D;
}

.tag-purple {
    color: #722ED1;
    border-color: #722ED1;
}

.quick-filters .ant-tag.ant-tag-blue {
    background: currentColor;
}

.quick-filters .ant-tag.ant-tag-blue span {
    color: #FFF;
}

.quick-filters .ant-tag.ant-tag-blue .anticon {
    color: #FFF;
}

/* ===== Apply modal (portal — global styles required) ===== */
.apply-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.apply-modal-subtitle {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 2px;
}

.apply-checkbox-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-size: 14px;
    color: #374151;
}

.apply-checkbox-card:hover {
    border-color: var(--color-primary);
    background: #F0FDFA;
}

.apply-checkbox-card.checked {
    border-color: var(--color-primary);
    background: #F0FDFA;
    color: var(--color-primary);
}

.apply-no-projects {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #9CA3AF;
}

.apply-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.apply-btn {
    border-radius: 20px !important;
    padding: 0 20px !important;
    height: 32px !important;
    font-size: 13px !important;
}

.ant-select-selector {
    border-radius: 20px!important;
}

/* ===== Cascader — match Select styling ===== */
.ant-cascader-picker {
    border-radius: 20px !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

.ant-cascader-picker .ant-input {
    border-radius: 20px !important;
}

.text-w-number {
    display: inline-block;
    padding-right: 10px;
}

.tag-top {
    position: absolute;
    right: 10px;
    top: 16px;
    height: auto !important;
}

.ant-pro-basicLayout-content:has(.home-page),
.ant-pro-basicLayout-content:has(.dashboard-page),
.ant-pro-basicLayout-content:has(.legal-page) {
    margin: 0 !important;
    padding: 0 !important;
    background: #edf0f4 !important;
}

body:has(.home-page) .site-header,
body:has(.dashboard-page) .site-header {
    position: sticky;
    isolation: isolate;
    background: transparent !important;
}

body:has(.home-page) .site-header::before,
body:has(.home-page) .site-header::after,
body:has(.dashboard-page) .site-header::before,
body:has(.dashboard-page) .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    width: max(0px, calc(50% - 720px));
    height: 64px;
    background: #edf0f4;
    pointer-events: none;
    z-index: 0;
}

body:has(.home-page) .site-header::before,
body:has(.dashboard-page) .site-header::before {
    left: 0;
}

body:has(.home-page) .site-header::after,
body:has(.dashboard-page) .site-header::after {
    right: 0;
}

/* Home landing polish overrides */
.home-page {
    width: 100%;
    max-width: none;
}

.home-footer {
    width: 100%;
    max-width: none;
}

.home-hero {
    min-height: 704px;
    padding: 80px 88px 56px;
    grid-template-columns: minmax(520px, 0.92fr) minmax(560px, 0.9fr);
}

.hero-title {
    max-width: 660px;
    font-size: 74px;
    line-height: 1.08;
}

.hero-text {
    max-width: 650px;
    font-size: 24px;
    line-height: 34px;
}

.hero-art {
    justify-content: flex-end;
}

.hero-art__image {
    width: min(100%, 640px);
}

.home-section {
    padding: 72px 88px;
}

.about-section {
    grid-template-columns: minmax(520px, 0.9fr) minmax(420px, 0.8fr);
    min-height: 700px;
    align-items: center;
}

.about-copy {
    max-width: 700px;
}

.about-illustration {
    justify-content: flex-end;
}

.about-illustration img {
    width: min(100%, 540px);
}

.metric-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 28px 28px 24px;
}

.metric-card::before,
.metric-card::after {
    content: "";
    position: absolute;
    width: 86px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
}

.metric-card::before {
    top: 12px;
    right: 22px;
    background-image: url("/assets/Vector%20rigth.svg");
    filter: brightness(0) invert(1);
}

.metric-card::after {
    left: 22px;
    bottom: 10px;
    background-image: url("/assets/Vector%20left.svg");
    filter: brightness(0) invert(1);
}

.metric-card__value,
.metric-card__label {
    position: relative;
    z-index: 1;
}

.metric-card__value {
    font-size: 48px;
}

.metric-card__label {
    max-width: 260px;
}

.opportunities-layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 32px;
}

.opportunity-details {
    min-height: 340px;
    padding: 36px 40px;
}

.vacancies-section,
.faq-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.vacancy-tabs {
    gap: 12px;
}

.vacancy-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vacancy-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 132px;
    padding: 24px;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dfe6fb;
    border-radius: 18px;
    color: #2637b8;
    box-shadow: 0 6px 20px rgba(37, 56, 168, 0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.vacancy-card__icon-left,
.vacancy-card > .anticon:last-child,
.vacancy-card > span:last-child {
    flex: 0 0 auto;
    color: currentColor;
}

.vacancy-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.vacancy-card__body strong,
.vacancy-card--all > span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.vacancy-card__body small {
    color: #7e8599;
    font-size: 14px;
    line-height: 1.45;
}

.vacancy-card:hover {
    background: #f1f5ff;
    border-color: #f1f5ff;
    box-shadow: none;
}

.vacancy-card:focus-visible {
    outline: 2px solid #4b5fe2;
    outline-offset: 2px;
}

.vacancy-card--all {
    background: #2637b8;
    border-color: #2637b8;
    color: #ffffff;
    box-shadow: none;
}

.vacancy-card--all:hover {
    background: #edf2ff;
    border-color: #edf2ff;
    color: #2637b8;
}

.vacancy-card--all:focus-visible {
    outline-color: #2637b8;
}

@media (max-width: 1180px) {
    .vacancy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .vacancy-grid {
        grid-template-columns: 1fr;
    }
}

.company-card {
    min-height: 328px;
    padding: 28px;
}

.faq-section > .primary-pill:last-child {
    justify-self: start;
    min-width: 116px;
    width: auto;
}

.home-footer {
    padding: 56px 88px;
}

.footer-logo,
.footer-partners img {
    filter: none;
}

.footer-logo {
    width: 172px;
}

@media (max-width: 1180px) {
    .home-hero,
    .home-section,
    .home-footer {
        padding-left: 64px;
        padding-right: 64px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.8fr);
    }
}

@media (max-width: 900px) {
    .home-hero,
    .home-section,
    .home-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .faq-section > .primary-pill:last-child {
        width: 100%;
    }
}

.home-page .hero-title {
    max-width: 760px;
    font-size: 40px;
}

.home-page .faq-more {
    justify-self: center !important;
}

.home-page .home-hero {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.home-page .section-title::before {
    content: none !important;
}
