html, body {
  /*font-family: 'Regular', sans-serif;  Телеграмовский шрифт */
  font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, sans-serif;
  
  margin: 0;
  padding: 0;
  background: #efeef2; /* Светлый фон */
  color: #2c2c2c;
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-size: 1rem;
  overflow-x: hidden;
  overflow-y: hidden;
  /*justify-content: center;  Центрирование по горизонтали */
  /*align-items: center;  Центрирование по вертикали */
}


/*Уведомление "НЕТ АНКЕТЫ"*/

#not-registered-message {
    display: none; /* Скрываем по умолчанию */
    flex-direction: column; /* Элементы располагаются вертикально */
    justify-content: center; /* Центрирование содержимого по вертикали */
    align-items: center; /* Центрирование содержимого по горизонтали */
    padding: 1.5rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Лёгкая тень */
    max-width: 400px; /* Максимальная ширина контейнера */
    width: calc(100% - 2rem); /* Ширина с отступами по бокам */
    margin: 1rem auto; /* Отступы сверху/снизу и центрирование */
    box-sizing: border-box; /* Учитываем padding в ширину */
}

#not-registered-message p {
    text-align: center;
    color: #010103; /* Заголовки цвета Telegram */
    margin-top: 1rem;
    font-weight: bold;
}

#not-registered-message button {
    background-color: #007bfe;
    color: white;
    border: none;
    font-size: 18px;
    border-radius: 7.5px;
    padding: 0.75rem 1.5rem;
    text-align: center;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.3s;
    width: calc(100% - 1rem); /* Почти вся ширина контейнера с отступами */
}

.version {
    font-size: 0.5rem;
    color: #818181;
    margin: 0.3rem;
    font-weight: 300;
}



.container {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  margin: 0.5rem;
  margin-bottom: 5rem; 
  /*border-radius: 16px; 
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;*/
}

#loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    color: #007bfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 9999;
    transition: opacity 0.3s ease; /* Плавное скрытие */
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none; /* Отключает блокировку экрана */
}


.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

h1 {
  text-align: center;
  color: #010103; /* Заголовки цвета Telegram */
  margin-top: 1rem;
  margin-bottom: 0rem;
  font-size: 1.75rem;
  font-weight: 600;
  /*line-height: 1.5;*/
  /*letter-spacing: 0.101em;*/ /* Легкое сжатие между буквами */
}

.h2 {
  margin-top: 1.5rem; /* Вытащить заголовок вверх */
  margin-bottom: 0.5rem; /* Добавить расстояние от блока */
  color: #6b6b6b;
  font-size: 1rem;
  font-weight: 300;
  text-align: left; /* Центрирование заголовка, если требуется */
}

.h3 {
  text-align: center;
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-top: 0.3rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
}

.button {
  background-color: #007bfe; /* Новый цвет кнопок */
  margin-top: 1rem;
  color: white;
  border: none;
  font-size: 18px;
  border-radius: 7.5px;
  justify-content: space-between;
  padding: 0.75rem;
  text-align: center;
  box-sizing: border-box;
  font-weight: 400;
  cursor: pointer;
}


/*ВКЛАДКА "ДНЕВНИК"*/

.date-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #010103; 
  padding: 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/
  border: 1px solid #e0e0e0;
}

