/* General styles */
body {
    background: #FFFFFF;
    min-height: 100vh;
    color: #2E2E38;
    overflow-x: hidden;
    padding-top: 56px;
    scroll-behavior: auto !important;
    display: flex;
    flex-direction: column;
}

/* Navigation styles */
.navbar {
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    padding: 0.5rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 56px;
}

.navbar-dark {
    border-bottom: 3px solid #FFE600;
}

.navbar .container {
    padding: 0;
    max-width: 100%;
    margin-left: 1rem;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    color: white !important;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.navbar-brand .badge {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 12px;
    padding: 0.35rem 0.75rem;
}

@media (min-width: 992px) {
    .navbar-brand {
        margin-left: 30px;
    }
}

#userSection {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
}

#userSection .btn-outline-light {
    border-width: 2px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#userSection .btn-outline-light:hover {
    background-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 230, 0, 0.2);
    border-color: #FFE600;
}

/* Candidate card styles */
.candidate-card {
    border: none;
    border-radius: 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
    background: #fff;
    border-left: 4px solid #e9ecef;
}

/* Compact employee cards */
.compact-employee-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.compact-employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Employee table styles */
.table-hover tbody tr:hover {
    background-color: rgba(255, 230, 0, 0.1);
}

.table-hover tbody tr.table-group-header:hover {
    background-color: transparent !important;
}

.table thead th {
    border-bottom: 2px solid #2E2E38;
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-align: center;
}

.table td {
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0.3rem;
    font-size: 0.85rem;
    line-height: 1.1;
}

.table th {
    padding: 0.5rem 0.3rem;
    font-size: 0.75rem;
    text-align: center;
    line-height: 1.1;
}

.table tbody tr {
    transition: all 0.3s ease;
}

/* Group headers */
.table-group-header {
    background-color: #f8f9fa !important;
    border-top: 2px solid #2E2E38 !important;
}

.table-group-header:first-child {
    border-top: none !important;
}

.position-group-header {
    padding: 1rem 0.75rem !important;
    font-size: 1rem;
    color: #2E2E38;
    border-bottom: 1px solid #dee2e6 !important;
}

.position-group-header .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* View toggle buttons */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

.btn-group .btn.active {
    background-color: #2E2E38;
    border-color: #2E2E38;
    color: white;
}

.btn-group .btn.active:hover {
    background-color: #1A1A24;
    border-color: #1A1A24;
}

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

.rating-high {
    border-left-color: #28a745;
}

.rating-medium {
    border-left-color: #ffc107;
}

.rating-low {
    border-left-color: #dc3545;
}

.candidate-card .card-body {
    padding: 1.5rem;
}

.candidate-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2E2E38;
    margin-bottom: 0.75rem;
}

.candidate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(46, 46, 56, 0.1);
}

.candidate-area {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background-color: #f8f9fa;
    color: #2E2E38;
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.candidate-area i {
    font-size: 0.9rem;
}

/* Стили для бейджа этапа воронки */
.candidate-area .badge {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    font-weight: normal;
    padding: 0.35rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.candidate-area .badge i {
    font-size: 0.75rem;
}

.candidate-header .btn-outline-success {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0;
    color: #2E2E38;
    border-color: #2E2E38;
}

.candidate-header .btn-outline-success:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
}

/* Candidate information */
.candidate-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.candidate-info-group {
    flex: 1;
    min-width: 300px;
}

.candidate-info-group h6 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.candidate-info-group p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.candidate-name {
    font-weight: bold;
    color: #333;
}

.candidate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.candidate-actions {
    display: flex;
    gap: 0.5rem;
}

.candidate-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #777;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.conclusion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.conclusion-text {
    white-space: pre-line;
    font-size: 0.9rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
}

.resume-dates {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #777;
}

.resume-dates p {
    margin-bottom: 0.25rem;
}

/* История перемещения по воронке */
.funnel-history {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.funnel-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    transition: background-color 0.2s;
    border-radius: 0.25rem;
}

.funnel-history-header:hover {
    background-color: #f2f2f2;
}

.funnel-history-header h6 {
    font-weight: bold;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.funnel-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.funnel-history-item {
    display: grid;
    grid-template-columns: 150px auto 1fr;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
}

.funnel-history-date {
    font-weight: 500;
    color: #555;
}

.funnel-history-stage {
    white-space: nowrap;
}

.funnel-history-comment {
    color: #666;
    font-style: italic;
}

/* Filter styles */
.filter-section .card {
    background: #FFFFFF;
    border: none;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.filter-section .card-body {
    padding: 1.25rem 1.5rem;
}

.filter-section form {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    align-items: center;
}

.search-group {
    flex: 1 1 200px;
    min-width: 100px;
}

/* Компактная панель управления для десктопа */
.desktop-controls-panel {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 0.15rem;
    flex-shrink: 0;
}

.desktop-control-item {
    flex: 1;
    position: relative;
}

.desktop-control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    color: #2E2E38;
    min-height: 45px;
    min-width: 60px;
}

.desktop-control-btn:hover,
.desktop-control-btn:focus,
.desktop-control-btn.active {
    background: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 230, 0, 0.3);
}

.desktop-control-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
    transition: all 0.2s ease;
}

.desktop-control-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Выпадающее меню для десктопной сортировки */
.desktop-dropdown {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.25rem 0;
    margin-top: 0.25rem;
    min-width: 200px;
}

.desktop-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #2E2E38;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.desktop-dropdown .dropdown-item:hover,
.desktop-dropdown .dropdown-item:focus {
    background: #FFE600;
    color: #2E2E38;
}

.desktop-dropdown .dropdown-item.active {
    background: #FFE600;
    color: #2E2E38;
    font-weight: 500;
}

