/* Стилі для навігаційних вкладок у стилі BookStack */
.nav-tabs-container {
  width: 100%;
  max-width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #2d3748;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0;
  border-bottom: 1px solid #4a5568;
}

.nav-tabs {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  max-width: 1400px;
  width: 100%;
}

.nav-tab {
  padding: 0;
  margin: 0;
  position: relative;
}

.nav-tab-link {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: #cbd5e0;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  border: none;
  background-color: transparent;
  position: relative;
  box-shadow: none;
  min-width: auto;
  border-radius: 0;
}

.nav-tab-link:hover {
  background-color: #4a5568;
  color: #ffffff;
  box-shadow: none;
}

.nav-tab-link.active {
  color: #ffffff;
  background-color: transparent;
  font-weight: 600;
  border: none;
  text-shadow: none;
  box-shadow: none;
}

/* Підкреслення активного вкладки */
.nav-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #38b2ac;
  display: block;
}

/* Стилі для іконок у вкладках (якщо потрібно) */
.nav-tab-link .icon {
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}

/* Додатковий відступ для контенту під фіксованою навігацією */
/* Стиль для main тепер керується в base_layout.css */

/* Адаптивна верстка */
@media (max-width: 768px) {
  .nav-tabs-container {
    position: sticky;
    top: 0;
  }
  
  .nav-tabs {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .nav-tab-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* Зменшуємо висоту підкреслення для мобільних пристроїв */
  .nav-tab-link.active::after {
    height: 2px;
  }
}

/* Стилі для бокової панелі навігації */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #1a202c;
  color: #cbd5e0;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.sidebar.collapsed {
  width: 70px;
}

.sidebar.collapsed .sidebar-main-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #2d3748;
  overflow: visible;
  min-height: 66px;
  box-sizing: border-box;
}

.sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  font-weight: bold !important;
  font-size: 1.1rem !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 1;
}

.sidebar-logo {
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  padding: 8px;
  margin: -4px;
}

.sidebar-logo a {
  display: block;
  position: relative;
  overflow: visible;
}

.sidebar-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.5s ease-in-out;
  position: relative;
  z-index: 2;
}

/* Hover ефекти для sidebar логотипа */
.sidebar-logo a:hover img {
  transform: rotate(120deg) scale(1.05);
}

.sidebar-logo img.pulse-animation {
  animation: sidebar-logo-pulse 1.5s infinite;
}

/* Світіння для логотипа в sidebar */
.sidebar-logo::before {
  content: '';
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(156, 39, 176, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(10px);
  animation: sidebar-logo-glow 4s infinite;
  mask: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 70%);
  -webkit-mask: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.6) 40%, rgba(255,255,255,0) 70%);
}

@keyframes sidebar-logo-glow {
  0% {
    box-shadow: 0 0 10px 5px rgba(156, 39, 176, 0.7);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 20px 10px rgba(156, 39, 176, 0.5);
    opacity: 0.6;
  }
  100% {
    box-shadow: 0 0 10px 5px rgba(156, 39, 176, 0.7);
    opacity: 0.8;
  }
}

@keyframes sidebar-logo-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(156, 39, 176, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(156, 39, 176, 0);
  }
}

/* Ефект блиску для sidebar логотипа */
.sidebar-logo .shine-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
  transform-origin: center center;
}

.sidebar-logo .shine-effect::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -150%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.02) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: sidebar-shine 8s linear infinite;
}

