/* static/pages/css/style.css */

/* Для анимаций */
.anim-fade-up,
.anim-fade-down,
.anim-fade-left,
.anim-fade-right,
.anim-fade,
.anim-zoom-in,
.a-stagger,
.a-stagger-r {
    will-change: transform, opacity;
}

/* Основные стили страницы */

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    color: #333;
    /*max-width: 1200px;*/
    margin: 0 auto;
    /*padding: 20px;*/
    background: linear-gradient(to right, #16011a, #350260);
    overflow-x: hidden;
}

@font-face {
    font-family: 'Lemon Tuesday';
    src: url('../fonts/lemon-tuesday.woff2') format('woff2'),
         url('/fonts/lemon-tuesday.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Оптимизация загрузки */
  }

/* Стили шапки */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #2c3e50;
    padding-bottom: 10px;
}

/* Основной контент */
.content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.burger-menu-wrap {
    position: relative;
    display: none;
    opacity: 0;
}

.burger-menu {
    position: absolute;
    left: 0;
    top: 80%;
    padding: 30px 50px 30px 50px;
    background: linear-gradient(to right, #3f00ff4a, #ff00ff26);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease;
}

.burger-menu::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    backdrop-filter: blur(15px);
    border-radius: inherit;
    opacity: 1;
    pointer-events: none;
}

.burger-menu ul {
    padding: 0;
}

.burger-menu li {
    position: relative;
    font-size: 18px;
    font-weight: 500;
    padding: 10px 0 10px 50px; /* Оставляем место для стрелки */
    list-style-type: none;
    text-transform: uppercase;
}

.burger-menu li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.4s;
}

.burger-menu li:hover a {
    color: #ff50ed;
    text-decoration: none;
}

.burger-menu li:hover::before {
    left: 0px;
}

.burger-menu li::before {
    content: ""; /* Можно использовать символ стрелки или любой другой */
    position: absolute;
    left: -10px;
    top: 0;
    width: 35px;
    height: 100%;
    color: #fff; /* Цвет стрелки */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ff00cc'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 50px;
    transition: all 0.4s;
}

.burger-menu-wrap:hover .burger-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

/* Меню в шапке */
.custom-navbar {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 20px;
    margin-right: auto;
    margin-left: auto;
}

.container-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 100px;
}

.DUMP___nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 22px;
    border-radius: 23px;
    padding: 5px 20px;
}

.DUMP___nav-link:hover {
    color: #000000;
    background-color: #ffffff;
    transition: color 0.2s;
}

.nav-link {
    display: inline-block;
    padding: 5px 20px;
    background-color: transparent; /* Исходный фон прозрачный */
    color: #ffffff; /* Исходный цвет текста белый */
    text-decoration: none;
    font-size: 22px;
    border-radius: 23px; /* Скругленные углы */
    transition: all 0.3s ease; /* Плавный переход для всех свойств */
    position: relative;
    overflow: hidden; /* Для эффекта волны */
}

.nav-link:hover {
    background-color: #ffffff; /* Белый фон при наведении */
    color: #000000; /* Черный текст при наведении */
    transform: scale(1.05); /* Легкое увеличение */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Свечение */
}

/* Эффект волны */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2); /* Полупрозрачная волна */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-link:hover::before {
    width: 300px; /* Размер волны */
    height: 300px;
}

.nav-link.active {
    background-color: #ffffff; /* Белый фон для активной кнопки */
    color: #000000; /* Черный текст для активной кнопки */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); /* Легкое свечение */
}

.icon-btn {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 28px;
}

.icon-btn:hover, .upload-btn:hover {
    background-color: #1482FA;
    color: #fff;
    cursor: pointer;
}

