/* Стили для личного кабинета */

.suvvy-user-dashboard {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Формы авторизации и регистрации */
.suvvy-auth-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.suvvy-auth-form h2 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.suvvy-form-group {
  margin-bottom: 20px;
}

.suvvy-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.suvvy-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.suvvy-form-group input:focus {
  outline: none;
  border-color: #10a37f;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.suvvy-form-group input.error {
  border-color: #ef4444;
}

.suvvy-form-group .error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* Маска для телефона */
.suvvy-phone-input {
  position: relative;
}

/* Убираем статичный префикс, так как IMask управляет всем содержимым */
.suvvy-phone-input input {
  padding-left: 16px;
}

/* Индикатор силы пароля */
.suvvy-password-strength {
  margin-top: 8px;
}

.suvvy-password-strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.suvvy-password-strength-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0%;
}

.suvvy-password-strength-fill.weak {
  background: #dc2626; /* Ярко-красный */
  width: 25%;
}

.suvvy-password-strength-fill.fair {
  background: #ea580c; /* Ярко-оранжевый */
  width: 50%;
}

.suvvy-password-strength-fill.good {
  background: #16a34a; /* Ярко-зеленый */
  width: 75%;
}

.suvvy-password-strength-fill.strong {
  background: #15803d; /* Темно-зеленый */
  width: 100%;
}

.suvvy-password-strength-text {
  font-size: 12px;
  color: #6b7280;
}

.suvvy-password-strength-text.weak {
  color: #dc2626; /* Ярко-красный */
  font-weight: 600;
}

.suvvy-password-strength-text.fair {
  color: #ea580c; /* Ярко-оранжевый */
  font-weight: 600;
}

.suvvy-password-strength-text.good {
  color: #16a34a; /* Ярко-зеленый */
  font-weight: 600;
}

.suvvy-password-strength-text.strong {
  color: #15803d; /* Темно-зеленый */
  font-weight: 600;
}

/* Капча */
.suvvy-captcha {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 20px;
}