@keyframes sidebar-shine {
  0%, 85% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.sidebar-title-version {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.sidebar-title {
  font-family: 'Ruberoid', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  background: linear-gradient(to right, #673AB7, #9C27B0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.sidebar-version {
  font-family: 'Ruberoid', Arial, sans-serif;
  font-size: 0.65rem;
  color: #cbd5e0;
  opacity: 0.9;
  font-weight: 700;
  margin-top: -2px;
  line-height: 1;
}

/* Стилі для згорнутої панелі */
.sidebar.collapsed .sidebar-header {
  padding: 11px 15px;
  min-height: 64px;
  box-sizing: border-box;
  justify-content: center;
}

.sidebar.collapsed .sidebar-brand {
  display: none !important;
}

.sidebar.collapsed .sidebar-controls {
  margin: 0;
}

/* Адаптивні стилі для мобільних пристроїв */
@media (max-width: 768px) {
  .sidebar-logo {
    padding: 6px;
    margin: -3px;
  }
  
  .sidebar-logo img {
    width: 30px;
    height: 30px;
  }
  
  .sidebar-logo::before {
    width: 42px;
    height: 42px;
    filter: blur(8px);
  }
  
  .sidebar-title {
    font-family: 'Ruberoid', Arial, sans-serif;
    font-size: 1rem;
  }
  
  .sidebar-version {
    font-family: 'Ruberoid', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
  }
}

@media (max-width: 576px) {
  .sidebar-logo {
    padding: 5px;
    margin: -2px;
  }
  
  .sidebar-logo img {
    width: 28px;
    height: 28px;
  }
  
  .sidebar-logo::before {
    width: 40px;
    height: 40px;
    filter: blur(7px);
  }
  
  .sidebar-title {
    font-family: 'Ruberoid', Arial, sans-serif;
    font-size: 0.95rem;
  }
  
  .sidebar-version {
    font-family: 'Ruberoid', Arial, sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
  }
  
  .sidebar-header {
    min-height: 56px;
    padding: 8px 12px;
  }
  
  .sidebar.collapsed .sidebar-header {
    min-height: 54px;
    padding: 7px 12px;
  }
}

/* Контейнер для основного меню зі скролом */
.sidebar-main-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 10px;
}

/* Стилі для скролбару */
.sidebar-main-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-main-menu::-webkit-scrollbar-track {
  background: #1a202c;
}

.sidebar-main-menu::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 3px;
}

.sidebar-main-menu::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Нижнє меню (Акаунт, Вийти) */
.sidebar-menu.mt-auto {
  flex-shrink: 0;
  margin-top: 0 !important;
  border-top: 1px solid #2d3748;
  padding-top: 10px;
}

.sidebar-item {
  padding: 0;
  margin: 0;
  position: relative;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  text-decoration: none;
  color: #cbd5e0;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-link:hover {
  background-color: #2d3748;
  color: #ffffff;
}

.sidebar-item.active .sidebar-link {
  color: #ffffff;
  background-color: #2c4f7c;
  border-right: 3px solid #38b2ac;
}

.sidebar-link i {
  font-size: 1.2rem;
  min-width: 30px;
  text-align: center;
  margin-right: 10px;
}

.sidebar.collapsed .sidebar-text {
  display: none;
}

.sidebar.collapsed .sidebar-link {
  padding: 15px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-link i {
  margin-right: 0;
  font-size: 1.4rem;
}

/* Контейнер для кнопок управління */
.sidebar-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Кнопки сворачивания/разворачивания */
#collapse-sidebar,
#toggle-all-submenus {
  background: transparent;
  border: none;
  color: #cbd5e0;
  transition: all 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
  padding: 8px;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#collapse-sidebar:hover,
#toggle-all-submenus:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Специфічні стилі для кнопки підменю */
#toggle-all-submenus {
  position: relative;
}

#toggle-all-submenus.all-collapsed i {
  color: #cbd5e0;
}

#toggle-all-submenus.all-collapsed i::before {
  content: "\f0c9"; /* fa-bars - показуємо для розгортання */
}

#toggle-all-submenus.all-expanded i {
  color: #10b981; /* зелений колір для активного стану */
}

#toggle-all-submenus.all-expanded i::before {
  content: "\f068"; /* fa-minus - показуємо для згортання */
}

/* Стилі для згорнутого sidebar */
.sidebar.collapsed .sidebar-controls {
  flex-direction: column;
  gap: 2px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* Приховуємо кнопку керування підменю в згорнутому стані */
.sidebar.collapsed #toggle-all-submenus {
  display: none;
}

