/* Веб-специфичные стили для прозрачности и скролла */

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Glassmorphism эффекты */
.glass-header {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.glass-navigation {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.08) 100%) !important;
  border-radius: 34px !important;
}

.glass-button {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Фиксированные элементы для правильного скролла */
.fixed-bottom {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
}

.sticky-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* Основной контейнер с правильным скроллом */
.scroll-container {
  height: 100vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Responsive стили для мобильных устройств */
@media (max-width: 768px) {
  .health-screen-container {
    max-width: none !important;
    padding: 15px !important;
  }
  
  .habits-grid-container {
    padding: 10px !important;
  }
  
  .content-container {
    max-width: none !important;
    padding: 15px !important;
    margin: 0 !important;
  }
}

@media (min-width: 769px) {
  .content-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
}

/* Отступы для контента */
.content-with-fixed-nav {
  padding-bottom: 120px !important;
}

/* Плавная прокрутка */
html {
  scroll-behavior: smooth;
}

/* Кастомные скроллбары для webkit */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Скрытие элементов с классом no-gradient */
.no-gradient {
  display: none !important;
}

/* Исправление скролла в профиле для веба */
div[style*="overflowY: scroll"] {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  height: calc(100vh - 120px) !important;
  display: block !important;
}

/* Фикс для всех ScrollView в веб-версии */
.RNSVScrollView {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Отключение backdrop-filter для автогенерируемых классов */
.r-kvuf4a {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Общий фикс для контейнеров с скроллом */
[style*="calc(100vh - 120px)"] {
  overflow-y: scroll !important;
  -webkit-overflow-scrolling: touch !important;
  max-height: calc(100vh - 120px) !important;
}