.suvvy-captcha-question {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.suvvy-captcha input {
  width: 100px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* Кнопки */
.suvvy-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.suvvy-btn-primary {
  background: #10a37f;
  color: white;
}

.suvvy-btn-primary:hover {
  background: #0d8a6b;
  transform: translateY(-1px);
}

.suvvy-btn-secondary {
  background: #6b7280;
  color: white;
}

.suvvy-btn-secondary:hover {
  background: #4b5563;
}

.suvvy-btn-danger {
  background: #ef4444;
  color: white;
}

.suvvy-btn-danger:hover {
  background: #dc2626;
}

.suvvy-btn-secondary {
  background: #6b7280;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.suvvy-btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

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

.suvvy-btn-icon {
  font-size: 16px;
}

.suvvy-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Переключатель форм */
.suvvy-form-switch {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.suvvy-form-switch a {
  color: #10a37f;
  text-decoration: none;
  font-weight: 500;
}

.suvvy-form-switch a:hover {
  text-decoration: underline;
}

/* Личный кабинет */
.suvvy-dashboard {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.suvvy-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.suvvy-dashboard-header-left {
  flex: 1;
}

.suvvy-dashboard-header-right {
  margin-left: 20px;
}

.suvvy-dashboard-title {
  margin: 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 600;
}

.suvvy-user-info {
  color: #6b7280;
  font-size: 14px;
}

.suvvy-dashboard-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.suvvy-dashboard-section {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
}

.suvvy-dashboard-section h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.suvvy-profile-info {
  display: grid;
  gap: 16px;
}

.suvvy-profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.suvvy-profile-item:last-child {
  border-bottom: none;
}

.suvvy-profile-label {
  font-weight: 500;
  color: #374151;
}

.suvvy-profile-value {
  color: #6b7280;
}

.suvvy-profile-edit {
  color: #10a37f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.suvvy-profile-edit:hover {
  text-decoration: underline;
}

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

.suvvy-modal.active {
  display: flex;
}

.suvvy-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.suvvy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.suvvy-modal-title {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

.suvvy-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suvvy-modal-close:hover {
  color: #374151;
}

/* Уведомления */
.suvvy-notification {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.suvvy-notification.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.suvvy-notification.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.suvvy-notification.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Адаптивность */
/* ПРИМЕЧАНИЕ: Все мобильные стили перенесены в mobile-forms.css */
/* Этот блок отключен, чтобы не конфликтовать с мобильными стилями */

/*
@media (max-width: 768px) {
  .suvvy-user-dashboard .suvvy-auth-form,
  .suvvy-user-dashboard .suvvy-login-form,
  .suvvy-user-dashboard .suvvy-register-form {
    padding: 16px !important;
    margin: 8px !important;
    max-width: calc(100vw - 16px) !important;
    width: calc(100vw - 16px) !important;
    box-sizing: border-box !important;
  }
  
  .suvvy-user-dashboard .suvvy-auth-form h2,
  .suvvy-user-dashboard .suvvy-login-form h2,
  .suvvy-user-dashboard .suvvy-register-form h2 {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-group {
    margin-bottom: 12px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-group label {
    margin-bottom: 4px !important;
    font-size: 13px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-group input {
    padding: 10px 12px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .suvvy-user-dashboard .suvvy-btn {
    padding: 12px 16px !important;
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-switch {
    margin-top: 12px !important;
    padding-top: 12px !important;
    font-size: 14px !important;
  }
  .suvvy-user-dashboard {
    padding: 10px;
    max-width: 100vw;
  }
  
  .suvvy-dashboard {
    padding: 20px;
  }
  
  .suvvy-dashboard-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .suvvy-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .suvvy-dashboard-header-right {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .suvvy-modal-content {
    padding: 20px;
    width: 95%;
  }
  
  /* Компактные стили для форм авторизации и регистрации на мобильных */
  .suvvy-auth-form {
    padding: 16px;
    margin: 8px;
    max-width: calc(100vw - 16px);
    border-radius: 8px;
  }
  
  .suvvy-auth-form h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .suvvy-form-group {
    margin-bottom: 12px;
  }
  
  .suvvy-form-group label {
    margin-bottom: 4px;
    font-size: 13px;
  }
  
  .suvvy-form-group input {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
  }
  
  .suvvy-btn {
    padding: 12px 16px;
    font-size: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .suvvy-form-switch {
    margin-top: 12px;
    padding-top: 12px;
    font-size: 14px;
  }
  
  /* Компактная капча на мобильных */
  .suvvy-captcha {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .suvvy-captcha-question {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .suvvy-captcha input {
    width: 80px;
    font-size: 14px;
  }
  
  /* Компактный индикатор силы пароля */
  .suvvy-password-strength {
    margin-top: 4px;
  }
  
  .suvvy-password-strength-bar {
    height: 3px;
    margin-bottom: 3px;
  }
  
  .suvvy-password-strength-text {
    font-size: 11px;
  }
}

/* Дополнительная оптимизация для очень маленьких экранов */
@media (max-width: 480px) {
  /* Еще более агрессивные стили для маленьких экранов */
  .suvvy-user-dashboard .suvvy-auth-form,
  .suvvy-user-dashboard .suvvy-login-form,
  .suvvy-user-dashboard .suvvy-register-form {
    padding: 12px !important;
    margin: 4px !important;
    max-width: calc(100vw - 8px) !important;
    width: calc(100vw - 8px) !important;
  }
  
  .suvvy-user-dashboard .suvvy-auth-form h2,
  .suvvy-user-dashboard .suvvy-login-form h2,
  .suvvy-user-dashboard .suvvy-register-form h2 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-group {
    margin-bottom: 10px !important;
  }
  
  .suvvy-user-dashboard .suvvy-form-group input {
    padding: 8px 10px !important;
    font-size: 15px !important;
  }
  
  .suvvy-user-dashboard .suvvy-btn {
    padding: 10px 14px !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }
  
  .suvvy-user-dashboard .suvvy-captcha {
    padding: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .suvvy-user-dashboard .suvvy-captcha-question {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  
  .suvvy-user-dashboard .suvvy-password-strength {
    margin-top: 4px !important;
  }
  .suvvy-user-dashboard {
    padding: 8px;
  }
  
  .suvvy-auth-form {
    padding: 12px;
    margin: 4px;
    max-width: calc(100vw - 8px);
  }
  
  .suvvy-auth-form h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .suvvy-form-group {
    margin-bottom: 10px;
  }
  
  .suvvy-form-group input {
    padding: 8px 10px;
    font-size: 15px;
  }
  
  .suvvy-btn {
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .suvvy-form-switch {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 13px;
  }
  
  .suvvy-captcha {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .suvvy-captcha-question {
    font-size: 14px;
    margin-bottom: 6px;
  }
}
*/

/* Анимации */
.suvvy-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suvvy-slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

