// 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;
$status-success: #10B981;
$status-warning: #F59E0B;
$status-info: #3B82F6;

.faq-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 450px;
  height: 100vh;
  background: $bg-secondary;
  border-left: 1px solid $border-light;
  box-shadow: $shadow-md;
  z-index: 1000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  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;
  }
}

.search-section {
  margin-bottom: $space-lg;
}

.search-box {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid $border-light;
  border-radius: $radius-md;
  font-size: $text-base;
  background: $bg-tertiary;
  outline: none;

  &:focus {
    border-color: $estair-blue;
    background: $bg-secondary;
  }
}

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

.stats-section {
  display: flex;
  gap: $space-md;
  margin-bottom: $space-xl;
}

.stat-card {
  flex: 1;
  background: $bg-secondary;
  padding: $space-lg;
  border-radius: $radius-md;
  border: 1px solid $border-light;
  text-align: center;
}

.stat-number {
  font-size: $text-xl;
  font-weight: 600;
  color: $estair-blue;
}

.stat-label {
  font-size: $text-sm;
  color: $text-secondary;
  margin-top: 4px;
}

.faq-categories {
  margin-bottom: $space-xl;
}

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

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

.faq-item {
  background: $bg-tertiary;
  border: 1px solid $border-light;
  border-radius: $radius-md;
  margin-bottom: $space-md;
  overflow: hidden;
  transition: all 0.2s ease;

  &:hover {
    border-color: $estair-blue;
    box-shadow: $shadow-md;
  }

  &.expanded .expand-icon {
    transform: rotate(180deg);
  }
}

.faq-question {
  padding: $space-lg;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: $bg-secondary;
  font-weight: 500;
  color: $text-primary;

  &:hover {
    background: $bg-tertiary;
  }
}

.question-text {
  flex: 1;
  font-size: $text-base;
}

.expand-icon {
  width: 16px;
  height: 16px;
  color: $text-secondary;
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 $space-lg $space-lg;
  color: $text-secondary;
  line-height: 1.6;
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: $radius-md;
  font-size: $text-sm;
  font-weight: 500;
  margin-left: $space-md;
  margin-right: $space-md;

  &.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
  }

  &.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: $status-warning;
  }

  &.priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: $status-success;
  }
}

.help-actions {
  background: $bg-tertiary;
  padding: $space-lg;
  border-radius: $radius-md;
  margin-top: $space-xl;
}

.help-title {
  font-weight: 600;
  margin-bottom: $space-md;
  color: $text-primary;
}

.help-buttons {
  display: flex;
  gap: $space-md;
  flex-wrap: wrap;
}

.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-secondary;
    color: $text-secondary;
    border: 1px solid $border-light;
  }
}