.sidebar.collapsed #collapse-sidebar {
  width: 35px;
  height: 35px;
  padding: 7px;
  font-size: 0.9rem;
  margin: 3px 0;
}

/* Стилі для ієрархічного меню */
.sidebar-group {
  position: relative;
}

.sidebar-group-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #cbd5e0;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.sidebar-group-header:hover {
  background-color: #2d3748;
  color: #ffffff;
}

.sidebar-group-header i:first-child {
  font-size: 1.2rem;
  min-width: 30px;
  text-align: center;
  margin-right: 10px;
}

.sidebar-group-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.sidebar-group.open .sidebar-group-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #15171c;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.sidebar-group.open .sidebar-submenu {
  max-height: 500px;
}

.sidebar-subitem {
  padding: 0;
  margin: 0;
  position: relative;
}

.sidebar-subitem .sidebar-link {
  padding: 12px 20px 12px 50px;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
}

.sidebar-subitem .sidebar-link:hover {
  background-color: #1e2328;
  color: #ffffff;
  border-left-color: #4a5568;
}

.sidebar-subitem.active .sidebar-link {
  color: #ffffff;
  background-color: #2c4f7c;
  border-left-color: #38b2ac;
}

.sidebar-subitem .sidebar-link i {
  font-size: 1rem;
  min-width: 25px;
  margin-right: 8px;
}

/* Стилі для згорнутого стану */
.sidebar.collapsed .sidebar-group-header {
  padding: 15px;
  justify-content: center;
}

.sidebar.collapsed .sidebar-text {
  display: none;
}

.sidebar.collapsed .sidebar-group-arrow {
  display: none;
}

.sidebar.collapsed .sidebar-submenu {
  display: none;
}

/* Стилі для адміністраторських блоків */
.admin-only {
  position: relative;
}

.admin-only::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #ffd700 0%, #ffb347 100%);
  border-radius: 0 2px 2px 0;
}

.admin-only .sidebar-link,
.admin-only .sidebar-group-header {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
  border-left: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-only .sidebar-link:hover,
.admin-only .sidebar-group-header:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(45, 55, 72, 1) 50%);
  border-left-color: rgba(255, 215, 0, 0.4);
}

.admin-only.active .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, rgba(44, 79, 124, 1) 50%);
  border-left-color: #ffd700;
}

.admin-indicator {
  color: #ffd700;
  font-size: 0.8rem;
  margin-left: auto;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
  animation: adminGlow 2s ease-in-out infinite alternate;
}

@keyframes adminGlow {
  from {
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 12px rgba(255, 215, 0, 0.3);
  }
}

/* Для згорнутого sidebar - показуємо тільки корону */
.sidebar.collapsed .admin-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.7rem;
}

.sidebar.collapsed .admin-only .sidebar-link .sidebar-text {
  display: none;
}

/* Стилі для дочірніх адміністраторських елементів */
.sidebar-subitem.admin-only .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
  border-left: 2px solid rgba(255, 215, 0, 0.3);
  padding-left: 48px;
}

.sidebar-subitem.admin-only .sidebar-link:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(30, 35, 40, 1) 70%);
  border-left-color: rgba(255, 215, 0, 0.5);
}

.sidebar-subitem.admin-only.active .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.18) 0%, rgba(44, 79, 124, 1) 70%);
  border-left-color: #ffd700;
}

