/* ========== MODERN PWA STYLES ========== */
:root {
    /* Цветовая палитра - фитнес тема */
    --primary-color: #000000;
    --primary-light: #000000;
    --primary-dark: #000000;
    --secondary-color: #2979FF;
    --accent-color: #FF4081;
    --success-color: #00E676;
    --warning-color: #FFD740;
    --danger-color: #FF5252;
    --info-color: #40C4FF;
    
    /* Нейтральные цвета */
    --bg-color: #F5F7FA;
    --surface-color: #FFFFFF;
    --text-primary: #263238;
    --text-secondary: #607D8B;
    --text-tertiary: #90A4AE;
    --border-color: #E0E0E0;
    --divider-color: #ECEFF1;
    
    /* Эффекты */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* Закругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Высота для мобильных */
    --app-height: 100vh;
}

/* Глобальные сбросы */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed; /* Фиксируем, чтобы не было скролла body */
}

body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: none; /* Отключаем дефолтные жесты */
}

/* Основной контейнер приложения */
#pwa-app {
    width: 100%;
    height: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Основной контейнер для контента */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Контейнер контента внутри скролла */
.content-wrapper {
    padding: 20px;
    padding-bottom: 80px; /* Отступ для нижней навигации */
}

/* ========== APP HEADER ========== */
.app-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 12px 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 100;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.app-logo {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Скрываем ненужные элементы */
.back-button,
.back-btn,
.global-back-btn {
    display: none !important;
}

/* Кнопка уведомлений - показываем только если есть уведомления */
.notification-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.notification-btn.has-notifications {
    background: rgba(255, 255, 255, 0.25);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    padding: 0 6px;
    border: 2px solid var(--primary-dark);
}

.notification-badge.show {
    display: flex;
}

/* User Profile Card */
.user-profile-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.user-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    touch-action: manipulation;
}

.stat-item:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* ========== DASHBOARD SECTIONS ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.section-action {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.section-action:active {
    color: var(--primary-color);
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* Feature Cards */
.feature-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:active {
    transform: translateY(2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.feature-card:active::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.feature-card:active .card-icon {
    transform: scale(0.95);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Special Cards */
.special-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--secondary-color), #6C8CFF);
    color: white;
    border: none;
}

.special-card .card-icon {
    background: rgba(255, 255, 255, 0.2);
}

.special-card .card-title {
    color: white;
}

.special-card .card-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Survey Reminder */
.survey-reminder {
    background: linear-gradient(135deg, var(--warning-color), #FFC107);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border: none;
}

.survey-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.survey-content {
    flex: 1;
}

.survey-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.survey-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.survey-btn {
    background: var(--surface-color);
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    touch-action: manipulation;
}

.survey-btn:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.98);
}

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-color);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-tertiary);
    padding: 8px;
    transition: var(--transition-fast);
    position: relative;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.nav-item span {
    font-size: 0.6875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: translateY(-2px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
}

.nav-item:active {
    color: var(--primary-color);
    transform: scale(0.95);
}

/* ========== INSTALL PROMPT ========== */
.install-prompt {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    border: none;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.install-prompt.show {
    transform: translateY(0);
    display: block;
}

.install-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.install-icon {
    font-size: 2rem;
}

.install-text {
    flex: 1;
}

.install-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.install-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.install-actions {
    display: flex;
    gap: 8px;
}

.install-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    touch-action: manipulation;
}

.install-btn:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.98);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    touch-action: manipulation;
}

.close-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== UTILITY CLASSES ========== */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.pwa-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--surface-color);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
    max-width: 90%;
}

.pwa-toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
}

/* Offline indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--danger-color);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.active {
    transform: translateY(0);
}

/* Pull to refresh indicator */
.pull-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
}

.pull-indicator.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 380px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 16px;
        padding-bottom: 70px;
    }
    
    .app-header {
        padding: 10px 16px;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 16px;
    }
}

/* Фикс для iOS */
@supports (-webkit-touch-callout: none) {
    #pwa-app {
        height: -webkit-fill-available;
    }
    
    .main-content {
        height: -webkit-fill-available;
    }
}

/* Безопасные зоны для iPhone X+ */
@supports (padding: max(0px)) {
    .app-header {
        padding-top: max(12px, env(safe-area-inset-top));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .content-wrapper {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Отключаем hover на мобильных */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .stat-item:hover,
    .nav-item:hover,
    .notification-btn:hover {
        transform: none;
    }
}

/* Предотвращаем zoom на iOS */
input, textarea, select {
    font-size: 16px !important;
}

/* Улучшаем производительность */
.main-content > * {
    transform: translateZ(0);
    will-change: transform;
}

/* Скрываем скроллбар на мобильных */
.main-content::-webkit-scrollbar {
    display: none;
}

.main-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    padding: 0;
}

/* Состояние загрузки */
body.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: fixed;
    z-index: 10000;
}

/* Стили для дашборда */
.survey-section {
    margin-bottom: 30px;
}

.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-text {
    margin-bottom: 20px;
    opacity: 0.9;
}

.welcome-btn {
    background: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.welcome-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Стили для ограниченного доступа */
.limited-section {
    margin-bottom: 30px;
}

.upgrade-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.upgrade-icon {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-bottom: 15px;
}

.upgrade-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.upgrade-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.upgrade-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success-color);
}

.upgrade-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline, .btn-primary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

/* Стили для статуса */
.status-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge.active {
    background: var(--success-color);
    color: white;
}

.status-badge.inactive {
    background: var(--warning-color);
    color: var(--text-primary);
}

.status-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.detail {
    text-align: center;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.text-success {
    color: var(--success-color);
}

.text-muted {
    color: var(--text-tertiary);
}

.register-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.register-link {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

/* Добавьте в свой основной CSS файл PWA */

/* Адаптивность для календаря */
@media (max-width: 600px) {
    .calendar-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        order: 2;
    }
    
    .current-date {
        order: 1;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

.time-slot {
    animation: fadeIn 0.3s ease-out;
}

/* Состояния для PWA */
.pwa-installed .install-btn {
    display: none;
}

/* Оффлайн состояние */
.offline-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ff9800;
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 1000;
}

/* Нотификации */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}