.desktop-dropdown .dropdown-item i {
    color: inherit;
    opacity: 0.7;
    margin-right: 0.75rem;
}

.search-group {
    flex: 1 1 300px;
    min-width: 150px;
}

/* Скрываем старые десктопные элементы */
.sort-controls {
    display: none;
}

.button-group {
    display: none;
}

/* Стили для скрытого поиска */
.desktop-search-input {
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 0.5rem;
    display: none;
}

.desktop-search-input.slide-down {
    animation: slideDown 0.3s ease-out;
}

.desktop-search-input.slide-up {
    animation: slideUp 0.3s ease-out;
}

.desktop-search-input .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 42px;
}

.desktop-search-input .input-group-text {
    background: #f8f9fa;
    border: none;
    padding: 0.75rem;
    display: flex;
    align-items: center;
}

.desktop-search-input .input-group-text i {
    font-size: 1rem;
    opacity: 0.7;
}

.desktop-search-input .form-control {
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    height: 42px;
}

.desktop-search-input .form-control:focus {
    box-shadow: none;
    border-color: #FFE600;
}

@media (max-width: 1200px) {
    .filter-section form {
        flex-wrap: nowrap !important; /* Принудительно держим в одной строке */
        gap: 0.5rem; /* Уменьшаю зазор между элементами */
    }

    .search-group {
        flex: 1;
        min-width: 80px; /* Очень компактная версия */
    }

    .desktop-controls-panel {
        min-width: 200px; /* Максимально уменьшаю панель кнопок */
        gap: 0.1rem;
    }
    
    .desktop-control-btn {
        min-height: 38px;
        max-width: 48px;
        padding: 0.25rem 0.15rem;
    }

    /* Скрываем старые элементы */
    .sort-controls,
    .button-group {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .button-group .btn {
        flex: 1 1 100%;
    }
}

.button-group .btn i {
    font-size: 1rem;
}

/* Primary button styles */
.btn-primary {
    background-color: #2E2E38;
    border-color: #2E2E38;
    border-radius: 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #FFE600 !important;
    border-color: #FFE600 !important;
    color: #2E2E38 !important;
    transform: translateY(-1px);
}

.button-group .btn-primary {
    background-color: #2E2E38;
    border-color: #2E2E38;
}

.button-group .btn-primary:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
}

.button-group .btn-outline-secondary {
    color: #2E2E38;
    border-color: #dee2e6;
}

.button-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #2E2E38;
    border-color: #FFE600;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .filter-section form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .search-group {
        width: 100%;
        order: 1;
    }

    .sort-controls {
        width: 100%;
        order: 2;
    }

    .button-group {
        width: 100%;
        order: 3;
        justify-content: flex-start;
    }

    .button-group .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Добавляем отступ снизу */
    }

    .mobile-bottom-tabs {
        display: flex; /* Показываем на мобильных устройствах */
    }

    .news-container .sidebar {
        display: none; /* Скрываем сайдбар на мобильных */
    }

    .news-container {
        flex-direction: column;
    }

    .news-container .content {
        padding: 1rem;
    }

    /* Скрываем десктопную форму фильтрации на мобильных */
    .filter-section .search-group,
    .filter-section .sort-controls,
    .filter-section .button-group {
        display: none !important;
    }

    .filter-section {
        margin-bottom: 1rem;
    }

    .filter-section .card-body {
        padding: 0.75rem;
    }

    .filter-section form {
        gap: 0.75rem;
    }

    /* Уменьшаем переключатель языка на мобильных */
    .language-selector {
        margin-right: 0.5rem;
    }

    .language-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
        border-width: 1px;
    }

    /* Уменьшаем информацию о пользователе */
    #userSection {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .candidate-photo {
        aspect-ratio: 1;
        height: auto;
    }

    .candidate-card .row {
        flex-direction: column;
    }

    .col-md-2 {
        width: 100%;
    }

    .candidate-card .card-body {
        padding: 1.5rem;
    }

    .candidate-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .candidate-actions .btn {
        width: 100%;
    }

    .candidate-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .candidate-header .btn-outline-success {
        width: 100%;
        justify-content: center;
    }

    .candidate-rating {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .conclusion-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .content-with-sidebar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    /* Скрываем десктопные кнопки на мобильных */
    .desktop-controls-panel {
        display: none !important;
    }
}

/* Modal styles */
.modal,
.modal *,
.modal-content,
.modal-header,
.modal-body,
.modal-footer,
.modal-dialog,
.modal .btn,
.modal .form-control,
.modal .form-select,
.modal .alert {
    border-radius: 0 !important;
}

.modal {
    background: rgba(46, 46, 56, 0.85);
}

.modal-content {
    border: none;
    border-bottom: 3px solid #FFE600;
}

.modal-backdrop {
    background-color: #2E2E38;
}

.modal-backdrop.show {
    opacity: 0.85;
}

.modal-header {
    background: #2E2E38;
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(46, 46, 56, 0.1);
    padding: 1rem 1.5rem;
}

/* Form controls in modal */
.form-floating .form-control,
.form-floating .form-select {
    border-radius: 0;
    border-color: #dee2e6;
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
    border-color: #FFE600;
    box-shadow: 0 0 0 0.2rem rgba(255, 230, 0, 0.15);
}

.form-floating label {
    color: #2E2E38;
}

/* Photo preview card */
.photo-preview-card {
    border: none;
    border-radius: 0;
    border-bottom: 3px solid #FFE600;
    transition: all 0.3s ease;
}

.photo-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 46, 56, 0.1);
}

.photo-preview {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: #FFE600;
}

