﻿/* 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: #0D9488;
    --ant-primary-color-hover: #0D9488;
    --ant-primary-color-active: #0F766E;
    --ant-primary-color-outline: rgba(13, 148, 136, 0.2);
    --ant-primary-1: #F0FDFA;
    --ant-primary-2: #CCFBF1;
    --ant-primary-3: #99F6E4;
    --ant-primary-4: #5EEAD4;
    --ant-primary-5: #0D9488;
    --ant-primary-6: #0D9488;
    --ant-primary-7: #0F766E;
}

:root {
    --color-primary: #0D9488;
    --color-primary-hover: #0F766E;
    --color-primary-active: #115E59;
    --color-primary-bg: #F0FDFA;
    --color-primary-bg-hover: #CCFBF1;
    --color-primary-border: #5EEAD4;
    --color-primary-shadow: rgba(13, 148, 136, 0.12);
}

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-prof {
    color: var(--color-primary);
}

.logo-compass {
    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: 56px;
}

.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;
}

.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;
}