/* Стили для компонентов навигации */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-large);
  font-weight: 600;
  color: white;
}

.header-logo-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  backdrop-filter: blur(10px);
}

.header-logo img {
  width: 40px;
  height: 40px;
}

.header-search {
  flex: 1;
  max-width: 500px;
  margin: 0 var(--spacing-lg);
}

.header-search input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: var(--font-size-base);
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-search input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 20px;
  backdrop-filter: blur(10px);
}

.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.header-icon .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background-color: #FF5252;
  border-radius: 50%;
  border: 2px solid #4CAF50;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  z-index: 900;
  transition: transform var(--transition-normal);
}

.sidebar-nav {
  padding: var(--spacing-lg) 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  margin: 0 var(--spacing-sm);
  border-radius: 8px;
}

.sidebar-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateX(4px);
}

.sidebar-item.active {
  background-color: rgba(255, 255, 255, 0.25);
  color: white;
  border-left-color: white;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-item-icon {
  font-size: 22px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.sidebar-item.active .sidebar-item-icon {
  background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: var(--spacing-md) var(--spacing-lg);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.bottom-nav-items {
  display: flex;
  height: 100%;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: white;
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: white;
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item-icon {
  font-size: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.bottom-nav-item.active .bottom-nav-item-icon {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: var(--spacing-sm);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
.main-content {
  margin-top: var(--header-height);
  margin-left: var(--sidebar-width);
  padding: var(--spacing-lg);
  min-height: calc(100vh - var(--header-height));
}

/* Адаптивность */
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header {
    padding: 0 var(--spacing-md);
  }

  .header-search {
    display: none;
  }

  .bottom-nav {
    display: block;
  }

  .main-content {
    padding: var(--spacing-md);
    margin-bottom: var(--bottom-nav-height);
  }

  .sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }
}
