/* MIGoRIX Sidebar Menu Styles - Approved Concept v1 - Final Pixel-Close Implementation */

.migorix-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 12, 0.48);
  backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.migorix-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.migorix-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 74vw;
  max-width: 300px;
  height: 100vh;
  background: rgba(8, 15, 26, 0.94);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  border-right: none;
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
}

.migorix-sidebar.active {
  transform: translateX(0);
}

.migorix-sidebar-header {
  display: flex;
  align-items: center;
  padding: 6px 12px 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8dce6;
  font-weight: 600;
  font-size: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 58px;
  box-sizing: border-box;
}


.migorix-sidebar-profile {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.migorix-sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(100, 150, 255, 0.15);
  background: url('/static/img/avatar.jpg') center center / cover no-repeat;
  flex-shrink: 0;
}

.migorix-sidebar-profile-info {
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.migorix-sidebar-profile-info strong {
  font-weight: 600;
  font-size: 15px;
  color: #e6edf3;
  line-height: 1.2;
  white-space: nowrap;
}

.migorix-sidebar-profile-info .migorix-sidebar-status {
  font-size: 11px;
  color: #8b9aad;
  display: flex;
  align-items: center;
}

.migorix-sidebar-profile-info .migorix-sidebar-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4cd964;
  border-radius: 50%;
  margin-right: 6px;
}

.migorix-sidebar-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 10px 0 12px;
  max-height: 72px;
}

.migorix-sidebar-stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.migorix-sidebar-stat-icon {
  font-size: 24px;
  margin-bottom: 4px;
  color: #a259ff;
}

.migorix-sidebar-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #8b9aad;
}

.migorix-sidebar-stat-label {
  font-size: 10px;
  color: #a8b3c7;
}

.migorix-sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.migorix-sidebar-item {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #e6edf3;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.migorix-sidebar-item + .migorix-sidebar-item {
  margin-top: 2px;
}

.migorix-sidebar-item:hover,
.migorix-sidebar-item:focus {
  background-color: rgba(255, 255, 255, 0.06);
  outline: none;
}

.migorix-sidebar-item.active {
  height: 36px;
  background-color: rgba(56, 130, 246, 0.12);
  color: #d8ecff;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 10px;
  box-shadow: none;
  position: relative;
}

.migorix-sidebar-item-active-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #4da3ff;
  border-radius: 50%;
  box-shadow: none;
}

.migorix-sidebar-item-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  flex-shrink: 0;
  fill: #a8b3c7;
}

.migorix-sidebar-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  margin: 6px 0 0 0;
  display: flex;
  align-items: center;
  margin-top: auto;
  height: 86px;
}

.migorix-sidebar-info-icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d5cff, #9d4dff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.migorix-sidebar-info-content {
  flex: 1;
}

.migorix-sidebar-info-content strong {
  font-size: 12px;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 4px;
}

.migorix-sidebar-info-content span {
  font-size: 10.5px;
  color: #8b9aad;
  line-height: 1.4;
}

.migorix-sidebar-progress-bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0 0 0;
  overflow: hidden;
}

.migorix-sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a259ff, #7b61ff);
  border-radius: 3px;
  transition: width 0.3s ease;
}


