/* Node app: доп. стили (основа — Tailwind CDN в base.html) */

/* Переход при смене страницы: fade out → fade in */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.18s ease;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
.fade-leave-to {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
}
#app {
  position: relative;
  min-height: 100%;
}

/* Плавное появление блока (таблицы, списки) */
.fade-in-content {
  animation: fadeInContent 0.22s ease-out 0.05s both;
}
@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Сайдбар: мобильный drawer и оверлей */
.sidebar-root {
  position: relative;
}
.sidebar-overlay {
  cursor: pointer;
}
/* Сайдбар: пункты меню и анимированный индикатор-шарик */
.sidebar-wrap {
  position: relative;
}
.sidebar-ball {
  position: absolute;
  right: 24px;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #fff;
  pointer-events: none;
  transition: top 0.2s ease-out;
}
.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #a1a1aa;
  text-decoration: none;
  transition: all 0.2s;
}
.sidebar-item:hover {
  background: rgba(39, 39, 42, 0.5);
  color: #f4f4f5;
}
.sidebar-item.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* Универсальная модалка */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.modal-box {
  width: 100%;
  max-width: 28rem;
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}
.modal-box--large {
  max-width: 42rem;
  max-height: 92vh;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #2563eb;
  color: #fff;
}
.modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.modal-close {
  padding: 0.25rem;
  color: #fff;
  opacity: 0.9;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.375rem;
  line-height: 0;
}
.modal-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}
.modal-body {
  padding: 1.25rem 1.25rem 1rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e4e4e7;
  background: #fafafa;
}
