/* ============================================
   НАВБАР — PULKOVO AIR
   Боковое меню (offcanvas) + Sticky
   ============================================ */

/* ----- НАВБАР ----- */
.plk-navbar {
  background-color: #1E3A8A !important;
  padding: 0 !important;
  min-height: 56px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1030;
}

.plk-nav-container {
  padding: 8px 15px !important;
  max-width: 1200px !important;
}

/* ----- БУРГЕР ----- */
.plk-burger {
  padding: 6px 10px !important;
  border: none !important;
  transition: all 0.2s;
}

.plk-burger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.plk-burger:focus {
  box-shadow: none !important;
}

/* ----- ОФФКАНВАС (боковое меню) ----- */
.plk-offcanvas {
  background: linear-gradient(180deg, #1E3A8A 0%, #0F2B6E 100%) !important;
  max-width: 320px;
}

.plk-offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plk-offcanvas-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plk-offcanvas-brand span {
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.plk-offcanvas-body {
  padding: 20px 0 !important;
  display: flex;
  flex-direction: column;
}

/* ----- НАВИГАЦИЯ ----- */
.plk-side-nav {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

.plk-side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: all 0.2s;
}

.plk-side-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.plk-side-nav-item.active {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B !important;
}

.plk-side-nav-item i {
  width: 22px;
  text-align: center;
  font-size: 16px;
  color: #F59E0B;
}

.plk-side-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 16px;
}

/* ----- БЛОК ПОЛЬЗОВАТЕЛЯ ----- */
.plk-side-user {
  padding: 20px 12px;
  margin-top: auto;
}

.plk-side-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.plk-side-user-card:hover {
  background: rgba(255, 255, 255, 0.12);
}

.plk-side-user-avatar {
  width: 40px;
  height: 40px;
  background: #F59E0B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E3A8A;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.plk-side-user-info {
  flex: 1;
  min-width: 0;
}

.plk-side-user-name {
  color: white;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plk-side-user-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.plk-side-user-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

.plk-side-user-link {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  transition: all 0.2s;
}

.plk-side-user-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white !important;
}

.plk-side-user-link i {
  margin-right: 8px;
  color: #F59E0B;
  width: 16px;
}

.plk-side-user-link--danger {
  color: #FCA5A5 !important;
}

.plk-side-user-link--danger:hover {
  background: rgba(248, 113, 113, 0.15);
}

.plk-side-user-link--danger i {
  color: #F87171;
}

/* ----- КНОПКИ ГОСТЯ ----- */
.plk-side-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.plk-side-btn--login {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
  margin-bottom: 8px;
}

.plk-side-btn--login:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white !important;
}

.plk-side-btn--register {
  background: #F59E0B;
  color: #1E3A8A !important;
}

.plk-side-btn--register:hover {
  background: #FBBF24;
}

.plk-side-btn i {
  margin-right: 6px;
}

/* ============================================
   УНИВЕРСАЛЬНЫЕ ОТСТУПЫ ДЛЯ КОНТЕНТА
   ============================================ */

/* Мобильные */
@media (max-width: 480px) {
  body > .page-wrapper,
  body > .profile-page,
  body > .profile-edit-page,
  body > .admin-page,
  body > .fleet-overview-page,
  body > .fleet-family-page,
  body > .fleet-aircraft-page,
  body > .airport-page,
  body > .application-page,
  body > .test-page,
  body > .checklists-page,
  body > .documents-page,
  body > .liveries-page,
  body > .map-page,
  body > .login-page,
  body > .register-page,
  body > .error-page,
  body > .department-page,
  body > .departments-page,
  body > .connect-vk-page,
  body > .connect-vatsim-page,
  body > .report-page,
  body > .pe-wrapper,
  body > .news-page,
  body > main {
    padding-top: 56px !important;
  }
}

