* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); color: #333; min-height: 100vh; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Шапка и Панель пользователя */
.header { display: flex; justify-content: space-between; align-items: center; background: white; padding: 20px 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 30px; }
.header h1 { font-size: 1.8rem; color: #2c3e50; }
.user-panel { display: flex; align-items: center; gap: 15px; }
.gamification { background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%); color: white; padding: 8px 15px; border-radius: 20px; font-weight: bold; box-shadow: 0 3px 10px rgba(243,156,18,0.3); }
.user-info { font-weight: 500; display: flex; align-items: center; gap: 10px;}
.btn-logout { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.2rem; }

/* Карточки */
.card, .login-panel { background: white; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); overflow: hidden; }
.card-header, .login-header { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; padding: 20px 30px; display: flex; align-items: center; gap: 15px; }
.card-header h2 { font-size: 1.5rem; margin: 0; }
.card-body, .login-form { padding: 30px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; font-size: 1rem; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; color: white; margin-bottom: 10px; width: 100%; }
.btn-primary { background: linear-gradient(135deg, #3498db, #2980b9); box-shadow: 0 4px 15px rgba(52,152,219,0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.btn-secondary { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 4px 15px rgba(231,76,60,0.3); }
.btn-success { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.btn-warning { background: linear-gradient(135deg, #f1c40f, #f39c12); color: #fff;}
.btn-info { background: linear-gradient(135deg, #1abc9c, #16a085); }
.btn-sm { padding: 8px 15px; font-size: 0.9rem; width: auto; margin:0; }
.btn:disabled { background: #95a5a6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Формы и видео */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; }
.form-control { width: 100%; padding: 12px; font-size: 1rem; border: 2px solid #ddd; border-radius: 8px; }
.video-container { width: 100%; max-width: 640px; margin: 0 auto 20px; border-radius: 10px; overflow: hidden; background: #000; }
.video-container.small { max-width: 320px; }
video { width: 100%; display: block; }

/* Админка и Таблицы */
.admin-header { background: #2c3e50; color: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-nav { display: flex; gap: 10px; margin-bottom: 20px; }
.admin-nav-btn { background: #ecf0f1; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: 600;}
.admin-nav-btn.active { background: #3498db; color: white; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.stat-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid #3498db; }
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 10px; overflow: hidden; }
.data-table th { background: #ecf0f1; padding: 15px; text-align: left; }
.data-table td { padding: 12px 15px; border-bottom: 1px solid #eee; }
.login-panel { max-width: 400px; margin: 100px auto; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; align-items: center; justify-content: center; }
.result-message { padding: 15px; border-radius: 8px; margin-top: 20px; display: none; text-align: center; }
.result-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.result-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.break-buttons { display: flex; gap: 15px; justify-content: center; margin: 20px 0; }

/* Заглушка для мобилок */
#mobileBlocker { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #2c3e50; color: white; z-index: 9999; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
