* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #F8F9FA;
    overflow: hidden;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
    position: relative;
    height: 100%;
}

.container {
    width: 100%;
    height: 100%;
    flex-direction: column;
    background-image: url('img/background.png');
    background-size: cover;
    background-position: center;
    padding: 40px 20px 20px 20px;
    position: relative;
    overflow-y: auto;
}

.content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    padding-bottom: 140px !important;
}

/* Стили для страницы питания */
.goal-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
}

.goal-text {
    font-size: 20px;
}

strong {
    font-weight: 550;
}

.target-icon img {
    width: 24px;
    height: 24px;
}

.calories-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.calories-text-wrapper img {
    width: 24px;
    height: 24px;
}

.date-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 550;
    padding: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.arrow img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.progress-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.calories-text {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.progress-bar {
    background: rgba(232, 232, 232, 0.5);
    height: 8px;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-fill {
    background: #007AFF;
    width: 60%;
    height: 100%;
    border-radius: 4px;
}

.meal-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.3);
}

.meal-icon img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.meal-info {
    flex-grow: 1;
}

.meal-calories {
    color: #666;
}

.status-icons {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.status-icon img {
    width: 32px;
    height: 32px;
}

/* Стили для навигации */
.bottom-nav {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% - 40px) !important;
    bottom: 20px !important;
    padding: 10px 25px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
    backdrop-filter: blur(14px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #8E8E93;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 15px;
    padding: 8px 12px;
    user-select: none;
    outline: none;
}

.nav-item:active {
    transform: scale(0.9);
    background: rgba(0, 122, 255, 0.1);
}

.nav-item:hover {
    background: none;
}

.nav-icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
    transition: transform 0.2s ease;
}

.nav-item:active .nav-icon img {
    transform: scale(0.85);
}

.nav-item:active span {
    transform: scale(0.95);
}

.active {
    color: #007AFF;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Стили для профиля */

.menu-arrow {
    transition: transform 0.3s ease;
}

.menu-arrow.active {
    transform: rotate(90deg);
}

.menu-item {
    width: 100%;
    transition: border-radius 0.3s ease;
}

.menu-item.expanded {
    border-radius: 15px 15px 0 0;
}

.accordion-content {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 15px 15px;
    margin-top: -10px;
    margin-bottom: 10px;
    color: black;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}

.accordion-content.active {
    max-height: 500px;
    padding: 20px;
    visibility: visible;
    opacity: 1;
    overflow-y: visible; 
}

.data-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.data-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.data-icon img {
    width: 100%;
    height: 100%;
}

.data-label {
    flex-grow: 1;
    font-size: 16px;
}

.data-input {
    width: 80px;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    font-size: 16px;
    outline: none;
}

.gender-buttons {
    display: flex;
    gap: 10px;
}

.gender-btn {
    padding: 8px 20px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 16px;
    color: black !important
}

.gender-btn.active {
    background: #007bff9e;
    color: white;
}
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 60px;
    height: 60px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-quote {
    font-size: 14px;
    color: #666;
    font-style: italic;
    padding: 0 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
}

.menu-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.menu-icon img {
    width: 100%;
    height: 100%;
}

.menu-text {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
}

.menu-arrow {
    width: 24px;
    height: 24px;
}

.plan-tag {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    margin-left: 10px;
}
/* Скрываем скролл на всех уровнях */
/* Скрываем все скроллбары */
html, body, .container, .content {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.container::-webkit-scrollbar,
.content::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ===== Glassmorphism common styles ===== */
.goal-card,
.date-selector,
.progress-container,
.meal-item,
.accordion-content,
.menu-item,
.profile-avatar,
.plan-selector,
.plan-content,
.stats-card,
.stats-tabs,
.chart-card,
.bottom-nav,
.modal-content,
.info-panel {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

button {
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    outline: none;
}

button:active {
    transform: scale(0.95);
}