/* Стили для аватара и всплывающего меню */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-menu {
    position: absolute;
    display: flex;
    right: 0;
    top: 100%;
    width: 426px;
    background: linear-gradient(320deg, #0B1F3E, #4490AD, #58E1B5);
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 32px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.user-menu::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: url(../images/base/а-back.png);
    background-size: auto;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.5;
    border-radius: inherit;
}

.user-menu .left, .user-menu .right {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.avatar-wrapper:hover .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.user-menu .user-info {
    margin-bottom: 0px;
    text-align: center;
}

.user-menu .user-info p {
    margin: 0;
    font-size: 22px;
    color: #fff;
    padding-bottom: 10px;
}

.user-menu .user-info p a {
    margin: 0;
    font-size: 16px;
    text-decoration: none;
    color: #cde3ff;
}

.user-menu .user-info p a:hover {
    color: #1482FA;
}

.user-menu .code {
    position: relative;
    width: 160px;
    height: 84px;
    background-image: url(../images/base/а-1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.user-menu .avatar img {
    border-radius: 10px;
}

.user-menu .acc-button, .user-menu .logout-btn {
    display: block;
    padding: 2px 7px;
    border-radius: 5px;
    background: linear-gradient(320deg, #d6bad996, #bcbcbc78);
    color: #3e3e3e;
    text-decoration: none;
    border: none;
    transition: all 0.5s ease;
}

.user-menu .acc-button:hover, .user-menu .logout-btn:hover {
    background: linear-gradient(320deg, #d6bad9e5, #bcbcbce7);
    padding: 2px 12px;
}

/* Выделенный текст */
.highlight {
    color: #e74c3c;
    font-weight: bold;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-footer {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 35px 0px;
}

.main-footer .footer-buttons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.main-footer .footer-buttons .button-1 {
    background: linear-gradient(to right, #3f00ff, #ff00ff);
    padding: 5px 30px;
    border-radius: 35px;
    font-size: 16px;
    text-align: center;
    position: relative;
    color: #fff;
}

.main-footer .footer-buttons .button-1 p {
    margin: 0px;
}

.main-footer .footer-text {
    text-align: center;
    padding: 30px 0px 10px 0px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
}

.main-footer .footer-text i.fa-info {
    width: 25px;
    height: 25px;
    font-size: 12px;
    padding: 5px 10px;
    margin-right: 10px;
    color: #ffffff;
    border-radius: 50%;
    border: 1px solid #fff;
    cursor: pointer;
}

.main-footer .footer-text i.fa-info:hover {
    color: #1482fa;
    border: 1px solid #1482fa;
}

.main-footer .footer-text img {
    width: 60px;
}

.main-footer .footer-text p {
    font-size: 16px;
    margin: 0px;
    font-weight: 300;
}

.main-footer .footer-text a {
    color: #ffffff;
    text-decoration: none;
}

.main-footer .footer-text a:hover {
    color: #1482fa;
}

/* Модальное окно */

.modal-content {
    background: linear-gradient(344deg, #220088, #000000, #000000, #340034);
    border-radius: 30px;
    box-shadow: 0 0 10px rgb(240 0 255 / 40%);
}

.modal-header {
    color: #ffffff;
    border-bottom: 1px solid #572361;
}

.modal-header i {
    font-size: 24px;
}

.modal-header .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
}

.modal-body p {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
}

.modal-body p a {
    color: #ffffff;
    text-decoration: none;
}

.modal-body p a:hover {
    color: #1482fa;
}

.modal-body h5 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 400;
}


.modal-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.modal-footer button {
    background-color: transparent;
    border: 2px solid #572361;
    color: #572361;
    border-radius: 25px;
    padding: 5px 20px;
    transition: all 0.3s ease;
}

.modal-footer button:hover {
    background-color: #572361;
    border: 2px solid #572361;
    color: #cdcdcd;
}

/* Адаптивные стили */
@media (max-width: 999px) {
.custom-navbar .nav-center {
    display: none;
}

}
@media (max-width: 768px) {
    body {
        padding: 0px;
    }
    
    .content {
        padding: 20px;
    }
    
    .custom-navbar .burger-menu-wrap {
    position: relative;
    display: inline-block;
    opacity: 1;
    }
    
    .custom-navbar .nav-right a, .custom-navbar .upload-btn, .custom-navbar .notification-icon {
    display: none;
    }

}

/* Стили для алертов */
.alert {
    border-radius: 8px;
}

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