/* Захист стилів sidebar від перекриття іншими CSS модулями */
.sidebar .sidebar-text,
.sidebar .sidebar-brand {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Забезпечуємо правильні шрифти для іконок Font Awesome */
.sidebar i,
.sidebar .fas,
.sidebar .far,
.sidebar .fab,
.sidebar .admin-indicator {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
  font-weight: 900 !important;
}

/* Забезпечуємо правильні кольори sidebar з найвищим пріоритетом */
.sidebar {
  background-color: #1a202c !important;
  color: #cbd5e0 !important;
  z-index: 10000 !important;
}

.sidebar .sidebar-brand {
  color: #ffffff !important;
}

.sidebar .sidebar-link {
  color: #cbd5e0 !important;
}

.sidebar .sidebar-link:hover {
  color: #ffffff !important;
}

.sidebar .sidebar-item.active .sidebar-link {
  color: #ffffff !important;
}

.sidebar .sidebar-group-header {
  color: #cbd5e0 !important;
}

.sidebar .sidebar-group-header:hover {
  color: #ffffff !important;
}

.sidebar .sidebar-text {
  color: inherit !important;
}

.sidebar .admin-indicator {
  color: #ffd700 !important;
}

/* Захист фону і кольорів підменю */
.sidebar .sidebar-submenu {
  background-color: #15171c !important;
}

.sidebar .sidebar-subitem .sidebar-link {
  color: #cbd5e0 !important;
}

.sidebar .sidebar-subitem .sidebar-link:hover {
  color: #ffffff !important;
}

.sidebar .sidebar-subitem.active .sidebar-link {
  color: #ffffff !important;
}

/* Захист стилів адміністраторських блоків */
.sidebar .admin-only .sidebar-link,
.sidebar .admin-only .sidebar-group-header {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, transparent 50%) !important;
  border-left: 1px solid rgba(255, 215, 0, 0.2) !important;
}

.sidebar .admin-only .sidebar-link:hover,
.sidebar .admin-only .sidebar-group-header:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.15) 0%, rgba(45, 55, 72, 1) 50%) !important;
  border-left-color: rgba(255, 215, 0, 0.4) !important;
}

.sidebar .admin-only.active .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.2) 0%, rgba(44, 79, 124, 1) 50%) !important;
  border-left-color: #ffd700 !important;
}

.sidebar .sidebar-subitem.admin-only .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, transparent 70%) !important;
  border-left: 2px solid rgba(255, 215, 0, 0.3) !important;
}

.sidebar .sidebar-subitem.admin-only .sidebar-link:hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(30, 35, 40, 1) 70%) !important;
  border-left-color: rgba(255, 215, 0, 0.5) !important;
}

  .sidebar .sidebar-subitem.admin-only.active .sidebar-link {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.18) 0%, rgba(44, 79, 124, 1) 70%) !important;
    border-left-color: #ffd700 !important;
  }

/* Унікальні стилі для групи "Розробка" */
.development-group {
  margin-bottom: 10px !important;
  position: relative;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
  border: 1px solid rgba(156, 39, 176, 0.3);
  overflow: hidden;
}

.development-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #9c27b0, #673ab7);
  animation: developmentPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes developmentPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.development-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(103, 58, 183, 0.1)) !important;
  border-left: 3px solid #9c27b0 !important;
}

.development-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(103, 58, 183, 0.2)) !important;
}

.development-group .sidebar-group-header i:first-child {
  color: #9c27b0 !important;
  text-shadow: 0 0 8px rgba(156, 39, 176, 0.7);
}

.development-indicator {
  color: #9c27b0 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: developmentIndicator 2.5s ease-in-out infinite;
}

@keyframes developmentIndicator {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Унікальні стилі для групи "Ревізії" */
.revision-group {
  margin-bottom: 10px !important;
  position: relative;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
  border: 1px solid rgba(255, 87, 34, 0.3);
  overflow: hidden;
}

.revision-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #ff5722, #ff9800);
  animation: revisionPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes revisionPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.revision-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15), rgba(255, 152, 0, 0.1)) !important;
  border-left: 3px solid #ff5722 !important;
}

.revision-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25), rgba(255, 152, 0, 0.2)) !important;
}

.revision-group .sidebar-group-header i:first-child {
  color: #ff5722 !important;
  text-shadow: 0 0 8px rgba(255, 87, 34, 0.7);
}

.revision-indicator {
  color: #ff5722 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: revisionIndicator 2.5s ease-in-out infinite;
}