/* File upload buttons */
.btn-upload {
    color: #2E2E38;
    border-color: #2E2E38;
    border-radius: 0;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-upload:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
}

#resumeInfo .alert {
    border-radius: 0;
    border-left: 3px solid #FFE600;
    background: rgba(46, 46, 56, 0.02);
    border: none;
    padding: 0.75rem;
    color: #2E2E38;
    display: flex;
    align-items: center;
}

#resumeInfo .alert i {
    color: #2E2E38;
    font-size: 1.1rem;
}

#resumeInfo .alert .btn-upload {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* Pagination styles */
.pagination .page-link {
    color: #2E2E38;
    border-radius: 0;
    border-color: #dee2e6;
    padding: 0.5rem 1rem;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
}

.pagination .page-item.active .page-link {
    background-color: #2E2E38;
    border-color: #2E2E38;
    color: #FFFFFF;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    border-color: #dee2e6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.candidate-card {
    animation: fadeIn 0.5s ease-out;
}

/* User Management Styles */
#settingsButton i {
    font-size: 1.1rem;
}

/* User Management Modal */
#userManagementModal .card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(46, 46, 56, 0.05);
}

#userManagementModal .card-subtitle {
    color: #2E2E38;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

#userManagementModal .form-floating {
    margin-bottom: 0;
}

#userManagementModal .form-control-sm {
    height: 32px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0;
    border-color: #dee2e6;
    background-color: #fff;
}

#userManagementModal .form-control-sm:focus {
    border-color: #FFE600;
    box-shadow: 0 0 0 0.2rem rgba(255, 230, 0, 0.15);
}

#userManagementModal .form-check {
    margin: 0;
    padding: 0;
    height: 32px;
    display: flex;
    align-items: center;
}

#userManagementModal .form-check-input {
    margin: 0;
    margin-right: 0.5rem;
}

#userManagementModal .form-check-label {
    font-size: 0.875rem;
    color: #2E2E38;
    user-select: none;
}

#userManagementModal .btn-primary {
    height: 32px;
    font-size: 0.875rem;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #2E2E38;
    border-color: #2E2E38;
    transition: all 0.2s ease;
}

#userManagementModal .btn-primary:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
}

#userManagementModal .btn-primary i {
    font-size: 0.875rem;
}

#userManagementModal #addUserForm {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-left: 3px solid #FFE600;
    box-shadow: 0 2px 4px rgba(46, 46, 56, 0.05);
}

#userManagementModal .form-check-input:checked {
    background-color: #FFE600;
    border-color: #FFE600;
}

#userManagementModal .form-check-input:focus {
    border-color: #FFE600;
    box-shadow: 0 0 0 0.2rem rgba(255, 230, 0, 0.15);
}

#userManagementModal .table {
    margin-bottom: 0;
}

#userManagementModal .table th {
    background: #f8f9fa;
    border-bottom: 2px solid #FFE600;
    color: #2E2E38;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

#userManagementModal .table {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

#userManagementModal .table td {
    vertical-align: middle;
    color: #2E2E38;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f0f0f0;
}

#userManagementModal .table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: #fff;
    border-bottom: 2px solid #FFE600;
}

#userManagementModal .modal-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#userManagementModal .mb-3 {
    margin-bottom: 0 !important;
}

#userManagementModal .table-responsive {
    max-height: 300px;
    overflow-y: auto;
}

#userManagementModal .pagination {
    margin: 0.75rem 0 0;
    padding: 0;
}

#userManagementModal .pagination .page-link {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

#userManagementModal .table .btn-danger {
    border-radius: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

#userManagementModal .table .btn-danger:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
}

#userManagementModal .table .bi-check-lg {
    font-size: 1.2rem;
    color: #198754;
}

#userManagementModal .pagination {
    margin-top: 1rem;
    margin-bottom: 0;
}

#userManagementModal .modal-body {
    padding: 1rem;
}

#userManagementModal .card {
    margin-bottom: 1rem;
}

#userManagementModal .card:last-child {
    margin-bottom: 0;
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 0.1rem 0;
    background-color: #2E2E38;
    color: #f9f9f8;
    font-size: 0.875rem;
    text-align: center;
    flex-shrink: 0;
}

/* Аватар кандидата */
.candidate-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E2E38;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: #FFE600;
    background: linear-gradient(135deg, #2E2E38 0%, #1a1a22 100%);
    position: relative;
    z-index: 1;
}

.rating-high .avatar-placeholder {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.rating-medium .avatar-placeholder {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
}

.rating-low .avatar-placeholder {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%);
}

/* Заключение нейросети */
.ai-conclusion {
    background: #f8f9fa;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: 0;
}

.rating-high .ai-conclusion {
    border-left-color: #28a745;
}

.rating-medium .ai-conclusion {
    border-left-color: #ffc107;
}

.rating-low .ai-conclusion {
    border-left-color: #dc3545;
}

.conclusion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(46, 46, 56, 0.1);
    padding-bottom: 0.75rem;
}

.conclusion-header .rating-value {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #6c757d;
    flex-shrink: 0;
}

/* Стили для элемента рейтинга без контекста conclusion-header */
.rating-value {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #6c757d;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rating-high .rating-value {
    background: #28a745;
}

.rating-medium .rating-value {
    background: #ffc107;
    color: #2E2E38;
}

.rating-low .rating-value {
    background: #dc3545;
}

.rating-high .conclusion-header .rating-value {
    background: #28a745;
}

.conclusion-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.conclusion-text {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2E2E38;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .conclusion-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

.vacancy-selector .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 180px;
    border-radius: 0;
}

.vacancy-selector .form-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.vacancy-selector .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.vacancy-selector .form-select option {
    background-color: #2c3e50;
    color: white;
}

