* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  margin-bottom: 20px;
}

.header {
  background: linear-gradient(135deg, #02979a 0%, #027679 100%);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.back-link {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
}

.section {
  padding: 30px;
}

/* Формы */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.required {
  color: #e74c3c;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: #02979a;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #999;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: #02979a;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #027679;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 151, 154, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* Статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.9;
}

/* Действия */
.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Превью уведомления */
.preview {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 12px;
}

.notification-preview {
  display: flex;
  gap: 12px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  word-wrap: break-word;
}

.notification-site {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.notification-body {
  font-size: 14px;
  color: #666;
  word-wrap: break-word;
}

/* Действия формы */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Результат */
.result-box {
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

.result-box.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.result-box.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.result-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.result-box p {
  font-size: 16px;
}

/* Сообщения об ошибках */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14px;
  border: 1px solid #f5c6cb;
}

/* Футер */
.footer {
  text-align: center;
  color: white;
  font-size: 14px;
  opacity: 0.8;
  padding: 20px;
}

/* Адаптив */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 24px;
  }

  .section {
    padding: 20px;
  }

  .notification-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}