/* Основные стили - Glassmorphism 2026 */

:root {
  --neon-blue: #00e5ff;
  --neon-pink: #ff00aa;
  --neon-purple: #7000ff;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Фон с градиентами */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 229, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 0, 170, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(112, 0, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-pink), var(--neon-blue));
}

/* Стеклянная карточка */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: white;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-blue);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #ffaa00, #ff8800);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Формы и инпуты */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Стили для option внутри select */
.form-select option {
  background: #1a1f3a;
  color: var(--text-primary);
  padding: 8px 12px;
}

/* Стили для select с вопросами */
.question-type {
  background: rgba(26, 31, 58, 0.8) !important;
  color: var(--text-primary) !important;
  border-color: rgba(0, 229, 255, 0.3) !important;
}

.question-type option {
  background: #1a1f3a !important;
  color: var(--text-primary) !important;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.input-wrapper .form-input {
  padding-left: 44px;
}

/* Чекбоксы и радио */
.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.checkbox-label input,
.radio-label input {
  display: none;
}

.checkbox-custom,
.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
}

.radio-custom {
  border-radius: 50%;
}

.checkbox-label input:checked + .checkbox-custom,
.radio-label input:checked + .radio-custom {
  border-color: var(--neon-blue);
  background: var(--neon-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* Страница входа */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  padding: 40px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-text {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

.logo-accent {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.forgot-link {
  color: var(--neon-blue);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.5);
}

/* Сообщения об ошибках и успехе */
.error-message,
.success-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.success-message {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Админ-панель */
.admin-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.notification-wrapper {
  position: relative;
}

.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 170, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(255, 0, 170, 0);
  }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 200;
}

.notification-dropdown.active {
  display: block;
}

.notification-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.notification-item {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.notification-item:hover {
  background: var(--bg-card-hover);
}

.notification-item.unread {
  background: rgba(0, 229, 255, 0.05);
  border-left: 3px solid var(--neon-blue);
}

.notification-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.notification-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.logout-btn:hover {
  background: rgba(255, 68, 68, 0.2);
  border-color: #ff4444;
  color: #ff4444;
}

/* Боковое меню */
.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 240px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  z-index: 90;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(112, 0, 255, 0.2));
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--text-primary);
}

.sidebar-link svg {
  flex-shrink: 0;
}

/* Основной контент */
.main-content {
  margin-left: 240px;
  margin-top: 64px;
  padding: 32px;
  min-height: calc(100vh - 64px);
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 8px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* Статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
}

.stat-card-blue .stat-icon {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(0, 229, 255, 0.1));
  color: var(--neon-blue);
}

.stat-card-pink .stat-icon {
  background: linear-gradient(135deg, rgba(255, 0, 170, 0.2), rgba(255, 0, 170, 0.1));
  color: var(--neon-pink);
}

.stat-card-purple .stat-icon {
  background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(112, 0, 255, 0.1));
  color: var(--neon-purple);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.stat-value.pulsing {
  animation: pulse 2s infinite;
  color: var(--neon-pink);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Сетка форм */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.form-card {
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.form-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 229, 255, 0.2);
  border-color: var(--neon-blue);
}

.form-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.form-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.form-status.open {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.form-status.closed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.form-card-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.form-card-creator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.form-card-creator svg {
  color: var(--neon-blue);
}

.form-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.form-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-card-actions form {
  display: inline;
}

.toggle-form,
.delete-form {
  display: inline;
}

/* Фильтры */
.filters-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border-color: transparent;
  color: white;
}

/* Таблицы */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table thead {
  background: var(--bg-card);
}

.table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

.answer-row {
  cursor: pointer;
  transition: var(--transition);
}

.answer-row:hover {
  background: rgba(0, 229, 255, 0.1) !important;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.pagination-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-blue);
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Конструктор форм */
.form-card {
  margin-bottom: 24px;
}

.form-card-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.form-card-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.questions-section {
  margin-top: 32px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.question-card {
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
}

.question-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.question-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--neon-blue);
}

.options-container {
  margin-top: 16px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.option-item {
  display: flex;
  gap: 12px;
}

.option-item .form-input {
  flex-grow: 1;
}

/* FAB кнопка */
.fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.4);
  z-index: 50;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.6);
}

