/* Стили для Beremen01 App */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f2f3f5;
    color: #333;
    line-height: 1.6;
}

#app {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

.welcome, .main-menu, .weight-page, .pressure-page, .mood-page, .sugar-page {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.emoji {
    font-size: 64px;
    margin-bottom: 20px;
}

h1, h2 {
    margin-bottom: 16px;
    color: #333;
}

h3 {
    margin: 20px 0 12px;
    color: #555;
    text-align: left;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.menu-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: #e9ecef;
    border-color: #2aabee;
    transform: translateY(-2px);
}

.menu-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.menu-title {
    font-weight: 600;
    color: #333;
}

.input-group {
    margin: 16px 0;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #2aabee;
}

.input-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 8px;
    min-width: 120px;
}

.btn-primary {
    background: #2aabee;
    color: white;
}

.btn-primary:hover {
    background: #2298d4;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

.history-list {
    margin-top: 16px;
}

.history-item {
    background: #f8f9fa;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.history-item span {
    margin: 0 8px;
}

/* Адаптивность */
@media (max-width: 480px) {
    #app {
        padding: 8px;
    }
    
    .welcome, .main-menu, .weight-page, .pressure-page, .mood-page, .sugar-page {
        padding: 16px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .emoji {
        font-size: 48px;
    }
}

/* Новые стили для улучшенного интерфейса */
.welcome-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.feature-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.user-info {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.menu-desc {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.stats-summary {
    margin: 24px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #2aabee;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

.menu-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.settings-page {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.settings-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: #555;
}

.setting-item input {
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 6px;
    background: white;
}

.setting-item span {
    color: #2aabee;
    font-weight: 600;
}

.settings-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome, .main-menu, .weight-page, .pressure-page, .mood-page, .sugar-page, .settings-page {
    animation: fadeIn 0.3s ease-out;
}