/
tracie
/
Fullstack_website_1
Обзор
Документация
Войти
/
tracie
/
Fullstack_website_1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/css/style.css
2 326 строк
47 KB
tracie
done
13 окт 2025, 07:23
13 окт 2025, 07:23
1e0c427
Код
Авторство
О чём код?
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Share+Tech+Mono&display=swap'); /* Общие настройки */ ::-webkit-scrollbar { width: 12px; } /* Трек (фон скроллбара) */ ::-webkit-scrollbar-track { background: #e0e0e0; border-radius: 10px; box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1); } /* Сам ползунок */ ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--neon-blue), #00eaff, #00ffab); border-radius: 10px; box-shadow: 0 0 8px rgba(0, 162, 255, 0.8), 0 0 16px rgba(0, 162, 255, 0.6), inset 0 0 10px rgba(0, 162, 255, 0.6); transition: all 0.3s ease-in-out; border: 1px solid rgba(0, 162, 255, 0.5); } /* Наведение — усиление свечения */ ::-webkit-scrollbar-thumb:hover { box-shadow: 0 0 15px rgba(0, 162, 255, 1), 0 0 20px rgba(0, 162, 255, 0.8), inset 0 0 12px rgba(0, 162, 255, 0.9); background: linear-gradient(180deg, var(--neon-blue), #00aaff, #00ffcc); } * { scrollbar-width: thin; scrollbar-color: var(--neon-blue) #e0e0e0; } /* ========= GLOBAL VARIABLES ========= */ :root { --main-bg: #f5f5f5; --terminal-bg: #ffffff; --blood-red: #ff0033; --toxic-green: #00aa33; --cyber-yellow: #ff9900; --neon-blue: #0066ff; --dark-metal: #e0e0e0; --panel-gray: #cccccc; --grid-color: rgba(0, 170, 51, 0.1); } /* ========= BASE STYLES ========= */ * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: var(--main-bg); color: #333333; font-family: 'Share Tech Mono', monospace; line-height: 1.6; background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px); background-size: 30px 30px; min-height: 100vh; display: flex; flex-direction: column; } /* ========= HEADER STYLES ========= */ .main-header { display: flex; justify-content: center; position: relative; align-items: center; background-color: var(--terminal-bg); padding: 15px 40px; border-bottom: 3px solid var(--blood-red); position: sticky; top: 0; z-index: 1000; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); } .header-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1200px; /* Ограничиваем максимальную ширину */ } .header-brand { display: flex; align-items: center; gap: 20px; } .login-section { display: flex; justify-content: center; align-items: center; min-height: calc(60vh); width: 100%; } .register-section { display: flex; justify-content: center; align-items: center; min-height: calc(60vh); width: 100%; } .logo { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; border: 2px solid var(--cyber-yellow); box-shadow: 0 0 10px var(--cyber-yellow); transition: transform 0.3s; } .logo:hover { transform: rotate(15deg) scale(1.1); } .header-brand h1 { margin: 0; font-size: 1.8rem; } .header-brand h1 a { font-family: 'Press Start 2P', cursive; color: var(--cyber-yellow); text-decoration: none; text-shadow: 0 0 4px var(--blood-red); letter-spacing: 2px; position: relative; transition: all 0.3s; display: inline-block; padding: 5px 10px; } .header-brand h1 a:visited { color: var(--cyber-yellow); } .header-brand h1 a:hover { color: var(--neon-blue); text-shadow: 0 0 5px var(--neon-blue); transform: translateY(-2px); } .header-brand h1 a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--toxic-green); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; } .header-brand h1 a:hover::after { transform: scaleX(1); transform-origin: left; background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); } .header-title { color: var(--cyber-yellow); font-family: 'Press Start 2P', cursive; font-size: 1.2rem; text-shadow: 0 0 4px var(--blood-red); letter-spacing: 2px; } .nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 30px; /* Увеличил gap для лучшего визуального разделения */ white-space: nowrap; /* Запрещаем переносы текста */ } /* Ваши текущие стили .nav-link остаются без изменений */ .nav-link { color: var(--toxic-green); text-decoration: none; font-family: 'VT323', monospace; font-size: 1.4rem; padding: 5px 10px; border-bottom: 2px solid transparent; transition: all 0.3s; position: relative; } .nav-link:hover { border-bottom-color: var(--toxic-green); text-shadow: 0 0 5px var(--toxic-green); } .nav-link.active { border-bottom-color: var(--blood-red); } /* Стили для секции авторизации */ .auth-section { margin-left: auto; display: flex; align-items: center; } /* Стили для авторизованного пользователя */ .user-profile { display: flex; align-items: center; gap: 10px; /* Отступ между элементами */ } .user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; } .user-avatar:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(74, 118, 168, 0.8); } .nav-dropdown { display: flex; align-items: center; gap: 15px; } .username { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 600; color: #fff; background: linear-gradient(90deg, #4a76a8, #3a5f8a); padding: 8px 15px; border-radius: 25px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .username i.fa-user { font-size: 1rem; } .username i.fa-caret-down { font-size: 0.9rem; transition: transform 0.3s ease; } .username:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); } /* Неоново-красная кнопка выхода */ .btn-logout { display: flex; align-items: center; gap: 8px; padding: 8px 20px; background-color: transparent; color: #ff4d4d; border: 2px solid #ff4d4d; border-radius: 25px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 0 10px rgba(255, 77, 77, 0); } .btn-logout:hover { background-color: #ff4d4d; color: white; box-shadow: 0 0 15px rgba(255, 77, 77, 0.7); transform: translateY(-2px); } .btn-logout i { font-size: 0.9rem; } /* Кнопка входа для неавторизованных */ .btn-auth { display: flex; align-items: center; gap: 8px; padding: 10px 25px; background: linear-gradient(90deg, #4a76a8, #3a5f8a); color: white; border: none; border-radius: 25px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .btn-auth:hover { transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); background: linear-gradient(90deg, #3a5f8a, #2a4a6a); } .btn-auth i { font-size: 0.9rem; } /* ========= BUTTON STYLES ========= */ .btn-auth { padding: 0.75rem 1.5rem; font-family: 'VT323', monospace; font-size: 1.4rem; background: transparent; color: var(--neon-blue); border: 2px solid var(--neon-blue); border-radius: 5px; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; position: relative; overflow: hidden; box-shadow: 0 0 10px rgba(0, 162, 255, 0.3); text-transform: uppercase; letter-spacing: 1px; } .btn-auth:hover { background: var(--neon-blue); color: var(--terminal-bg); transform: translateY(-3px); box-shadow: 0 0 10px var(--neon-blue); text-shadow: 0 0 2px var(--terminal-bg); } .btn-auth i { transition: transform 0.3s; } .btn-auth:hover i { transform: rotate(90deg) scale(1.2); } .btn-auth::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.4), transparent); transition: 0.5s; } .btn-auth:hover::before { left: 100%; } .btn-logout { background: transparent; border: 2px solid var(--blood-red); color: var(--toxic-green); padding: 8px 15px; font-family: 'VT323', monospace; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; } .btn-logout:hover { background: var(--blood-red); color: white; box-shadow: 0 0 15px var(--blood-red); } .auth-form { display: flex; flex-direction: column; gap: 1.5rem; } .auth-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--toxic-green); } /* ========= TERMINAL WINDOW STYLES ========= */ .terminal-window { background: var(--terminal-bg); border: 3px solid var(--toxic-green); border-radius: 8px; width: 100%; max-width: 500px; box-shadow: 0 0 30px rgba(0, 170, 51, 0.1); overflow: hidden; } .terminal-header { background: var(--dark-metal); padding: 0.75rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 2px solid var(--toxic-green); } .terminal-buttons { display: flex; gap: 0.5rem; } .terminal-btn { width: 12px; height: 12px; border-radius: 50%; } .terminal-btn.red { background: var(--blood-red); } .terminal-btn.yellow { background: var(--cyber-yellow); } .terminal-btn.green { background: var(--toxic-green); } .terminal-header h2 { font-family: 'VT323', monospace; font-size: 1.8rem; color: var(--toxic-green); margin-left: 1rem; } .terminal-body { padding: 2rem; } /* ========= MAIN CONTENT STYLES ========= */ .container { flex: 1; padding: 30px; max-width: 1400px; margin: 0 auto; width: 100%; } /* ========= HERO SECTION ========= */ .hero-section { display: flex; flex-direction: column; align-items: center; gap: 3rem; padding: 4rem 0; text-align: center; } @media (min-width: 992px) { .hero-section { flex-direction: row; text-align: left; } } .hero-text { flex: 1; max-width: 800px; } .hero-text h2 { font-family: 'Press Start 2P', cursive; font-size: 2rem; margin-bottom: 1.5rem; line-height: 1.3; color: var(--cyber-yellow); text-shadow: 0 0 3px var(--blood-red); } .text-highlight { color: var(--neon-blue); } .subtitle { font-size: 1.25rem; color: var(--toxic-green); margin-bottom: 2rem; line-height: 1.6; } .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; } @media (min-width: 992px) { .cta-buttons { justify-content: flex-start; } } .btn-primary, .btn-secondary { padding: 0.75rem 1.5rem; min-width: 180px; font-family: 'VT323', monospace; font-size: 1.4rem; border-radius: 5px; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; position: relative; overflow: hidden; border: none; box-shadow: 0 0 10px rgba(0, 255, 68, 0.3); } .btn-primary { background: var(--blood-red); color: var(--cyber-yellow); border: 2px solid var(--cyber-yellow); } .btn-primary:hover { background: var(--cyber-yellow); color: var(--blood-red); box-shadow: 0 0 25px rgba(255, 204, 0, 0.4); } .btn-secondary { background: transparent; color: var(--neon-blue); border: 2px solid var(--neon-blue); } .btn-secondary:hover { background: var(--neon-blue); color: var(--terminal-bg); box-shadow: 0 0 25px rgba(0, 162, 255, 0.3); } .btn-primary i, .btn-secondary i { transition: transform 0.3s; } .btn-primary:hover i, .btn-secondary:hover i { transform: translateX(5px); } .hero-image { flex: 1; text-align: center; } .hero-image img { max-width: 100%; height: auto; border: 3px solid var(--neon-blue); border-radius: 8px; box-shadow: 0 0 30px rgba(0, 162, 255, 0.3); } /* ========= FEATURES SECTION ========= */ .features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 4rem 0; } .feature-card { background: var(--terminal-bg); border: 2px solid var(--toxic-green); padding: 2rem; border-radius: 8px; transition: all 0.3s; box-shadow: 0 0 20px rgba(0, 255, 68, 0.1); } .feature-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 10px 30px rgba(0, 162, 255, 0.2); } .feature-icon { font-size: 2.5rem; color: var(--cyber-yellow); margin-bottom: 1.5rem; } .feature-card h3 { font-family: 'VT323', monospace; font-size: 1.8rem; margin-bottom: 1rem; color: var(--cyber-yellow); } .feature-card p { color: var(--toxic-green); font-size: 1.1rem; line-height: 1.6; } /* ========= DASHBOARD STYLES ========= */ .dashboard-header { margin-bottom: 4rem; padding-bottom: 2rem; border-bottom: 3px solid var(--blood-red); text-align: center; } .dashboard-header h1 { font-family: 'Press Start 2P', cursive; font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--cyber-yellow); text-shadow: 0 0 5px var(--blood-red); letter-spacing: 2px; } .dashboard-header p { font-size: 1.5rem; color: var(--toxic-green); font-family: 'VT323', monospace; } /* Статистика */ .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 4rem; } .stat-card { background: var(--terminal-bg); border: 3px solid var(--neon-blue); padding: 2.5rem; border-radius: 12px; text-align: center; transition: all 0.3s; box-shadow: 0 0 25px rgba(0, 162, 255, 0.15); } .stat-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 162, 255, 0.25); } .stat-value { font-size: 3.5rem; font-weight: bold; color: var(--cyber-yellow); margin-bottom: 1rem; font-family: 'VT323', monospace; } .stat-label { font-size: 1.4rem; color: var(--toxic-green); display: flex; align-items: center; justify-content: center; gap: 0.8rem; } /* Список опросов */ .dashboard-section { margin-bottom: 5rem; } .dashboard-section h2 { font-family: 'Press Start 2P', cursive; font-size: 2rem; margin-bottom: 2.5rem; color: var(--cyber-yellow); text-shadow: 0 0 3px var(--blood-red); padding-bottom: 1rem; border-bottom: 2px solid var(--blood-red); } .quick-actions { display: flex; gap: 1.5rem; margin-bottom: 3rem; flex-wrap: wrap; } .action-btn { flex: 1; min-width: 200px; padding: 1.2rem; background: var(--terminal-bg); border: 2px solid var(--neon-blue); color: var(--neon-blue); font-family: 'VT323', monospace; font-size: 1.5rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 1rem; border-radius: 5px; } .action-btn:hover { background: var(--blood-red); color: var(--toxic-green); transform: translateY(-5px); box-shadow: 0 0 25px rgba(255, 0, 51, 0.3); } /* ========= POLLS LIST STYLES ========= */ .polls-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; } .polls-header h1 { font-family: 'Press Start 2P', cursive; font-size: 1.8rem; color: var(--cyber-yellow); text-shadow: 0 0 3px var(--blood-red); display: flex; align-items: center; gap: 1rem; } .btn-create { padding: 0.75rem 1.5rem; background: var(--blood-red); border: 2px solid var(--cyber-yellow); color: var(--cyber-yellow); font-family: 'Press Start 2P', cursive; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border-radius: 5px; } .btn-create:hover { background: var(--cyber-yellow); color: var(--blood-red); transform: translateY(-3px); box-shadow: 0 0 25px rgba(255, 204, 0, 0.4); } .polls-controls { display: flex; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1.5rem; } .search-box { flex: 1; min-width: 300px; position: relative; } .search-box input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; background: var(--terminal-bg); border: 2px solid var(--toxic-green); color: var(--toxic-green); font-family: 'Share Tech Mono', monospace; font-size: 1rem; border-radius: 5px; } .search-box::before { content: '\f002'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--toxic-green); } .filters { display: flex; gap: 1rem; flex-wrap: wrap; } .filters select { padding: 0.75rem; background: var(--terminal-bg); border: 2px solid var(--toxic-green); color: var(--toxic-green); font-family: 'VT323', monospace; font-size: 1.2rem; border-radius: 5px; min-width: 200px; } .polls-list { display: flex; flex-direction: column; gap: 3rem; } .poll-card { background: var(--terminal-bg); border: 2px solid var(--toxic-green); padding: 3rem; border-radius: 15px; transition: all 0.4s; box-shadow: 0 0 20px rgba(0, 170, 51, 0.1); } .poll-card:hover { transform: translateY(-8px); border-color: var(--neon-blue); box-shadow: 0 15px 40px rgba(0, 162, 255, 0.3); } .poll-title { font-size: 1.8rem; color: orange; margin-bottom: 2rem; font-family: 'VT323', monospace; letter-spacing: 1px; } .poll-meta { display: flex; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; } .poll-meta span { display: flex; align-items: center; gap: 1rem; color: var(--toxic-green); font-family: 'VT323', monospace; font-size: 1.5rem; } .poll-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; } .poll-btn { padding: 1rem 2rem; border: 3px solid; border-radius: 8px; font-size: 1.3rem; font-family: 'VT323', monospace; transition: all 0.3s; display: flex; align-items: center; gap: 0.8rem; text-transform: uppercase; letter-spacing: 1px; } .poll-card { background: var(--terminal-bg); border: 2px solid var(--toxic-green); padding: 2rem; border-radius: 8px; transition: all 0.3s; box-shadow: 0 0 20px rgba(0, 255, 68, 0.1); } .poll-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 10px 30px rgba(0, 162, 255, 0.2); } .poll-info h3 { font-family: 'VT323', monospace; font-size: 2rem; margin-bottom: 0.5rem; color: var(--cyber-yellow); } .poll-description { color: var(--toxic-green); margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.6; } .poll-meta { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; } .poll-meta span { display: flex; align-items: center; gap: 0.5rem; color: var(--toxic-green); font-family: 'VT323', monospace; font-size: 1.2rem; } .poll-actions { display: flex; gap: 1rem; flex-wrap: wrap; } .btn-action { padding: 0.75rem 1.5rem; font-family: 'VT323', monospace; font-size: 1.2rem; cursor: pointer; transition: all 0.3s; border-radius: 5px; display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; border: 2px solid; } .btn-view { background: transparent; border-color: var(--neon-blue); color: var(--neon-blue); } .btn-view:hover { background: var(--neon-blue); color: var(--terminal-bg); } .btn-edit { background: transparent; border-color: var(--cyber-yellow); color: var(--cyber-yellow); } .btn-edit:hover { background: var(--cyber-yellow); color: var(--terminal-bg); } .btn-share { background: transparent; border-color: var(--toxic-green); color: var(--toxic-green); } .btn-share:hover { background: var(--toxic-green); color: var(--terminal-bg); } /* Графики аналитики */ .analytics-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin: 5rem 0; } .analytics-item { position: relative; padding: 2rem 0; padding: 0; border-bottom: 3px solid var(--neon-purple); } .analytics-item h3 { font-size: 2rem; color: var(--cyber-yellow); margin-bottom: 2rem; font-family: 'VT323', monospace; letter-spacing: 3px; text-align: center; text-shadow: 0 0 3px var(--blood-red); padding: 1rem; background: rgba(0, 0, 0, 0.3); border-radius: 8px; border: 1px solid var(--toxic-green); } .analytics-card { background: var(--terminal-bg); border: 3px solid var(--neon-purple); padding: 3rem; border-radius: 15px; box-shadow: 0 0 35px rgba(162, 0, 255, 0.15); } .analytics-card h3 { font-size: 1.8rem; color: white; margin-bottom: 3rem; font-family: 'VT323', monospace; display: flex; align-items: center; gap: 1rem; } .chart-container { position: relative; height: 650px; /* Увеличенная высота */ width: 100%; display: flex; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.15); border: 3px solid var(--neon-blue); border-radius: 12px; padding: 2rem; box-shadow: 0 0 40px rgba(0, 162, 255, 0.2); } /* Стили для canvas графиков */ .chart-container canvas { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; } .btn-analytics { background: transparent; border-color: #805ad5; color: #805ad5; } .btn-analytics:hover { background: #805ad5; color: white; } .btn-delete { background: transparent; border-color: var(--blood-red); color: var(--blood-red); } .btn-delete:hover { background: var(--blood-red); color: white; } .pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; } .btn-pagination { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--terminal-bg); border: 2px solid var(--toxic-green); color: var(--toxic-green); border-radius: 5px; cursor: pointer; transition: all 0.3s; font-family: 'VT323', monospace; font-size: 1.2rem; } .btn-pagination:hover:not(:disabled) { border-color: var(--neon-blue); color: var(--neon-blue); } .btn-pagination.active { background: var(--blood-red); border-color: var(--blood-red); color: var(--cyber-yellow); } .btn-pagination:disabled { opacity: 0.5; cursor: not-allowed; } /* ========= CREATE POLL STYLES ========= */ .create-poll-header { margin-bottom: 3rem; } .create-poll-header h1 { font-family: 'Press Start 2P', cursive; font-size: 1.8rem; color: var(--cyber-yellow); text-shadow: 0 0 3px var(--blood-red); margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; } .create-poll-header p { font-size: 1.2rem; color: var(--toxic-green); } .poll-form { display: flex; flex-direction: column; gap: 3rem; } .form-section { background: var(--terminal-bg); border: 2px solid var(--toxic-green); padding: 2rem; border-radius: 8px; box-shadow: 0 0 20px rgba(0, 255, 68, 0.1); } .form-section h2 { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; margin-bottom: 2rem; color: var(--cyber-yellow); text-shadow: 0 0 3px var(--blood-red); display: flex; align-items: center; gap: 1rem; } .form-group { display: flex; flex-direction: column; gap: 0.5rem; } .form-group label { font-family: 'VT323', monospace; font-size: 1.5rem; color: var(--toxic-green); } .form-group input { background: var(--dark-metal); border: 2px solid var(--toxic-green); color: var(--toxic-green); padding: 0.75rem 1rem; font-family: 'Share Tech Mono', monospace; font-size: 1rem; border-radius: 5px; transition: all 0.3s; } .form-group input:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); } .form-group input[type="text"], .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; background: var(--dark-metal); border: 2px solid var(--toxic-green); color: var(--toxic-green); font-family: 'Share Tech Mono', monospace; font-size: 1rem; border-radius: 5px; transition: all 0.3s; } .form-group input[type="text"]:focus, .form-group textarea:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 15px var(--neon-blue); } .form-group textarea { min-height: 150px; resize: vertical; } .form-group input[type="checkbox"] { margin-right: 0.75rem; width: 20px; height: 20px; accent-color: var(--toxic-green); } .questions-list { display: flex; flex-direction: column; gap: 2rem; } .question-card { background: var(--dark-metal); border: 2px solid var(--toxic-green); padding: 2rem; border-radius: 8px; position: relative; } .question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } .question-header h3 { font-family: 'VT323', monospace; font-size: 1.8rem; color: var(--cyber-yellow); } .btn-remove-question { background: var(--blood-red); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; } .btn-remove-question:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--blood-red); } .options-container { margin-top: 1.5rem; } .options-container label { display: block; margin-bottom: 1rem; font-family: 'VT323', monospace; font-size: 1.3rem; color: var(--toxic-green); } .options-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; } .option-item { display: flex; gap: 1rem; align-items: center; } .option-item input { flex: 1; padding: 0.75rem 1rem; background: var(--terminal-bg); border: 2px solid var(--toxic-green); color: var(--toxic-green); font-family: 'Share Tech Mono', monospace; font-size: 1rem; border-radius: 5px; } .btn-remove-option { background: var(--blood-red); border: none; color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; } .btn-remove-option:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--blood-red); } .btn-add-option, .btn-add-question { padding: 0.75rem 1.5rem; background: var(--toxic-green); border: none; color: var(--terminal-bg); font-family: 'VT323', monospace; font-size: 1.3rem; cursor: pointer; transition: all 0.3s; border-radius: 5px; display: inline-flex; align-items: center; gap: 0.5rem; } .btn-add-option:hover, .btn-add-question:hover { background: var(--neon-blue); transform: translateY(-3px); box-shadow: 0 0 25px rgba(0, 162, 255, 0.3); } .btn-add-question { margin-top: 1.5rem; background: var(--blood-red); } .btn-add-question:hover { background: var(--cyber-yellow); color: var(--blood-red); } .form-actions { display: flex; justify-content: flex-end; gap: 1.5rem; margin-top: 3rem; } .btn-cancel, .btn-submit { padding: 0.75rem 1.5rem; font-family: 'Press Start 2P', cursive; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 5px; } .btn-cancel { background: transparent; border: 2px solid var(--blood-red); color: var(--blood-red); } .btn-cancel:hover { background: var(--blood-red); color: white; transform: translateY(-3px); box-shadow: 0 0 25px rgba(255, 0, 51, 0.3); } .btn-submit { background: var(--toxic-green); border: 2px solid var(--toxic-green); color: var(--terminal-bg); } .btn-submit:hover { background: var(--neon-blue); border-color: var(--neon-blue); transform: translateY(-3px); box-shadow: 0 0 25px rgba(0, 162, 255, 0.3); } /* ========= FOOTER STYLES ========= */ .main-footer { background: var(--terminal-bg); color: var(--toxic-green); padding: 2rem 0 1rem; margin-top: 3rem; border-top: 3px solid var(--blood-red); } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 2rem; } .footer-section h4 { font-family: 'Press Start 2P', cursive; font-size: 1rem; margin-bottom: 1rem; color: var(--cyber-yellow); } .poll-card.clickable { cursor: pointer; position: relative; } .poll-card.clickable:hover { background-color: #f8f9fa; /* Легкий hover-эффект */ transition: background-color 0.2s ease; } .poll-card.clickable { cursor: pointer; text-decoration: none !important; color: inherit !important; } .poll-card.clickable:hover { background-color: #f5f5f5; transition: background-color 0.2s; } .poll-card.clickable * { text-decoration: none !important; } /* Вариант 1: Для всех заголовков в карточке */ .poll-card h3 { color: var(--cyber-yellow); text-decoration: none; } /* Вариант 2: Если проблема из-за кликабельной области */ .poll-card.clickable { text-decoration: none; color: inherit; /* Наследует цвет родителя */ } /* Вариант 3: Если h3 становится ссылкой */ .poll-card h3:any-link, .poll-card h3:visited { color: inherit; text-decoration: none; } /* Убираем подсветку текста при клике */ .poll-card.clickable * { -webkit-tap-highlight-color: transparent; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } /* Исключаем кнопки действий из кликабельности */ .poll-card.clickable .poll-actions, .poll-card.clickable .poll-actions * { cursor: default; pointer-events: none; } .footer-links { list-style: none; padding-left: 0; } .footer-links li { margin-bottom: 0.75rem; } .footer-links a { color: var(--toxic-green); text-decoration: none; font-family: 'VT323', monospace; font-size: 1.1rem; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; position: relative; padding: 0.2rem 0; overflow: hidden; } .footer-links a::before { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--neon-blue); transition: width 0.3s ease, box-shadow 0.3s ease; } .footer-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--toxic-green), transparent); transform: translateX(-100%); opacity: 0; transition: transform 0.5s ease, opacity 0.3s ease; } .footer-links a:hover { color: var(--neon-blue); text-shadow: 0 0 3px var(--neon-blue); transform: translateX(5px); } .footer-links a:hover::before { width: 100%; box-shadow: 0 0 10px var(--neon-blue); } .footer-links a:hover::after { transform: translateX(100%); opacity: 1; transition-delay: 0.3s; } .footer-links a i { transition: transform 0.3s ease, color 0.3s ease; } .footer-links a:hover i { transform: rotate(15deg) scale(1.2); color: var(--blood-red); } .contact-info { list-style: none; padding-left: 0; } .contact-info li { margin-bottom: 0.75rem; font-size: 1.1rem; gap: 0.5rem; } .footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--toxic-green); } .social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; } .social-links a { font-size: 1.2rem; } .copyright { font-size: 1rem; } /* ========= CYBER PIE CHART ========= */ .cyber-pie-chart { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 30px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--toxic-green); margin: 30px 0; position: relative; overflow: hidden; } .cyber-pie-chart::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, transparent 60%, rgba(0, 255, 68, 0.05) 60.5%, transparent 61%) 0 0 / 50px 50px, radial-gradient(circle, transparent 60%, rgba(0, 255, 68, 0.05) 60.5%, transparent 61%) 25px 25px / 50px 50px; animation: moveGrid 10s linear infinite; } .pie { width: 220px; height: 220px; border-radius: 50%; background: conic-gradient( var(--color) 0%, var(--color) calc(var(--percentage) * 1%), transparent calc(var(--percentage) * 1%), transparent 100% ); position: relative; box-shadow: 0 0 20px var(--color); animation: pulse 2s infinite alternate; display: flex; align-items: center; justify-content: center; z-index: 2; } .pie::before { content: ""; position: absolute; width: 80%; height: 80%; border-radius: 50%; background: var(--terminal-bg); border: 2px dashed var(--toxic-green); } .pie span { font-family: 'Press Start 2P', cursive; font-size: 1.5rem; color: var(--color); text-shadow: 0 0 2px var(--color); z-index: 3; } .pie-info { display: flex; flex-direction: column; gap: 15px; z-index: 2; } .info-item { display: flex; align-items: center; gap: 15px; font-family: 'VT323', monospace; font-size: 1.5rem; } .info-label { color: var(--toxic-green); width: 100px; } .info-value { color: var(--color); text-shadow: 0 0 2px var(--color); } /* ========= ANIMATIONS ========= */ @keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } } @keyframes neon-glow { 0% { text-shadow: 0 0 2px var(--toxic-green); } 50% { text-shadow: 0 0 5px var(--toxic-green); } 100% { text-shadow: 0 0 2px var(--toxic-green); } } /* ========= RESPONSIVE STYLES ========= */ @media (max-width: 992px) { .main-header { flex-direction: column; gap: 20px; padding: 15px; } .nav-links { flex-wrap: wrap; justify-content: center; } .auth-section { margin-top: 15px; } } @media (max-width: 768px) { .container { padding: 30px 20px; } .dashboard-header h1 { font-size: 1.8rem; } .dashboard-header p { font-size: 1.2rem; } .stats-grid { grid-template-columns: 1fr; } .stat-card { padding: 2rem; } .stat-value { font-size: 3rem; } .stat-label { font-size: 1.2rem; } .dashboard-section h2 { font-size: 1.5rem; } .poll-card { padding: 2rem; } .poll-title { font-size: 1.5rem; } .poll-meta { gap: 1.5rem; } .poll-meta span { font-size: 1.2rem; } .poll-btn { padding: 0.8rem 1.5rem; font-size: 1.1rem; } .analytics-grid { gap: 3rem; } .analytics-item h3 { font-size: 1.5rem; margin-bottom: 1.5rem; } .chart-container { height: 350px; padding: 1rem; } } /* Адаптивность */ @media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .chart-container { height: 400px; padding: 1.5rem; } } @media (max-width: 480px) { .poll-meta { flex-direction: column; gap: 1rem; } .poll-actions { flex-direction: column; } .poll-btn { width: 100%; justify-content: center; } .chart-container { height: 300px; padding: 0.5rem; } } .btn-icon { color: var(--neon-blue); } .error-message { background: var(--blood-red); color: white; padding: 1rem; border-radius: 5px; font-family: 'VT323', monospace; font-size: 1.3rem; display: flex; align-items: center; gap: 0.5rem; animation: pulse 2s infinite; } .error-icon { color: var(--cyber-yellow); font-weight: bold; } .no-account { font-family: 'VT323', monospace; font-size: 1.3rem; color: var(--toxic-green); } .btn-register { background: transparent; border: 2px solid var(--neon-blue); color: var(--neon-blue); padding: 0.5rem 1rem; font-family: 'VT323', monospace; font-size: 1.3rem; text-decoration: none; transition: all 0.3s; display: flex; align-items: center; gap: 0.5rem; } .btn-register:hover { background: var(--neon-blue); color: var(--terminal-bg); transform: translateY(-3px); box-shadow: 0 0 15px var(--neon-blue); } /* Анимация мигания курсора */ @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* Основные стили для контейнера */ .container { max-width: 1400px; margin: 0 auto; padding: 3rem; color: #333; background: transparent; } /* Стили для заголовка опроса */ .polls-header { text-align: center; margin-bottom: 3rem; position: relative; } .polls-header h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: #ff6b00; font-weight: 800; letter-spacing: -1px; line-height: 1.2; position: relative; display: block; /* Изменено с inline-block на block */ text-align: center; /* Добавлено выравнивание по центру */ width: 100%; /* Занимает всю доступную ширину */ } .polls-header h1::after { content: ''; position: absolute; bottom: -15px; left: 50%; /* Изменено с 25% на 50% */ transform: translateX(-50%); /* Центрируем псевдоэлемент */ width: 50%; height: 5px; background: linear-gradient(90deg, #ff6b00, #4caf50); border-radius: 3px; } /* Контейнер формы опроса */ .poll-form-container { background: white; border-radius: 20px; padding: 3rem; box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15); margin-bottom: 3rem; border: 1px solid #eee; width: 100%; } .poll-form { display: flex; flex-direction: column; gap: 2.5rem; } .poll-question { background: #f9f9f9; border-radius: 15px; padding: 2rem; transition: all 0.3s ease; border-left: 5px solid #ff6b00; } .poll-question:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(255, 107, 0, 0.1); } .poll-question h3 { color: #222; margin-bottom: 1.5rem; font-size: 1.8rem; font-weight: 700; line-height: 1.4; } /* Стили для вариантов ответов */ .poll-options { display: flex; flex-direction: column; gap: 1.2rem; } .poll-option { display: flex; align-items: center; padding: 1.2rem 1.5rem; background: white; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; position: relative; border: 2px solid #eee; font-size: 1.3rem; } .poll-option:hover { border-color: #4caf50; box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1); transform: scale(1.02); } .poll-option input[type="radio"], .poll-option input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border: 3px solid #ddd; border-radius: 50%; margin-right: 1.5rem; position: relative; cursor: pointer; transition: all 0.3s ease; } .poll-option input[type="checkbox"] { border-radius: 6px; } .poll-option input[type="radio"]:checked, .poll-option input[type="checkbox"]:checked { background: white; border-color: #4caf50; } .poll-option input[type="radio"]:checked::after, .poll-option input[type="checkbox"]:checked::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; background: #4caf50; border-radius: 50%; } .poll-option input[type="checkbox"]:checked::after { content: '✓'; background: transparent; color: #4caf50; font-size: 16px; font-weight: bold; line-height: 1; border-radius: 0; width: auto; height: auto; } /* Стили для текстовых полей */ .text-input { width: 100%; padding: 1.2rem 1.5rem; background: white; border: 2px solid #eee; border-radius: 12px; color: #333; font-size: 1.3rem; transition: all 0.3s ease; } .text-input:focus { outline: none; border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2); } .text-input::placeholder { color: #aaa; font-size: 1.2rem; } /* Стили для кнопки отправки */ .btn-submit { padding: 1.5rem 3rem; background: linear-gradient(135deg, #ff6b00, #ff8c00); color: white; border: none; border-radius: 12px; font-size: 1.5rem; cursor: pointer; transition: all 0.3s ease; font-weight: 700; margin-top: 2rem; letter-spacing: 0.5px; text-transform: uppercase; } .btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3); background: linear-gradient(135deg, #ff8c00, #ff6b00); } .btn-submit:active { transform: translateY(1px); } /* Улучшенная сетка для вариантов ответов */ @media (min-width: 768px) { .poll-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } } /* Адаптивность */ @media (max-width: 1200px) { .container { padding: 2rem; } } @media (max-width: 768px) { .polls-header h1 { font-size: 2.8rem; } .poll-description { font-size: 1.5rem; } .poll-question h3 { font-size: 1.6rem; } .poll-option { font-size: 1.2rem; padding: 1rem 1.2rem; } } @media (max-width: 480px) { .container { padding: 1.5rem; } .poll-form-container { padding: 2rem; } .polls-header h1 { font-size: 2.2rem; } .btn-submit { padding: 1.2rem 2rem; font-size: 1.3rem; } } .no-polls { text-align: center; padding: 40px; background: var(--card-bg); border-radius: 8px; margin: 20px 0; } .no-polls i { font-size: 48px; color: var(--text-secondary); margin-bottom: 20px; } .no-polls p { font-size: 18px; color: var(--text-secondary); margin-bottom: 20px; } .poll-card { transition: transform 0.2s, box-shadow 0.2s; } .poll-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); } .poll-actions .btn-action { margin-right: 8px; margin-bottom: 8px; } @media (max-width: 768px) { .polls-controls { flex-direction: column; } .search-box, .filters { width: 100%; margin-bottom: 10px; } } /* Выпадающее меню - увеличенное в 2 раза */ .user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; background: white; min-width: 280px; /* Увеличено в 2 раза */ border-radius: 16px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 94, 0, 0.3); /* Неоновая обводка */ padding: 30px; display: none; animation: fadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); z-index: 1000; border: none; } .user-profile.active .user-dropdown { display: block; } /* Информация о пользователе - увеличенная */ .user-info { padding-bottom: 20px; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; } .user-info p { margin: 15px 0; font-size: 1.4em; /* Увеличенный текст */ font-weight: 600; color: #333; display: flex; align-items: center; gap: 15px; } .user-info i { font-size: 1.6em; width: 30px; text-align: center; color: var(--neon-orange); text-shadow: 0 0 5px rgba(255, 94, 0, 0.3); } /* Кнопки действий - квадратные и большие */ .user-actions { display: flex; flex-direction: column; gap: 15px; } .user-action { display: flex; align-items: center; justify-content: space-between; padding: 18px 25px; border-radius: 8px; /* Более квадратные углы */ font-size: 1.4em; /* Увеличенный текст */ font-weight: 600; transition: all 0.3s ease; text-decoration: none; border: 2px solid transparent; background-color: #f8f8f8; color: #444; } .user-action i { font-size: 1.6em; transition: all 0.3s ease; } /* Специфичные стили для кнопки выхода */ .user-action[href*="logout"] { background-color: rgba(255, 7, 58, 0.05); border: 2px solid rgba(255, 7, 58, 0.2); color: var(--neon-red); } .user-action[href*="logout"] i { color: var(--neon-red); } .user-action[href*="logout"]:hover { background-color: rgba(255, 7, 58, 0.1); transform: translateX(5px); box-shadow: 0 5px 15px rgba(255, 7, 58, 0.2); border-color: var(--neon-red); } .user-action[href*="logout"]:hover i { transform: rotate(15deg) scale(1.1); text-shadow: 0 0 10px rgba(255, 7, 58, 0.5); } /* Анимации */ @keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes neonGlow { 0%, 100% { box-shadow: 0 0 5px rgba(255, 7, 58, 0.3); } 50% { box-shadow: 0 0 20px rgba(255, 7, 58, 0.6); } } .user-action[href*="logout"] { animation: neonGlow 2s infinite alternate; } /* Эффект при нажатии */ .user-action:active { transform: scale(0.98); }