// Variables ESTAIR
$estair-blue: #4AA8DC;
$estair-blue-dark: #3B82F6;
$estair-green: #8DA969;
$bg-primary: #FAFBFC;
$bg-secondary: #FFFFFF;
$bg-tertiary: #F8F9FA;
$border-light: #E5E7EB;
$text-primary: #111827;
$text-secondary: #6B7280;
$text-muted: #9CA3AF;
$shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
$space-md: 12px;
$space-lg: 16px;
$space-xl: 24px;
$text-sm: 11px;
$text-base: 13px;
$text-lg: 15px;
$text-xl: 18px;
$radius-md: 6px;
$radius-lg: 8px;

.user-profile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: $bg-secondary;
  border-left: 1px solid $border-light;
  box-shadow: $shadow-md;
  z-index: 1000;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.panel-header {
  padding: $space-xl;
  border-bottom: 1px solid $border-light;
  background: $bg-secondary;
  position: sticky;
  top: 0;
  z-index: 100;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: $space-lg;

  h2 {
    font-size: $text-xl;
    font-weight: 600;
    color: $text-primary;
    margin: 0;
  }
}

.close-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: $bg-tertiary;
  border-radius: $radius-md;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $text-secondary;

  &:hover {
    background: $border-light;
  }
}

.user-avatar-section {
  display: flex;
  align-items: center;
  gap: $space-lg;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, $estair-blue, $estair-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: $text-xl;
  font-weight: 600;
}

.user-basic-info {
  h3 {
    font-size: $text-lg;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: $text-primary;
  }
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: $estair-green;
  color: white;
  padding: 4px 8px;
  border-radius: $radius-md;
  font-size: $text-sm;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.panel-content {
  padding: $space-xl;
}

.info-section {
  margin-bottom: $space-xl;
}

.section-title {
  font-size: $text-lg;
  font-weight: 600;
  margin-bottom: $space-lg;
  color: $text-primary;
  display: flex;
  align-items: center;
  gap: $space-md;

  .section-icon {
    width: 20px;
    height: 20px;
    color: $estair-blue;
  }
}

.info-grid {
  display: grid;
  gap: $space-lg;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: $text-sm;
  color: $text-secondary;
  font-weight: 500;
}

.info-value {
  font-size: $text-base;
  color: $text-primary;
  font-weight: 500;

  &.empty {
    color: $text-muted;
    font-style: italic;
  }

  &.uuid-value {
    font-family: monospace;
    font-size: 10px;
    word-break: break-all;
  }
}

.divider {
  height: 1px;
  background: $border-light;
  margin: $space-xl 0;
}

.action-buttons {
  display: flex;
  gap: $space-md;
  margin-top: $space-xl;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: $radius-md;
  border: none;
  font-size: $text-sm;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-1px);
    box-shadow: $shadow-md;
  }

  &.btn-primary {
    background: $estair-blue;
    color: white;
  }

  &.btn-secondary {
    background: $bg-tertiary;
    color: $text-secondary;
    border: 1px solid $border-light;
  }
}