/* Планшеты */
@media (min-width: 481px) and (max-width: 768px) {
  body > .page-wrapper,
  body > .profile-page,
  body > .profile-edit-page,
  body > .admin-page,
  body > .fleet-overview-page,
  body > .fleet-family-page,
  body > .fleet-aircraft-page,
  body > .airport-page,
  body > .application-page,
  body > .test-page,
  body > .checklists-page,
  body > .documents-page,
  body > .liveries-page,
  body > .map-page,
  body > .login-page,
  body > .register-page,
  body > .error-page,
  body > .department-page,
  body > .departments-page,
  body > .connect-vk-page,
  body > .connect-vatsim-page,
  body > .report-page,
  body > .pe-wrapper,
  body > .news-page,
  body > main {
    padding-top: 66px !important;
  }
}

/* Десктоп */
@media (min-width: 769px) {
  body > .page-wrapper,
  body > .profile-page,
  body > .profile-edit-page,
  body > .admin-page,
  body > .fleet-overview-page,
  body > .fleet-family-page,
  body > .fleet-aircraft-page,
  body > .airport-page,
  body > .application-page,
  body > .test-page,
  body > .checklists-page,
  body > .documents-page,
  body > .liveries-page,
  body > .map-page,
  body > .login-page,
  body > .register-page,
  body > .error-page,
  body > .department-page,
  body > .departments-page,
  body > .connect-vk-page,
  body > .connect-vatsim-page,
  body > .report-page,
  body > .pe-wrapper,
  body > .news-page,
  body > main {
    padding-top: 76px !important;
  }
}

/* ----- АДАПТИВНОСТЬ НАВБАРА ----- */
@media (min-width: 768px) {
  .plk-navbar {
    min-height: 60px;
  }
  
  .plk-offcanvas {
    max-width: 340px;
  }
}

@media (max-width: 360px) {
  .plk-offcanvas {
    max-width: 280px;
  }
  
  .plk-navbar .navbar-brand img {
    height: 30px;
  }
  
  .plk-nav-container {
    padding: 8px 10px !important;
  }
}

/* ============================================
   ПУЛЬК — НАВБАР И БОКОВОЕ МЕНЮ
   ============================================ */

/* ----- КНОПКА ПУЛЬК В НАВБАРЕ ----- */
.plk-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plk-nav-btn {
  position: relative;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plk-nav-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.plk-nav-btn i {
  font-size: 20px;
}

.plk-chat-toggle {
  color: #F59E0B;
}

.plk-chat-toggle:hover {
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.15);
}

/* ----- БЕЙДЖ НЕПРОЧИТАННЫХ (в навбаре) ----- */
.plk-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1E3A8A;
  line-height: 1;
}

/* ----- БЕЙДЖ В БОКОВОМ МЕНЮ ----- */
.plk-side-badge {
  background: #F59E0B;
  color: #1E3A8A;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: auto;
  line-height: 1;
}

/* ----- БУРГЕР ----- */
.plk-burger {
  border-color: rgba(255, 255, 255, 0.3) !important;
  padding: 6px 10px;
}

.plk-burger:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* ----- АДАПТИВНОСТЬ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ ----- */
@media (max-width: 576px) {
  .plk-nav-btn {
    font-size: 18px;
    padding: 4px 8px;
  }
  
  .plk-nav-btn i {
    font-size: 18px;
  }
  
  .plk-chat-badge {
    font-size: 9px;
    min-width: 16px;
    height: 16px;
    top: -2px;
    right: -2px;
  }
}
/* ============================================
   ПУЛЬК — КНОПКА В НАВБАРЕ
   ============================================ */

.plk-chat-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  color: #FDE68A;
  cursor: pointer;
  transition: all 0.25s ease;
  margin: 0 4px;
  padding: 0;
}

.plk-chat-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
  transform: scale(1.05);
}

.plk-chat-btn:active {
  transform: scale(0.95);
}

.plk-chat-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* ----- БЕЙДЖ НА КНОПКЕ ----- */
.plk-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1E3A8A;
  line-height: 1;
  font-family: sans-serif;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===== ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 576px) {
  .plk-chat-btn {
    width: 36px;
    height: 36px;
  }
  
  .plk-chat-btn svg {
    width: 19px;
    height: 19px;
  }
  
  .plk-chat-badge {
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    top: -3px;
    right: -3px;
  }
}

/* ===== АКТИВНОЕ СОСТОЯНИЕ (когда чат открыт) ===== */
.plk-chat-btn.active {
  background: rgba(245, 158, 11, 0.25);
  color: #F59E0B;
}