@keyframes revisionIndicator {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Унікальні стилі для групи "Бронювання" */
.booking-group {
  margin-bottom: 10px !important;
  position: relative;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(63, 81, 181, 0.1) 100%);
  border: 1px solid rgba(33, 150, 243, 0.3);
  overflow: hidden;
}

.booking-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #2196f3, #3f51b5);
  animation: bookingPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes bookingPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.booking-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.15), rgba(63, 81, 181, 0.1)) !important;
  border-left: 3px solid #2196f3 !important;
}

.booking-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(63, 81, 181, 0.2)) !important;
}

.booking-group .sidebar-group-header i:first-child {
  color: #2196f3 !important;
  text-shadow: 0 0 8px rgba(33, 150, 243, 0.7);
}

.booking-indicator {
  color: #2196f3 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: bookingIndicator 2.5s ease-in-out infinite;
}

@keyframes bookingIndicator {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Стилі для груп з особливими індикаторами */

/* Група "Проекти" */
.projects-group {
  position: relative;
  margin-bottom: 10px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
  border: 1px solid rgba(40, 167, 69, 0.3);
  overflow: hidden;
}

.projects-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #1e7e34, #28a745);
  animation: projectsPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes projectsPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.projects-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.15), rgba(40, 167, 69, 0.1)) !important;
  border-left: 3px solid #28a745 !important;
}

.projects-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(30, 126, 52, 0.25), rgba(40, 167, 69, 0.2)) !important;
}

.projects-group .sidebar-group-header i:first-child {
  color: #28a745 !important;
  text-shadow: 0 0 8px rgba(40, 167, 69, 0.7);
}

.projects-indicator {
  color: #28a745 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: projectsIndicator 2.5s ease-in-out infinite;
}

@keyframes projectsIndicator {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Група "Telegram" */
.telegram-group {
  position: relative;
  margin-bottom: 10px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.1) 0%, rgba(0, 172, 237, 0.1) 100%);
  border: 1px solid rgba(0, 136, 204, 0.3);
  overflow: hidden;
}

.telegram-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #0088cc, #00aced);
  animation: telegramPulse 2.8s ease-in-out infinite;
  z-index: 1;
}

@keyframes telegramPulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.03); }
}

.telegram-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.15), rgba(0, 172, 237, 0.1)) !important;
  border-left: 3px solid #0088cc !important;
}

.telegram-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.25), rgba(0, 172, 237, 0.2)) !important;
}

.telegram-group .sidebar-group-header i:first-child {
  color: #0088cc !important;
  text-shadow: 0 0 8px rgba(0, 136, 204, 0.7);
}

.telegram-indicator {
  color: #0088cc !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: telegramIndicator 2.2s ease-in-out infinite;
}

@keyframes telegramIndicator {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(5deg) scale(1.1); opacity: 1; }
}

/* Група "Todoist" */
.todoist-group {
  position: relative;
  margin-bottom: 10px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(228, 67, 50, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  border: 1px solid rgba(228, 67, 50, 0.3);
  overflow: hidden;
}

.todoist-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #e44332, #ff6b6b);
  animation: todoistPulse 3.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes todoistPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.04); }
}

.todoist-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(228, 67, 50, 0.15), rgba(255, 107, 107, 0.1)) !important;
  border-left: 3px solid #e44332 !important;
}

.todoist-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(228, 67, 50, 0.25), rgba(255, 107, 107, 0.2)) !important;
}

.todoist-group .sidebar-group-header i:first-child {
  color: #e44332 !important;
  text-shadow: 0 0 8px rgba(228, 67, 50, 0.7);
}

.todoist-indicator {
  color: #e44332 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: todoistIndicator 2.0s ease-in-out infinite;
}

@keyframes todoistIndicator {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  25% { transform: scale(1.2); opacity: 1; }
  75% { transform: scale(0.9); opacity: 0.9; }
}

/* Унікальні стилі для групи "Публічні дешборди" */
.public-dashboards-group {
  position: relative;
  margin-bottom: 10px !important;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  border: 1px solid rgba(40, 167, 69, 0.3);
  overflow: hidden;
}