.vacancy-selector .form-select:focus option:checked {
    background-color: #3498db;
}

/* Стили для кнопки "Перевод по рейтингу" */
.btn-outline-warning {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 160px;
    height: 38px;
    padding: 0 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-color: #FFE600;
    color: #FFE600;
    font-size: 0.875rem;
}

.btn-outline-warning:hover {
    background-color: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
}

.btn-outline-warning i {
    font-size: 1rem;
    color: #FFE600;
}

.btn-outline-warning:hover i {
    color: #2E2E38;
}

@media (max-width: 1200px) {
    .filter-section form {
        flex-wrap: nowrap !important; /* Принудительно держим в одной строке */
        gap: 0.5rem; /* Уменьшаю зазор между элементами */
    }

    .search-group {
        flex: 1;
        min-width: 80px; /* Очень компактная версия */
    }

    .desktop-controls-panel {
        min-width: 200px; /* Максимально уменьшаю панель кнопок */
        gap: 0.1rem;
    }
    
    .desktop-control-btn {
        min-height: 38px;
        max-width: 48px;
        padding: 0.25rem 0.15rem;
    }

    /* Скрываем старые элементы */
    .sort-controls,
    .button-group {
        display: none !important;
    }
}

/* Боковое меню с воронкой */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    color: #fff;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