.date-navigation button {
  background-color: #007bfe; /* Новый цвет кнопок */
  color: white;
  border: none;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 8px;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.summary-container {
    display: flex;
    flex-wrap: wrap; /* Разрешаем перенос элементов на новую строку */
    justify-content: center; /* Центрируем элементы по горизонтали */
    gap: 10px; /* Расстояние между элементами */
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0; /* Расстояние между блоками */
    padding: 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    flex: 1 1 calc(33.333% - 20px); /* Ширина элемента: 33%, с учетом промежутков */
    max-width: 200px; /* Ограничение максимальной ширины */
    text-align: center; /* Центрируем текст внутри элемента */
    box-sizing: border-box; /* Учитываем padding и margin в ширине */
    margin: 0; /* Сбросьте отступы */
}


.value {
    font-size: 24px; /* Крупный шрифт для значений */
    font-weight: bold; /* Жирный текст */
    color: #010103; /* Темный текст */
}

.label {
    font-size: 14px; /* Мелкий шрифт для подписей */
    color: #888; /* Серый текст */
    margin-top: 4px; /* Расстояние между значением и подписью */
}
.photo-block {
    display: flex;
    flex-direction: row; /* Изображение и текст в строку */
    align-items: center; /* Выравнивание по вертикали */
    margin: 10px 0;
    padding: 0.75rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    max-width: 400px;
    box-sizing: border-box;
}

.photo-item {
    /*flex: 0 0 150px;  Фиксированная ширина */
    width: 150px;
    height: 250px; /* Фиксированная высота */
    object-fit: cover;
    margin-right: 15px;
    border-radius: 8px;
    background-color: #eee;
}

.photo-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.photo-title {
    font-size: 16px;
    /*font-weight: bold;*/
    margin-top: 0rem;
    margin-bottom: 0.2rem;
    color: #333;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
}


.value-photo {
    font-size: 14px; /* Крупный шрифт для значений */
    font-weight: bold; /* Жирный текст */
    color: #010103; /* Темный текст */
}

.label-photo {
    font-size: 14px; /* Мелкий шрифт для подписей */
    color: #888; /* Серый текст */
    margin: 4px; /* Расстояние между значением и подписью */
    align-items: center;
    height: auto;
}

.top-products {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 12px;
  background: #ffffff;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);*/
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
}

ul {
    list-style-position: inside;
}


.top-products h2 {
  margin-top: 1.5rem; /* Вытащить заголовок вверх */
  margin-bottom: 0.5rem; /* Добавить расстояние от блока */
  color: #6b6b6b;
  font-size: 1rem;
  font-weight: 300;
  text-align: left; /* Центрирование заголовка, если требуется */
}

.top-products ul {
  padding-left: 1rem;
  margin: 0;
}



/*ВКЛАДКА "ДРУЗЬЯ"*/
.info-referal {
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: center; /* Центрирование по вертикали */
}

.info-referal-link {
  flex-direction: column;
  margin: 0;
  padding: 0.1rem;
  padding-left: 1rem;
  border-radius: 12px;
  background: #f5f5f5;
  border: 0px solid #e0e0e0;
  margin-bottom: 1rem;
  margin-top: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size:0.85rem;
}

.info-referal-button {
  background-color: #007bfe;
  color: white;
  border: none;
  font-size: 18px;
  border-radius: 7.5px;
  justify-content: space-between;
  padding: 0.75rem;
  text-align: center;
  box-sizing: border-box;
  font-weight: 400;
  cursor: pointer;
}

.friends {
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  line-height: 25px;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: center; /* Центрирование по вертикали */
}


/*ВКЛАДКА "ДИНАМИКА"*/

.weight-input-section {
  margin-bottom: 1.2rem;
  justify-content: space-between;
  align-items: center; /* Центрирование по вертикали */
  font-size: 16px;
  color: #6b6b6b;
  padding: 0.75rem;
  text-align: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  
}

.weight-input {
  margin-top: 0.4rem;
  padding: 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  border-radius: 7.5px;
  width:100%;
  border: 1px solid #ccc;
  justify-content: space-between;
  box-sizing: border-box
}

.save-weight-button {
  background-color: #007bfe; /* Новый цвет кнопок */
  color: white;
  border: none;
  font-size: 18px;
  border-radius: 7.5px;
  justify-content: space-between;
  padding: 0.75rem;
  text-align: center;
  box-sizing: border-box;
  font-weight: 400;
  cursor: pointer;
}

.chart-container {
  margin-bottom: 1.2rem;
  justify-content: space-between;
  align-items: center; 
  
  color: #6b6b6b;
  padding: 0.75rem;
  text-align: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  height: 300px; /* Установите желаемую высоту, например 300px */
  min-height: 200px; /* Минимальная высота для предотвращения слишком сильного сжатия */
}

.chart-container.hidden {
  opacity: 0;
}

.no-data-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #ffffff;
}


/*ВКЛАДКА ПРОФИЛЬ*/
.avatar{
  margin-top: 1.2rem;
  justify-content: space-between;
  align-items: center; 
  text-align: center;
}

.user-name{
  text-align: center;
  color: #010103; /* Заголовки цвета Telegram */
  margin-top: 1rem;
  margin-bottom: 0rem;
  font-size: 1.75rem;
  font-weight: 600;
}

.user-goal {
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: center; /* Центрирование по вертикали */
}

.user-info {
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  margin-bottom: 1rem;
  justify-content: space-between;
  align-items: center; /* Центрирование по вертикали */
}

#user-info {
  margin: 0;
  line-height: 25px;
}

.support {
 /* background-color: #007bfe;  Новый цвет кнопок */
 margin-top:1rem;
 margin-bottom:1.5rem;
 text-decoration: underline;
  border: none;
  font-size: 16px;
  border-radius: 7.5px;
  justify-content: space-between;
  padding: 0rem;
  text-align: center;
  box-sizing: border-box;
  font-weight: 400;
  cursor: pointer;
}



/*НАСТРОЙКА ВКЛАДОК*/

.tabs {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem;
  position: fixed;
  bottom: 0;
  width: 95%;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.85rem;
  cursor: pointer;
  line-height: 20px;
  font-size: 0.85rem;
  flex-direction: column;
}

.tab.active {
  /*font-weight: bold;*/
  color: white;
  background: #007bfe;
  border-radius: 12px;
}