/* profile_styles.css */
.profile-avatar {
    max-width: 100%;
    /* Максимальная ширина по размеру контейнера */
    height: auto;
    /* Автоматическая высота */
    width: 350px;
    /* Базовая ширина */
    aspect-ratio: 1/1;
    /* Сохраняем квадратную форму */
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.track-item {
    border-left: 3px solid #6c757d;
    padding-left: 15px;
    margin-bottom: 15px;
}

.btn-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* .btn-primary.btn-upload {
    --bs-btn-bg: #6f42c1 !important;
    --bs-btn-border-color: #00000000 !important;
}
 */
.btn-upload input[type=file] {
    position: absolute;
    opacity: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Стили для блока биографии */
.bio-container {
    position: relative;
    width: 100%;
}

#bioDisplay {
    white-space: normal !important;
    margin: 5px 0 5px 0;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    word-wrap: break-word;
    width: 100%;
}

#bioDisplay.expanded {
    max-height: none;
}

.show-more-btn {
    display: none;
    /* По умолчанию скрыта */
    background: none;
    border: none;
    color: #0d6efd;
    padding: 5px 0;
    margin: 5px 0 15px 0;
    cursor: pointer;
    text-align: left;
    font-size: 0.9em;
    width: 100%;
}

#bioForm {
    display: none;
    margin-top: 5px;
    width: 100%;
}

.success-message {
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
    display: inline-block;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Кнопка редактирования */
#editBioBtn {
    margin: 10px 0;
}

.delete-avatar-container {
    text-align: center;
}

#deleteConfirm {
    margin-top: 10px;
}

#deleteConfirm p {
    margin-bottom: 5px;
}

#deleteConfirm button {
    margin: 0 5px;
}

/* Стиль для превью аватарки */
#avatarImage {
    transition: opacity 0.3s ease;
}

.uploading-avatar {
    opacity: 0.7;
}

/* Стили для миниатюры аватарки в навигации */
.navbar-nav .rounded-circle {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover .rounded-circle {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-nav .nav-link.active~.rounded-circle {
    border-color: #fff;
}

/* Стили для выпадающего меню */
.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: middle;
}



/* Стили для выпадающего меню */
.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

/* Фиолетовое выделение при наведении */
.dropdown-item:hover {
    background-color: #6f42c1;
    color: white !important;
}

/* Стиль для активного пункта (текущей страницы) */
.dropdown-item.active {
    background-color: #e9ecef;
    color: #6f42c1 !important;
    font-weight: 500;
}

/* Разделитель */
.dropdown-divider {
    margin: 0.25rem 0;
}

/* Иконки */
.bi {
    font-size: 1rem;
    vertical-align: middle;
}