/* Стили для скроллбара (Webkit - Chrome, Safari, новые версии Edge) */
.sidebar::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Показываем скроллбар при прокрутке и наведении */
.sidebar:hover::-webkit-scrollbar-thumb,
.sidebar:active::-webkit-scrollbar-thumb,
.sidebar:focus::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Стили для Firefox */
.sidebar {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar:hover,
.sidebar:active,
.sidebar:focus {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Скрываем скроллбар когда не скроллим */
.sidebar:not(:hover)::-webkit-scrollbar-thumb {
    background-color: transparent;
}

/* Скрытый режим */
.sidebar.collapsed {
    transform: translateX(-280px);
}

/* Компактный режим */
.sidebar.compact {
    width: 65px;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar.compact .sidebar-header {
    padding: 15px;
    justify-content: center;
}

.sidebar.compact .sidebar-header h3 {
    display: none;
}

.sidebar.compact .funnel-stage {
    padding: 12px;
    justify-content: center;
}

.sidebar.compact .funnel-stage:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar.compact .funnel-stage.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFE600;
}

.sidebar.compact .funnel-stage-name,
.sidebar.compact .funnel-stage-description {
    display: none;
}

.sidebar.compact .funnel-stage-count {
    margin-left: 0;
    font-size: 0.8rem;
    padding: 3px 6px;
    min-width: 28px;
}

.sidebar.compact .funnel-stage:hover .funnel-stage-tooltip {
    display: none;
}

/* Полностью отключаем всплывающие подсказки */
.funnel-stage-tooltip {
    display: none !important;
}

.sidebar-header {
    padding: 15px 20px;
    background-color: #1A1A24;
    border-bottom: 3px solid #FFE600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-toggle {
    background: rgba(26, 26, 36, 0.5);
    color: #FFE600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

/* Стили для обычного (развернутого) состояния */
.sidebar .sidebar-toggle {
    position: relative;
    right: 0;
}

/* Стили для компактного состояния */
.sidebar.compact .sidebar-header {
    padding: 15px;
    justify-content: center;
    overflow: hidden;
}

.sidebar.compact .sidebar-header h3 {
    opacity: 0;
    width: 0;
    margin: 0;
    transition: opacity 0.2s ease, width 0.2s ease;
}

/* Стили для свернутого состояния */
.sidebar.collapsed .sidebar-header {
    padding: 15px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-toggle {
    position: relative;
    margin: 0 auto;
}

/* Стили для ховера */
.sidebar-toggle:hover {
    color: #fff;
    background: #2E2E38;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .sidebar-header {
        padding: 12px 15px;
    }

    .sidebar-toggle {
        width: 28px;
        height: 28px;
    }

    .sidebar.compact .sidebar-header,
    .sidebar.collapsed .sidebar-header {
        padding: 12px;
    }
}

.funnel-stages {
    padding: 0;
    list-style: none;
    margin: 0;
}

.funnel-stage {
    position: relative;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.funnel-stage:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.funnel-stage.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #FFE600;
    padding-left: 12px;
}

.funnel-stage-name {
    font-weight: 500;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.9);
}

.funnel-stage-count {
    display: inline-flex;
    min-width: 32px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    margin-left: 8px;
}

.funnel-stage.active .funnel-stage-count {
    background-color: #FFE600;
    color: #1A1A24;
}

/* Стиль для загрузки счетчика */
.funnel-stage-count.loading {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Специальный стиль для счетчиков с большими числами */
.funnel-stage-count[data-count-length="4"] {
    font-size: 0.75rem;
}

.funnel-stage-count[data-count-length="5"] {
    font-size: 0.7rem;
}

.funnel-stage-description {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    max-width: 210px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-with-sidebar {
    padding-left: 280px;
    transition: padding-left 0.3s ease;
    min-height: calc(100vh - 56px - 40px);
    /* высота экрана - навбар - футер */
    width: 100%;
    padding-bottom: 40px;
    padding-top: 20px;
    position: relative;
    /* Добавляем для корректного позиционирования оверлея */
}

.content-with-sidebar.expanded {
    padding-left: 0;
}

.content-with-sidebar.semi-expanded {
    padding-left: 65px;
}

body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
}

/* Корректировка для основного контента внутри .content-with-sidebar */
.content-with-sidebar .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Респонсивность для мобильных устройств */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
        transform: translateX(-240px);
    }

    .sidebar.mobile-visible {
        transform: translateX(0);
    }

    .sidebar.compact {
        width: 60px;
    }

    .content-with-sidebar {
        padding-left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }

    .sidebar-overlay.visible {
        display: block;
    }
}

/* Корректировка для вакансий и языкового селектора */
.vacancy-selector {
    min-width: 150px;
    max-width: 250px;
}

.language-selector {
    margin-right: 1.5rem;
}

.language-btn {
    padding: 0.35rem 0.7rem;
    background: transparent;
    border: 1px solid #FFE600;
    color: #FFE600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Стиль для отображения порядка в этапах воронки */
.funnel-stage-sort {
    display: none !important;
}

/* Отображаем порядок только при наведении на этап */
.funnel-stage:hover .funnel-stage-sort {
    display: none !important;
}

/* Лоадеры */
.candidates-loader {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Стили для экстренной кнопки восстановления боковой панели */
.emergency-sidebar-button {
    position: fixed;
    left: 10px;
    top: 70px;
    width: 40px;
    height: 40px;
    background-color: #2E2E38;
    color: #FFE600;
    border: 2px solid #FFE600;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.emergency-sidebar-button:hover {
    background-color: #FFE600;
    color: #2E2E38;
    transform: scale(1.1);
}

/* Прячем кнопку восстановления когда меню видимо */
.sidebar:not(.collapsed)~.emergency-sidebar-button {
    display: none;
}

/* Стили для бэджей статуса поиска работы */
.badge.job-status-active {
    background-color: #28a745;
    color: white;
}

.badge.job-status-considering {
    background-color: #8fd19e;
    color: #212529;
}

.badge.job-status-offered {
    background-color: #FFE600;
    color: #212529;
}

.badge.job-status-new-job {
    background-color: #f5aeae;
    color: #212529;
}

.badge.job-status-not-looking {
    background-color: #dc3545;
    color: white;
}

.badge.job-status-unknown {
    background-color: #6c757d;
    color: white;
}

/* Стиль для всех бэджей статуса поиска работы */
.badge[class*="job-status-"] {
    font-weight: normal;
    padding: 0.4em 0.6em;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.badge[class*="job-status-"] i {
    margin-right: 0.3rem;
}

/* Стили для бэджей этапов воронки с градиентом */
.badge.funnel-stage-default {
    background-color: #6c757d;
    color: white;
}

.badge.funnel-stage-1 {
    background-color: #c6c9cc;
    color: #212529;
}

.badge.funnel-stage-2 {
    background-color: #a4dbb9;
    color: #212529;
}

.badge.funnel-stage-3 {
    background-color: #79cf9a;
    color: #212529;
}

.badge.funnel-stage-4 {
    background-color: #54c17e;
    color: white;
}

.badge.funnel-stage-5,
.badge.funnel-stage-final {
    background-color: #28a745;
    color: white;
}

.badge.funnel-stage-rejected {
    background-color: #dc3545;
    color: white;
}

/* Стиль для всех бэджей этапов воронки */
.badge[class*="funnel-stage-"] {
    font-weight: normal;
    padding: 0.4em 0.6em;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.badge[class*="funnel-stage-"] i {
    margin-right: 0.3rem;
}

/* Стили для оверлея загрузки */
.loading-overlay {
    position: fixed;
    top: 56px;
    /* Высота навбара */
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.content-with-sidebar.expanded .loading-overlay {
    left: 0;
}

.content-with-sidebar.semi-expanded .loading-overlay {
    left: 65px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(46, 46, 56, 0.1);
    border-top: 6px solid #2E2E38;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 4px 12px rgba(46, 46, 56, 0.15);
}

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

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

/* Уменьшение размера шрифта в событиях календаря */
.fc-event-title {
    font-size: 0.5em !important; /* Уменьшаем шрифт заголовка (ID кандидата) на 50% */
}

.fc-event-time {
    font-size: 0.7em !important; /* Уменьшаем шрифт времени на 50% */
}

/* Для сохранения контраста фона и текста */
.fc-event {
    padding: 1px !important;
}

/* Стили для авторизации */
.auth-body {
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Добавляем декоративные элементы в фирменном стиле */
.auth-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #FFE600;
    z-index: 10;
}

.auth-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    margin-top: 72px; /* Увеличено для учета навбара */
}

.auth-card {
    background: #fff;
    border-radius: 0; /* Убираем скругления для соответствия стилю сайта */
    box-shadow: 0 4px 12px rgba(46, 46, 56, 0.12); /* Тень в стиле основного сайта */
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-left: 4px solid #FFE600; /* Фирменная желтая полоса */
    position: relative;
    overflow: hidden;
    animation: authSlideIn 0.6s ease-out;
}

@keyframes authSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Добавляем декоративный элемент */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 230, 0, 0.1) 70%);
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.auth-icon {
    font-size: 3.5rem;
    color: #2E2E38; /* Основной цвет FITTIN */
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 230, 0, 0.3);
}

.auth-header h2 {
    color: #2E2E38;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.auth-header p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 1rem;
}

.auth-form {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.auth-form .form-group {
    margin-bottom: 1.75rem;
}

.auth-form label {
    color: #2E2E38;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.auth-form .input-group {
    position: relative;
}

.auth-form .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2E2E38;
    z-index: 5;
    font-size: 1.1rem;
}

.auth-form .form-control {
    padding-left: 45px;
    padding-right: 45px;
    height: 52px;
    border: 2px solid #e9ecef;
    border-radius: 0; /* Убираем скругления */
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-form .form-control:focus {
    border-color: #FFE600; /* Фирменный желтый фокус */
    box-shadow: 0 0 0 0.2rem rgba(255, 230, 0, 0.25);
    background-color: #fff;
    transform: translateY(-1px);
    animation: inputFocus 0.3s ease-out;
}

@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0.2rem rgba(255, 230, 0, 0.25);
    }
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #2E2E38;
    cursor: pointer;
    z-index: 5;
    font-size: 1.1rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #FFE600;
    transform: translateY(-50%) scale(1.1);
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input:checked {
    background-color: #2E2E38; /* Основной цвет FITTIN */
    border-color: #2E2E38;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(46, 46, 56, 0.25);
}

.form-check-label {
    color: #2E2E38;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-auth {
    width: 100%;
    height: 52px;
    background: #2E2E38; /* Основной цвет вместо градиента */
    border: 2px solid #2E2E38;
    border-radius: 0; /* Убираем скругления */
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-auth:hover {
    background: #FFE600; /* Желтый при ховере */
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 46, 56, 0.15);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
    position: relative;
    z-index: 2;
}

.auth-footer p {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-footer a {
    color: #2E2E38; /* Основной цвет FITTIN */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.auth-footer a:hover {
    color: #FFE600;
    transform: translateY(-1px);
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFE600;
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

.alert {
    border-radius: 0; /* Убираем скругления */
    margin-bottom: 1rem;
    border-left: 4px solid;
    border-top: none;
    border-right: none;
    border-bottom: none;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Стили для информации о пользователе в навбаре */
.user-info {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.user-btn {
    background: transparent;
    border: 2px solid #FFE600; /* Фирменная желтая рамка */
    color: #FFE600;
    padding: 0.5rem 1rem;
    border-radius: 0; /* Убираем скругления */
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.user-btn:hover {
    background: #FFE600;
    border-color: #FFE600;
    color: #2E2E38;
    transform: translateY(-1px);
}

.user-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.dropdown-menu {
    border: none;
    border-radius: 0; /* Убираем скругления */
    box-shadow: 0 4px 20px rgba(46, 46, 56, 0.15);
    margin-top: 0.5rem;
    border-left: 3px solid #FFE600;
}

.dropdown-item-text {
    font-weight: 600;
    color: #2E2E38;
    letter-spacing: 0.3px;
    padding: 0.75rem 1rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #2E2E38;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: rgba(255, 230, 0, 0.1);
    color: #2E2E38;
    transform: translateX(3px);
}

.dropdown-item:active {
    background-color: #FFE600;
    color: #2E2E38;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 16px;
    color: #FFE600;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .auth-body::before {
        height: 3px;
    }
    
    .auth-container {
        padding: 1rem 0.75rem;
        margin-top: 60px;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0;
        border-left-width: 3px;
    }
    
    .auth-card::after {
        width: 80px;
        height: 80px;
    }
    
    .auth-icon {
        font-size: 2.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-header p {
        font-size: 0.9rem;
    }
    
    .auth-form .form-control {
        height: 48px;
        font-size: 0.95rem;
    }
    
    .btn-auth {
        height: 48px;
        font-size: 1rem;
    }
    
    .user-info {
        margin-right: 0.5rem;
    }
    
    .user-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        border-width: 1px;
    }
    
    .user-btn span {
        display: none;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .language-selector {
        gap: 0.25rem;
    }
    
    .language-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* Дополнительные улучшения для планшетов */
@media (max-width: 768px) and (min-width: 577px) {
    .auth-card {
        padding: 2.5rem 2rem;
    }
    
    .auth-icon {
        font-size: 3rem;
    }
}

/* Темы для высококонтрастного режима */
@media (prefers-contrast: high) {
    .auth-card {
        border: 2px solid #2E2E38;
        border-left: 6px solid #FFE600;
    }
    
    .auth-form .form-control {
        border-width: 3px;
    }
    
    .btn-auth {
        border-width: 3px;
    }
}

/* Анимация для уменьшения движения при настройках доступности */
@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
    
    .auth-form .form-control:focus {
        animation: none;
        transform: none;
    }
    
    .btn-auth:hover {
        transform: none;
    }
    
    .password-toggle:hover {
        transform: translateY(-50%);
    }
    
    .auth-footer a:hover {
        transform: none;
    }
}

/* Мобильный нижний тапбар */
.mobile-bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2E2E38;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* По умолчанию скрыт */
}

.mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #adb5bd;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-tab-item.active {
    color: #FFE600;
}

.mobile-tab-item:hover {
    color: #FFE600;
}

.mobile-tab-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.mobile-tab-item span {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    line-height: 1;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Добавляем отступ снизу */
    }

    .mobile-bottom-tabs {
        display: flex; /* Показываем на мобильных устройствах */
    }

    .news-container .sidebar {
        display: none; /* Скрываем сайдбар на мобильных */
    }

    .news-container {
        flex-direction: column;
    }

    .news-container .content {
        padding: 1rem;
    }

    .filter-section {
        margin-bottom: 1rem;
    }

    .filter-section .card-body {
        padding: 0.75rem;
    }

    .filter-section form {
        gap: 0.75rem;
    }

    .sort-controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .button-group {
        gap: 0.5rem;
    }

    .pagination {
        justify-content: center;
    }

    .items-per-page {
        margin-bottom: 1rem;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-card .card-body {
        padding: 1rem 0.75rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-source, .news-date {
        font-size: 0.75rem;
    }

    .navbar .btn-outline-light {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    .row.mt-4 {
        margin-top: 1rem !important;
    }

    .row.mt-4 .col-12 {
        flex-direction: column;
        align-items: center !important;
    }

    .row.mt-4 > div:last-child {
        display: none; /* Скрываем пустой блок для выравнивания */
    }

    /* Стили для компактной мобильной панели управления */
    .mobile-search-container {
        width: 100%;
    }

    .mobile-search-input {
        width: 100%;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .mobile-search-input.slide-down {
        animation: slideDown 0.3s ease-out;
    }

    .mobile-search-input.slide-up {
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            max-height: 60px;
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes slideUp {
        from {
            max-height: 60px;
            opacity: 1;
            transform: translateY(0);
        }
        to {
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
        }
    }

    /* Компактная панель иконок */
    .mobile-controls-panel {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        border-radius: 10px;
        padding: 0.25rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        gap: 0.2rem;
    }

    .mobile-control-item {
        flex: 1;
        position: relative;
    }

    .mobile-control-btn {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.4rem 0.25rem;
        background: transparent;
        border: none;
        border-radius: 6px;
        transition: all 0.2s ease;
        cursor: pointer;
        color: #2E2E38;
        min-height: 45px;
    }

    .mobile-control-btn:hover,
    .mobile-control-btn:focus,
    .mobile-control-btn.active {
        background: #FFE600;
        color: #2E2E38;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(255, 230, 0, 0.3);
    }

    .mobile-control-btn i {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
        transition: all 0.2s ease;
    }

    .mobile-control-label {
        font-size: 0.65rem;
        font-weight: 500;
        text-align: center;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Выпадающее меню для мобильной сортировки */
    .mobile-dropdown {
        border-radius: 8px;
        border: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        padding: 0.25rem 0;
        margin-top: 0.25rem;
        min-width: 180px;
    }

    .mobile-dropdown .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        color: #2E2E38;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }

    .mobile-dropdown .dropdown-item:hover,
    .mobile-dropdown .dropdown-item:focus {
        background: #FFE600;
        color: #2E2E38;
    }

    .mobile-dropdown .dropdown-item.active {
        background: #FFE600;
        color: #2E2E38;
        font-weight: 500;
    }

    .mobile-dropdown .dropdown-item i {
        color: inherit;
        opacity: 0.7;
    }

    /* Анимация для кнопки направления сортировки */
    #sortOrderIcon {
        transition: transform 0.3s ease;
    }

    #sortOrderIcon.asc {
        transform: rotate(180deg);
    }

    /* Активные состояния */
    .mobile-control-btn.sort-active {
        background: rgba(255, 230, 0, 0.2);
        color: #2E2E38;
    }

    .mobile-control-btn.sort-active i {
        color: #2E2E38;
    }
}

.mobile-search-input .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 38px;
}

.mobile-search-input .input-group-text {
    background: #f8f9fa;
    border: none;
    padding: 0.5rem 0.65rem;
    display: flex;
    align-items: center;
}

.mobile-search-input .input-group-text i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.mobile-search-input .form-control {
    border: none;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    height: 38px;
}

.mobile-search-input .form-control:focus {
    box-shadow: none;
    border-color: #FFE600;
}


/* Стили для десктопного контейнера поиска */
.desktop-search-container {
    /* Просто контейнер, Bootstrap классы flex-grow-1 делают свою работу */
}

/* Скрываем только кнопку настроек в навбаре на мобильных */
@media (max-width: 768px) {
    .navbar a[href="settings.html"] {
        display: none !important;
    }
}

/* Цветовое кодирование пола */
.gender-male {
    background-color: #0d6efd !important;
    color: white !important;
    border: none !important;
}

.gender-female {
    background-color: #d63384 !important;
    color: white !important;
    border: none !important;
}

.gender-unknown {
    background-color: #0d6efd !important;
    color: white !important;
    border: none !important;
}

/* Стили для статистических бейджей в группах */
.position-group-header .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.position-group-header .d-flex.gap-2 {
    gap: 0.5rem !important;
}

/* Стили для блока дней рождения */
#upcomingBirthdays .alert {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
}

#birthdayList {
    min-height: 24px;
    gap: 0.25rem !important;
}

#birthdayList .badge {
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
}

#birthdayList .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#birthdayList .fa-birthday-cake {
    font-size: 0.9rem;
    flex-shrink: 0;
}

#birthdayList .badge .fa-gift {
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

#birthdayList .badge.bg-warning {
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px rgba(255, 193, 7, 0.4); }
    to { box-shadow: 0 0 15px rgba(255, 193, 7, 0.8); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Employee Page Styles - Ультра компактная версия */
.employee-header-card {
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    border-radius: 6px;
    padding: 0.5rem;
    color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
}

.employee-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.employee-avatar-large.gender-male {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.employee-avatar-large.gender-female {
    background: linear-gradient(135deg, #e83e8c 0%, #b02a5b 100%);
}

.employee-avatar-large.gender-unknown {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.employee-name {
    color: white;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.25rem;
}

.employee-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.employee-badges .badge {
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.employee-status.bg-success {
    background-color: #28a745 !important;
}

.employee-status.bg-danger {
    background-color: #dc3545 !important;
}

.employee-info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 2rem;
}

.employee-info-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

.employee-info-card .card-header h4 {
    margin: 0;
    color: #2E2E38;
    font-weight: 600;
}

.employee-info-card .card-body {
    padding: 2rem;
}

.comments-chat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: none;
    height: fit-content;
    max-height: 700px;
    display: flex;
    flex-direction: column;
}

.comments-chat-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem;
}

.comments-chat-card .card-header h4 {
    margin: 0;
    color: #2E2E38;
    font-weight: 600;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.chat-message {
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    border-left: 2px solid #2E2E38;
    animation: slideIn 0.3s ease;
    position: relative;
}

.chat-message:hover .chat-delete-btn,
.chat-message:hover .chat-edit-btn {
    opacity: 1;
}

.chat-delete-btn,
.chat-edit-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 4px;
    background: transparent;
}

.chat-delete-btn {
    border: 1px solid #dc3545;
    color: #dc3545;
}

.chat-delete-btn:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: scale(1.05);
}

.chat-edit-btn {
    border: 1px solid #0d6efd;
    color: #0d6efd;
}

.chat-edit-btn:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
    transform: scale(1.05);
}

.chat-message-header {
    margin-bottom: 0.25rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-time {
    font-size: 0.65rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.chat-text {
    color: #2E2E38;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 0.85rem;
}

.chat-loading, .chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
    color: #6c757d;
    text-align: center;
}

.chat-loading i, .chat-empty i {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.chat-loading span, .chat-empty span {
    font-size: 0.8rem;
}

.chat-input {
    padding: 1rem;
    background: white;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #dee2e6;
}

.chat-input .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    background: #f8f9fa;
}

.chat-input .form-control:focus {
    background: white;
    box-shadow: none;
    border: 2px solid #2E2E38;
}

.chat-input .btn {
    border: none;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    color: white;
    transition: all 0.3s ease;
}

.chat-input .btn:hover {
    background: linear-gradient(135deg, #1A1A24 0%, #0d0d14 100%);
    transform: translateY(-1px);
}

.chat-input .btn:active {
    transform: translateY(0);
}

#editModeButtons {
    border-top: 1px solid #dee2e6;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2E2E38;
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2E2E38;
    box-shadow: 0 0 0 0.25rem rgba(46, 46, 56, 0.25);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-select[disabled] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .employee-header-card {
        padding: 1.5rem;
    }
    
    .employee-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .employee-name {
        font-size: 1.5rem;
    }
    
    .employee-badges .badge {
        margin-bottom: 0.5rem;
    }
    
    .comments-chat-card {
        margin-top: 2rem;
        max-height: 500px;
    }
    
    .chat-messages {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .employee-header-card {
        padding: 1rem;
    }
    
    .employee-header-card .row {
        text-align: center;
    }
    
    .employee-header-card .col-auto {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .employee-info-card .card-body {
        padding: 1rem;
    }
    
    .comments-chat-card {
        max-height: 400px;
    }
    
    .chat-messages {
        height: 250px;
    }
}

/* Стили для нередактируемых полей */
.readonly-field {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.readonly-field:focus {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    box-shadow: none !important;
}

.readonly-field::placeholder {
    color: #adb5bd !important;
}

/* Специальные стили для полей только для чтения */
.form-control.readonly-field,
.form-select.readonly-field {
    opacity: 0.7;
}

/* Подсказка для нередактируемых полей - убрана иконка */
.readonly-field-label {
    position: relative;
    color: #6c757d;
    font-style: italic;
}

/* Tooltip для объяснения нередактируемых полей */
.readonly-tooltip {
    position: relative;
}

.readonly-tooltip::before {
    content: "Это поле рассчитывается автоматически";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.readonly-tooltip:hover::before {
    opacity: 1;
}

/* Полноширинный чат для нижней секции */
.chat-messages-full {
    height: 300px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
    margin-bottom: 0;
}

.chat-messages-full::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-full::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.chat-messages-full::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.chat-messages-full::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.chat-input-full {
    padding: 1.5rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

.chat-input-full .input-group {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chat-input-full .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: #f8f9fa;
}

.chat-input-full .form-control:focus {
    background: white;
    box-shadow: none;
    border: 2px solid #2E2E38;
}

.chat-input-full .btn {
    border: none;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #2E2E38 0%, #1A1A24 100%);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.chat-input-full .btn:hover {
    background: linear-gradient(135deg, #1A1A24 0%, #0d0d14 100%);
    transform: translateY(-1px);
}

.chat-input-full .btn:active {
    transform: translateY(0);
}

/* Улучшенные стили секций */
.card h5 {
    color: #2E2E38;
    font-weight: 600;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}

.card h5 i {
    color: #007bff;
}

/* Компактный чат - динамическая высота */
.chat-messages-compact {
    min-height: 60px;
    max-height: none;
    overflow-y: visible;
    padding: 0.5rem;
    background: #f8f9fa;
    margin-bottom: 0;
}

/* Скроллбар убран - используется динамическая высота */

.chat-input-compact {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #dee2e6;
}

.chat-input-compact .input-group {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-input-compact .form-control {
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #f8f9fa;
}

.chat-input-compact .form-control:focus {
    background: white;
    box-shadow: none;
    border: 1px solid #2E2E38;
}

.chat-input-compact .btn {
    border: none;
    padding: 0.5rem 0.75rem;
    background: #2E2E38;
    color: white;
}

.chat-input-compact .btn:hover {
    background: #1a1a22;
}

/* Компактные размеры форм */
.form-control-sm, .form-select-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.form-label.small {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #495057;
}

.input-group-sm .input-group-text {
    padding: 0.375rem 0.5rem;
    font-size: 0.8rem;
}

/* Компактная сетка */
.row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* Мобильная адаптация для компактной структуры */
@media (max-width: 768px) {
    .chat-messages-compact {
        min-height: 80px;
        max-height: none;
        overflow-y: visible;
        padding: 0.5rem;
    }
    
    .chat-input-compact {
        padding: 0.5rem;
    }
    
    .chat-input-compact .form-control {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .chat-input-compact .btn {
        padding: 0.375rem 0.5rem;
    }
    
    .form-control-sm, .form-select-sm {
        font-size: 0.75rem;
    }
    
    .form-label.small {
        font-size: 0.7rem;
    }
}