.public-dashboards-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #28a745, #34d399);
  animation: publicDashboardsPulse 3.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes publicDashboardsPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.02); }
}

.public-dashboards-group .sidebar-group-header {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(52, 211, 153, 0.1)) !important;
  border-left: 3px solid #28a745 !important;
}

.public-dashboards-group .sidebar-group-header:hover {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.25), rgba(52, 211, 153, 0.2)) !important;
}

.public-dashboards-group .sidebar-group-header i:first-child {
  color: #28a745 !important;
  text-shadow: 0 0 8px rgba(40, 167, 69, 0.7);
}

.public-dashboards-indicator {
  color: #28a745 !important;
  margin-left: 8px !important;
  margin-right: 8px !important;
  font-size: 0.9rem !important;
  animation: publicDashboardsIndicator 2.8s ease-in-out infinite;
}

@keyframes publicDashboardsIndicator {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(360deg) scale(1.1); opacity: 1; }
}

/* Унікальні стилі для пункту "Домашна" */
.home-item {
  position: relative;
  margin: 8px 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 235, 59, 0.1) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  overflow: hidden;
}

.home-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(45deg, #ffc107, #ffeb3b);
  animation: homePulse 2.5s ease-in-out infinite;
  z-index: 1;
}

@keyframes homePulse {
  0%, 100% { opacity: 0.7; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.05); }
}

.home-item .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.08) 0%, transparent 60%) !important;
  border-left: 1px solid rgba(255, 193, 7, 0.2) !important;
}

.home-item .sidebar-link:hover {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.15) 0%, rgba(45, 55, 72, 1) 60%) !important;
  border-left-color: rgba(255, 193, 7, 0.4) !important;
}

.home-item.active .sidebar-link {
  background: linear-gradient(90deg, rgba(255, 193, 7, 0.2) 0%, rgba(44, 79, 124, 1) 60%) !important;
  border-left-color: #ffc107 !important;
}

.home-item .sidebar-link i {
  color: #ffc107 !important;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
  animation: homeIconGlow 2s ease-in-out infinite alternate;
}

@keyframes homeIconGlow {
  from {
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
    transform: scale(1);
  }
  to {
    text-shadow: 0 0 12px rgba(255, 193, 7, 0.8), 0 0 16px rgba(255, 193, 7, 0.4);
    transform: scale(1.05);
  }
}

/* Стилі для публічних індикаторів */

.public-indicator {
  color: #28a745 !important;
  font-size: 0.75rem;
  margin-left: auto;
  text-shadow: 0 0 4px rgba(40, 167, 69, 0.6);
  animation: publicGlow 2.2s ease-in-out infinite alternate;
}

@keyframes publicGlow {
  from {
    text-shadow: 0 0 4px rgba(40, 167, 69, 0.6);
    opacity: 0.8;
  }
  to {
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.9), 0 0 12px rgba(40, 167, 69, 0.4);
    opacity: 1;
  }
}

/* Для згорнутого sidebar - показуємо тільки глобус */
.sidebar.collapsed .public-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.65rem;
}

/* Стилі для дочірніх публічних елементів */
.sidebar-subitem .public-indicator {
  font-size: 0.65rem;
  margin-left: 6px;
  margin-right: 0;
}

/* Стилі для окремих публічних пунктів (не в групах) */
.sidebar-item .sidebar-link .public-indicator {
  font-size: 0.7rem;
  margin-left: auto;
  margin-right: 0;
}

/* Захист стилів для публічних індикаторів */
.sidebar .public-indicator {
  color: #28a745 !important;
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
  font-weight: 900 !important;
}

/* Стилі для full-width контенту */
.main-content.full-width {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Адаптивність */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    box-shadow: none;
  }
  
  .sidebar.open {
    width: 250px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .sidebar.open .sidebar-main-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .sidebar-header {
    min-height: 60px;
    padding: 10px 15px;
  }
  
  .sidebar.collapsed .sidebar-header {
    min-height: 58px;
    padding: 9px 15px;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
} 