:root {
    --swiper-navigation-size: 1.5rem !important;
    --swiper-theme-color: var(--primary-color) !important;
    --swiper-navigation-color: var(--primary-color) !important;
    --header-height: 74px;
}

.dropdown-menu {
    --bs-dropdown-zindex: 1000;
    --bs-dropdown-min-width: 15rem;
    --bs-dropdown-padding-x: 0;
    --bs-dropdown-padding-y: 1rem;
    --bs-dropdown-spacer: 0;
    --bs-dropdown-font-size: 0.9375rem;
    --bs-dropdown-color: var(--bs-body-color);
    --bs-dropdown-bg: #fff;
    --bs-dropdown-border-color: rgba(0, 0, 0, 0.06);
    --bs-dropdown-border-radius: 0.4rem;
    --bs-dropdown-border-width: 1px;
    --bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));
    --bs-dropdown-divider-bg: rgba(0, 0, 0, 0.1);
    --bs-dropdown-divider-margin-y: 0.5rem;
    --bs-dropdown-box-shadow: 0px 20px 30px rgba(83, 88, 93, 0.1), 0px 0px 30px rgba(83, 88, 93, 0.2);
    --bs-dropdown-link-color: var(--bs-gray-600);
    --bs-dropdown-link-hover-color: var(--primary-color);
    --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-color: var(--primary-color);
    --bs-dropdown-link-active-bg: transparent;
    --bs-dropdown-link-disabled-color: var(--bs-gray-600);
    --bs-dropdown-item-padding-x: 1.2rem;
    --bs-dropdown-item-padding-y: 0.4rem;
    --bs-dropdown-header-color: var(--bs-gray-800);
    --bs-dropdown-header-padding-x: 1rem;
    --bs-dropdown-header-padding-y: 0.5rem;
    position: absolute;
    z-index: var(--bs-dropdown-zindex);
    display: none;
    min-width: var(--bs-dropdown-min-width);
    padding: var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);
    margin: 0;
    font-size: var(--bs-dropdown-font-size);
    color: var(--bs-dropdown-color);
    text-align: left;
    list-style: none;
    background-color: var(--bs-dropdown-bg);
    background-clip: padding-box;
    border: var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);
    border-radius: var(--bs-dropdown-border-radius);
}

.container {
    max-width: 992px;
}

header {
    height: var(--header-height);
}

.profile-image-index .thumbnail img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

#main-image-button {
    background-color: rgba(248, 249, 250, 0.25);
    color: #fff;
    border: 0;
}

.image-container img {
    max-width: 100%;
}

.user-card h3 {
    background: #fff;
}

.user-card-new {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.user-card-new-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.user-card-new-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}

.user-card-new-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-card-new-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-card-new-name {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.user-card-new-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    flex-wrap: wrap;
}

.user-card-new-age {
    font-weight: 500;
}

.user-card-new-separator {
    color: #adb5bd;
}

.user-card-new-location {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .user-card-new-info {
        padding: 0.875rem;
    }
    
    .user-card-new-name {
        font-size: 0.9375rem;
    }
    
    .user-card-new {
        border-radius: 10px;
    }
}

.text-1 {
    font-family: 'OpenSans-Light';
}

.text-2 {
    font-family: 'OpenSans';
}

.text-3 {
    font-family: 'OpenSans-Bold';
}

.text-c-1 {
    font-family: 'c-medium';
}

.text-c-2 {
    font-family: 'c-bold';
}

.text-c-3 {
    font-family: 'c-black';
}

.extra-small {
    font-size: .665em;
}

body {
    font-family: 'OpenSans', 'Arial', sans-serif;
    overflow-x: hidden;
    font-size: 1rem;
}

.sidebar {
    position: fixed;
    top: 94px;
    bottom: 66px;
    z-index: 1000;
    padding: 0;
    width: 100%;
    max-width: calc(240px - var(--bs-gutter-x));
}

.sidebar.active {
    display: block;
}

.main-content {
    padding-top: 20px;
    padding-bottom: 61px;
}

.card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.list-group-item {
    display: flex;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    aspect-ratio: 1 / 1;
}

.avatar-sm {
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
}


.badge {
    margin-right: 5px;
}


