/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== НАВИГАЦИЯ (общая для всех страниц) ===== */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.nav-list a:hover {
  color: #3498db;
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(5deg);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a, #b91c1c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}

/* Меню пользователя */
.user-menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.login-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  line-height: 1;
}

.login-link:hover {
  background: #f5f5f5;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  z-index: 1000;
  overflow: hidden;
  display: none;
}

.user-info {
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 24px;
}

.user-details {
  flex: 1;
}

.user-details strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.user-details small {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.2;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
  font-size: 14px;
}

.user-dropdown a:hover {
  background: #f9f9f9;
  color: #667eea;
}

.user-dropdown a i {
  width: 20px;
  text-align: center;
}

#logout-btn {
  color: #e74c3c;
}

#logout-btn:hover {
  background: #ffeaea;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f8c8d;
}

.language {
  cursor: pointer;
  user-select: none;
}

/* ===== ПОДВАЛ (общий для всех страниц) ===== */
.footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 30px 0;
}

.footer p {
  margin-bottom: 10px;
}

/* ===== КНОПКИ (общие) ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary {
  background-color: #e74c3c;
  color: white;
}

.btn-primary:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ТОСТОВ ===== */
.toast-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  padding: 20px 35px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: bold;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.4s ease;
  text-align: center;
  min-width: 350px;
  justify-content: center;
  letter-spacing: 0.5px;
}

.toast-notification i {
  font-size: 24px;
  color: white;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast-notification.fade-out {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
}

@media (max-width: 768px) {
  .toast-notification {
    padding: 14px 20px;
    font-size: 14px;
    min-width: 260px;
    top: 80px;
  }

  .toast-notification i {
    font-size: 18px;
  }
}

/* ===== ТИПЫ ТОСТОВ ===== */
.error-toast {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border-left: 5px solid #731d00;
}

.success-toast {
  background: linear-gradient(135deg, #28d544, #13d389);
  border-left: 5px solid #036d1e;
}

.loading-toast {
  background: linear-gradient(135deg, #e95092, #de2a6c);
  border-left: 5px solid #7e0546;
}

/* ===== АДАПТИВНОСТЬ (общая) ===== */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 15px;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .nav-list a {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .nav-list a {
    font-size: 11px;
  }
}

/* Galaxy Z Fold */
@media (max-width: 344px) {
  .nav-list a {
    font-size: 10px;
  }
}
