/*
Theme Name: LYDN-01 by sites LYDN
Author: sesla.ly@gmail.com
Version: 1.0
*/

/* Сброс базовых стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.container {
  display: flex;
}

/* Фиксированное левое меню */
.sidebar {
    position: fixed; /* Фиксирует блок на экране */
    top: 0;
    left: 0;
    height: 100vh; /* Растягивает меню на всю высоту экрана */
    overflow-y: auto; /* Добавляет прокрутку внутри меню, если пунктов слишком много */
    width: 230px;
    background-color: #fff;
    color: #1388ed;
    padding: 20px;
    transition: transform 0.3s ease;
}

/* Основной контент страницы */
.main-content {
  margin-left: 230px; /* Отступ равен ширине меню, чтобы контент не залезал под него */
  padding: 20px;
  width: calc(100% - 230px);
  flex: 1;
  min-height:20%;
  padding: 20px;
  flex: 1 0 auto;
}

header, footer {
    /*background-color: #f8f6f6;*/
    color: #1388ed;
    width:100%;
    padding: 20px;
}

footer{
  bottom: 0;
  left: 0;
  width: 100%;
  font-size:12px;
  flex-shrink: 0;
}

.wrapper {
    display: flex;
    min-height: 570px;
    margin: 0;
    padding: 0;
}

/* Мобильная шапка (по умолчанию скрыта на ПК) */
.mobile-header {
    display: none;
}

.langSwitch{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 230px;
    padding:5px;
    padding-bottom:20px;
}

.langSwitch .lang-switcher li{
    width: fit-content;
    float:left;
    display: inline-block;
    padding:1px;
    padding-right:5px;
    font-size:10px;
}

.sidebar .logo {
    font-size: 18px;
    /*font-weight: bold;
    text-align: center;*/
    margin-bottom: 30px;
    vertical-align: middle;
    min-height:70px;
}

.sidebar .logo img{
    height: 90px;
    border-radius: 25%;
}

.nav-links, .nav-links ul {
    list-style: none;
    list-style-type: none;
}

.nav-links li a {
    display: block;
    color: #1388ed;
    text-decoration: none;
    padding: 12px 10px;
    border-radius: 4px;
    transition: 0.2s;
}

.nav-links li a:hover {
    background-color: #ccc;
    color: white;
}

/* АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ И ПЛАНШЕТОВ */
@media (max-width: 767px) {
    /* Активируем мобильную шапку */
    .mobile-header {
        display: flex;
        justify-content: space-between; /* Лого влево, кнопка вправо */
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background-color: #4e2561;
        padding: 20px 20px 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .mobile-header a{
        text-decoration:none;
    }

    .mobile-logo {
        color: white;
        font-size: 18px;
        font-weight: bold;
        
    }
    
    .mobile-logo img{
        height: 36px;
        border-radius: 25%;
    }

    /* Стили кнопки внутри шапки */
    .toggle-btn {
        font-size: 24px;
        background: transparent;
        color: white;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    /* Прячем десктопный логотип внутри выезжающего меню */
    .sidebar .logo {
        display: none; 
    }

    /* Выезжающая панель меню */
    .sidebar {
        position: fixed;
        top: 60px; /* Начинается ровно под мобильной шапкой */
        left: 0;
        width: 230px;
        height: calc(95vh - 60px); /* Высота экрана минус высота шапки */
        z-index: 999;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Отступ сверху для контента, чтобы шапка его не перекрывала */
    .main-content {
        padding: 80px 20px 20px 20px;
        margin-left:0;
    }
}

.sidebar-nav-list a {
    text-decoration: none; /* Убираем подчеркивание */
    color: #333;
    display: block;
    padding: 3px 0;
    color: #1388ed;
}

.plus18Style {
    margin: 5px;
    padding: 3px;
    font-size: 12px;
    border-radius: 5px;
}