.user-like-actions .btn {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-search-actions .btn {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
}

.user-search-results .profile-card.active {
    border: 2px solid var(--primary-color) !important;
    border-radius: calc(var(--bs-border-radius-lg) + 2px) !important;
}

.profile-details {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    background: white;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1050;
}

.profile-details.active {
    right: 0;
    left: 0;
}

.user-search-results.active {
    width: 100%;
}

.user-search-results.active .card-wrapper {
    width: 50%;
}

.nav-link.active i, .nav-link.active {
    color: var(--primary-color) !important;
}

.user-status {
    line-height: 1rem;
}

.user-status::before {
    content: '';
    display: inline-block;
    margin-right: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    opacity: 0.75;
    border: 1px solid #fff;
}

.user-online::before {
    background-color: #00d71e;
}

.user-offline::before {
    background-color: var(--bs-gray);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.message {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    font-size: 14px;
}

.message .message-text {
    max-width: 100%;
}

.message .avatar-sm {
    margin-right: 0.25rem;
}

.message .message-inner {
    flex: 1;
    max-width: calc(100% - 42px);
}

#emoji-picker {
    position: absolute;
    bottom: 84px;
    right: 10px;
    left: 10px;
    z-index: 10;
}

.bg-opacity-05 {
    --bs-bg-opacity: 0.05;
}

.swiper-slide-blank {
    background-image: url("/img/placeholder-image.jpg");
    aspect-ratio: 1;
    background-position: center;
    background-size: cover;
    border-radius: 0.5rem;
}

.swiper-button-user.swiper-button-next,
.swiper-button-user.swiper-button-prev {
    left: 0 !important;
    right: 0 !important;
    position: unset !important;
    margin-top: 0 !important;
}

.ui-slider-range {
    background: var(--primary-color-light);
}

.user-list-message:hover {
    --bs-bg-opacity: 0.75;
    background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.lobibox-notify {
    margin: 1rem;
}

.nav-btn {
    font-size: 22px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    width: 40px;
}

.message .im-reply, .message .im-edit {
    opacity: 0;
    transition: 0.2s;
}

.message .message-content:hover .im-reply, .message .message-content:hover .im-edit {
    opacity: 1;
}

.blockquote {
    border-left: 2px solid var(--primary-color);
    padding: 0 1rem;
    font-size: inherit;
}

.chat-form {
    font-size: 14px;
}

.im-replied-container--remove, .im-editing-container--remove {
    position: absolute;
    top: 50%;
    right: 0;
    width: 24px;
    height: 24px;
    opacity: .7;
    cursor: pointer;
    margin-top: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-scroll {
    overflow-y: auto;
    overflow-x: hidden;
}

.m-scroll::-webkit-scrollbar,
.m-scroll::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.fade-out {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important; /* Плавный переход */
}

.swiper-cards .swiper-slide {
    aspect-ratio: 2 / 2.35;
    overflow-y: auto !important;
}

.m-scroll::-webkit-scrollbar-track,
.m-scroll::-webkit-scrollbar-track {
    background: var(--bs-gray-200);
}

.m-scroll::-webkit-scrollbar-thumb {
    background-color: var(--bs-gray-500);
    background-clip: content-box;
}

.end-5 {
    right: 5%;
}

.end-1 {
    right: 1%;
}

.message.selected {
    background-color: rgba(166, 166, 166, 0.1); /* Лёгкий синий фон для выделенного сообщения */
}

.pointer {
    cursor: pointer;
}

.profile-card {
    transition: transform 0.2s;
    z-index: 10;
}

.profile-card-img {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.interests-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
}

.interests-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4c6ef5, #8e54e9);
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
}

.interests-tag {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    background: linear-gradient(135deg, #4c6ef5, #8e54e9);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(76, 110, 245, 0.3);
    transition: transform 0.3s ease;
}

.interests-tag:hover {
    transform: scale(1.1);
}

/* Additional Styling */
.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #4c6ef5, #8e54e9);
    margin-top: 5px;
}

.swiper-slide {
    display: none !important; /* Скрываем все слайды */
}

.swiper-slide-clear {
    height: 300px !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.swiper-creative .swiper-slide {
    overflow: unset !important;
}

.swiper.swiper-initialized .swiper-slide {
    display: block !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.profile-card:hover {
    transform: scale(1.025);
}

.pagination .disabled span, .pagination .disabled a {
    color: #6c757d; /* Цвет для неактивных элементов */
    pointer-events: none; /* Отключаем кликабельность */
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd; /* Цвет активной страницы */
    border-color: #0d6efd; /* Цвет границы активной страницы */
}

/* Добавляем кастомное соотношение 3x4 */
.ratio-3x4 {
    position: relative;
    width: 100%;
    padding-bottom: calc(4 / 3 * 100%); /* 3x4 соотношение */
}

.ratio-3x4 > * {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Для правильного отображения изображений */
}

.blurred-background {
    position: relative;
    backdrop-filter: blur(10px); /* Размытие фона */
    -webkit-backdrop-filter: blur(10px); /* Поддержка для WebKit браузеров */
    border-radius: 15px; /* Радиус для сглаженных углов (по желанию) */
}

.blurred-background-top {
    position: relative;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 30%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 10%);
}

.dropzone .dz-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
}

.user-match {
    position: absolute;
    z-index: 1;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotateZ(-15deg);
    transition: transform 0.2s ease;
}

.user-match img {
    max-width: 50%;
}

.fit-cover {
    object-fit: cover;
}

.user-actions .send-message {
    padding: 0.75rem 2rem;
}

.user-actions .send-like {
    padding: 0.75rem 2rem 0.75rem 3rem;
}

.user-actions .remove-like {
    padding: 0.75rem 2rem 0.75rem 2rem;
}

.user-actions .send-like .lottie-animation {
    position: absolute;
}

.profile-fields > div {
    margin-bottom: 0.5rem;
}

.fade-up {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fade-up:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-box-shadow-lg) !important;
}

.main-card .card-title {
    transition: color 0.2s ease-in-out;
}

.main-card:hover .card-title {
    color: var(--primary-color);
}


/* Responsive Design */
@media (min-width: 768px) {

    :root {
        --header-height: 74px;
    }
    
    .sidebar .btn {
        display: none;
    }

    #emoji-picker {
        left: unset;
    }

    .user-search-results.active {
        width: calc(100% - 360px);
    }

    .user-search-results.active .card-wrapper {
        width: 50%;
    }

    .profile-details.active {
        top: 118px;
        left: unset;
        width: 400px;
    }

    .message .message-text {
        max-width: 90%;
    }

    .main-content {
        padding-bottom: 0.5rem;
    }

    .border-md-1 {
        border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
    }
}

