﻿/* 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 */
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;
}

.grid-3-cols {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
}

    .grid-3-cols .ant-card,
    .grid-3-cols .ant-btn,
    .grid-3-cols .ant-tag {
        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;
    }

.hamburger {
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-right: 16px;
}

.hamburger-icon {
    display: none;
    color: #FFF;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

    .hamburger-icon span {
        position: absolute;
        width: 100%;
        height: 3px;
        background: #bdbdbd;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

        .hamburger-icon span:nth-child(1) {
            top: 0;
        }

        .hamburger-icon span:nth-child(2) {
            top: 10px;
        }

        .hamburger-icon span:nth-child(3) {
            top: 20px;
        }

    .hamburger-icon.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 10px;
    }

    .hamburger-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-icon.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 10px;
    }

@media (max-width: 768px) {
    .grid-3-cols {
        grid-template-columns: repeat(1, 1fr);
    }

    .hamburger {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        flex-direction: column;
        position: relative;
        width: 100%;
        text-align: right;
    }

    .hamburger-icon {
        display: inline-flex;
    }

    .collapse-menu {
        display: none;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 100%;
        transition: all .2s ease;
    }

    .hamburger-icon.active + .collapse-menu {
        display: block;
        opacity: 1;
    }

    .collapse-menu .ant-menu {
        display: flex;
        flex-direction: column;
    }
}

/*
.ant-menu-item-selected {
    background-color: #fcc45b !important;
}*/

.search-button {
    background: #3B82F6;
    color: #FFFFFF;
    border-radius: 8px;
    font-weight: 600;
}

    .search-button:hover {
        background: #2563EB;
    }

.industry-card {
    border: 1px solid #E5E7EB;
    padding: 24px 20px;
    border-radius: 12px;
}

    .industry-card:hover {
        background: #EFF6FF;
        border-color: #3B82F6;
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
    }

.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: #EFF6FF;
        border-color: #3B82F6;
        box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
    }

.ant-menu-item-selected a {
    color: #3B82F6;
}

.ant-menu-item-selected span {
    color: #3B82F6;
}

.ant-menu-item a:hover {
    color: #3B82F6 !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: #3B82F6;
}


.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 #3B82F6;
}

.ant-pro-top-nav-header.light .ant-pro-top-nav-header-logo h1 {
    color: black;
}

/* Tags */

.quick-filters .ant-tag {
    display: flex;
    align-items: center;
    gap: 5px;
}

.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 img {
    filter: brightness(0) invert(1);
}

.ant-select-selector {
    border-radius: 20px!important;
}

.text-w-number {
    display: inline-block;
    padding-right: 10px;
}

.tag-top {
    position: absolute;
    right: 10px;
    top: 16px;
    height: auto !important;
}