/* Issue Reports Page Styles */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.filters-panel {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  font-size: 12px;
  color: var(--text-secondary);
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.title-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.badge-bug {
  background: #ff4444;
  color: white;
}

.badge-feature {
  background: #8b5cf6;
  color: white;
}

.badge-priority-high {
  background: #dc2626;
  color: white;
}

.badge-priority-medium {
  background: #f59e0b;
  color: white;
}

.badge-priority-low {
  background: #10b981;
  color: white;
}

.badge-status-open {
  background: #3b82f6;
  color: white;
}

.badge-status-in_progress {
  background: #f59e0b;
  color: white;
}

.badge-status-resolved {
  background: #10b981;
  color: white;
}

.badge-status-closed {
  background: #6b7280;
  color: white;
}

.report-details {
  padding: 16px;
}

.detail-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.detail-section {
  margin-top: 24px;
}

.detail-section h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.detail-text {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: 4px;
  white-space: pre-wrap;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 13px;
}

.system-info {
  background: var(--bg-secondary);
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}

.system-info > div {
  margin-bottom: 8px;
}

.extensions-list {
  margin-top: 8px;
  padding-left: 20px;
}

.extensions-list li {
  margin-bottom: 4px;
  font-size: 12px;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resolved-info {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
}

.btn-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.btn-icon:hover {
  opacity: 0.7;
}

.btn-danger {
  background: #dc2626;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-danger:hover {
  background: #b91c1c;
}

/* reportDetailsModal специфичные стили */
#reportDetailsModal .modal-content {
  max-width: 600px;
}

#reportDetailsModal .modal-content.large {
  max-width: 800px;
}

#reportDetailsModal .modal-header {
  padding: 20px;
}

#reportDetailsModal .modal-header h2 {
  margin: 0;
  font-size: 20px;
}

#reportDetailsModal .modal-body {
  padding: 20px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  resize: vertical;
}