@media (max-width: 767.98px) {

    .sidebar {
        display: none;
        position: absolute;
        width: 250px;
        height: 100vh;
    }

    .sidebar.active {
        display: block;
    }

    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #ddd; /* Линия сверху для отделения */
        z-index: 1000; /* Чтобы меню было выше других элементов */
    }

    .nav-link {
        text-align: center; /* Центрируем текст */
        padding: 10px; /* Отступы для элементов меню */
    }

    .nav-link i {
        display: block; /* Иконка в блоке */
        font-size: 20px; /* Размер иконок */
    }

    .swiper-matches .card {
        border: 3px solid #aa7ffd !important;
    }

    .swiper-matches .card, .swiper-matches img {
        border-radius: 50% !important;
    }

    .card-mm {
        margin-right: calc(-0.5 * var(--bs-gutter-x));
        margin-left: calc(-0.5 * var(--bs-gutter-x));
    }

}

@media (min-width: 992px) {
    .user-search-results.active {
        width: calc(100% - 360px);
    }

    .user-search-results.active .card-wrapper {
        width: 50%;
    }

    .profile-details.active {
        left: unset;
        width: 400px;
    }
}

@media (min-width: 1200px) {
    .sidebar {
        max-width: calc(285px - var(--bs-gutter-x));
    }
}

@media (min-width: 1400px) {
    .sidebar {
        max-width: calc(330px - var(--bs-gutter-x));
    }

    .user-search-results.active {
        width: calc(100% - 360px);
    }

    .user-search-results.active .card-wrapper {
        width: 33.3333%;
    }
}

@media (min-width: 1700px) {

    .user-search-results.active {
        width: calc(100% - 160px);
    }

    .user-search-results.active .card-wrapper {
        width: 25%;
    }
}