/* Пустое состояние */
.empty-state {
  text-align: center;
  padding: 64px;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* Модальные окна */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-large {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.modal-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 0;
}

/* Тост уведомления */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 20px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlideIn 0.3s ease, toastFadeOut 0.3s ease 2.7s;
}

.toast.success {
  border-color: #00ff88;
  box-shadow: 0 8px 32px rgba(0, 255, 136, 0.3);
}

.toast.error {
  border-color: #ff4444;
  box-shadow: 0 8px 32px rgba(255, 68, 68, 0.3);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Публичная форма */
.public-form-body {
  min-height: 100vh;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s;
}

.public-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}

.public-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.public-form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.public-form-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.public-form {
  padding: 32px;
}

.public-form-question {
  margin-bottom: 32px;
}

.public-form-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.question-number {
  color: var(--neon-blue);
  margin-right: 8px;
}

.public-form-input {
  width: 100%;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  transition: var(--transition);
}

.public-form-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.3);
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label,
.checkbox-label {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.radio-label:hover,
.checkbox-label:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-blue);
}

.radio-label input:checked + .radio-custom + span,
.checkbox-label input:checked + .checkbox-custom + span {
  color: var(--neon-blue);
}

/* Модальное окно успеха */
.success-modal {
  align-items: center;
  justify-content: center;
}

.success-modal-content {
  text-align: center;
  padding: 48px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #00ff88;
}

.success-message {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Детали ответа */
.answer-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 8px;
}

.detail-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.detail-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

/* Скелетон лоадер */
.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-text {
  height: 20px;
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeletonShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Подвал */
.footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
}

/* Inline формы */
.inline-form {
  display: inline;
}

/* Фильтры ответов */
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.filter-group .form-input {
  padding: 8px 12px;
  font-size: 14px;
  min-width: 150px;
}

/* Спиннер кнопки */
.btn-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .forms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .sidebar {
    width: 80px;
    padding: 24px 12px;
  }
  
  .sidebar-link span {
    display: none;
  }
  
  .sidebar-link {
    justify-content: center;
    padding: 12px;
  }
  
  .main-content {
    margin-left: 80px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
  }
  
  .header-right {
    gap: 16px;
  }
  
  .user-name {
    display: none;
  }
  
  .sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    flex-direction: row;
    padding: 8px;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  
  .sidebar-nav {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .sidebar-link span {
    display: none;
  }
  
  .sidebar-link {
    padding: 8px;
  }
  
  .main-content {
    margin-left: 0;
    margin-bottom: 60px;
    padding: 20px 16px;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .forms-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .notification-dropdown {
    width: 280px;
    right: -100px;
  }
  
  .fab {
    bottom: 80px;
    right: 16px;
  }
  
  .public-form-title {
    font-size: 28px;
  }
  
  .public-form {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px;
  }
  
  .logo-text {
    font-size: 24px;
  }
  
  .page-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .page-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-card-actions {
    flex-direction: column;
  }
  
  .form-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Настройки */
.settings-container {
  display: grid;
  gap: 24px;
}

.settings-card {
  padding: 24px;
  transition: var(--transition);
}

.settings-card:hover {
  border-color: var(--neon-blue);
}

.settings-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.settings-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-blue);
}

.settings-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 8px;
}

.settings-info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-info-value {
  color: var(--text-primary);
  font-weight: 600;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Все ответы */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}

.empty-state svg {
  margin-bottom: 24px;
  color: var(--neon-blue);
  opacity: 0.5;
}

.empty-state h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-link {
  color: var(--neon-blue);
  text-decoration: none;
  transition: var(--transition);
}

.form-link:hover {
  color: var(--neon-pink);
  text-decoration: underline;
}

/* Пользователи */
.users-container {
  display: grid;
  gap: 24px;
}

.users-card {
  padding: 24px;
  transition: var(--transition);
}

.users-card:hover {
  border-color: var(--neon-blue);
}

.users-card-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.users-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-blue);
}

.users-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.users-table-container {
  padding: 24px;
  transition: var(--transition);
}

.users-table-container:hover {
  border-color: var(--neon-blue);
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.role-admin {
  background: rgba(255, 0, 170, 0.2);
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
}

.role-user {
  background: rgba(0, 229, 255, 0.2);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
}

.text-muted {
  color: var(--text-secondary);
  font-size: 12px;
}

.btn-danger {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 8px 24px rgba(255, 68, 68, 0.4);
  transform: translateY(-2px);
}
