/*
 * (C) Dr. Jonathan Ingram 2025. All rights reserved.
 * 
 * File: styles.css
 * System: BEAM
 * 
 * This file is part of the BEAM system.
 * Unauthorized copying of this file, via any medium, is strictly prohibited.
 * Unauthorized use, including but not limited to teaching, training, or fine-tuning
 * any artificial intelligence system; reverse engineering; analysis; reproduction;
 * or the creation of derivative or functionally similar systems, is strictly prohibited.
 */

.eam-menu-container {
  display: flex;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.eam-finder-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 1px;
  background: #0a0a0a;
}

.eam-sidebar {
  width: 220px;
  background: #2c2c2c;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #444;
}

.eam-sidebar-header {
  padding: 12px 15px;
  border-bottom: 1px solid #444;
  background: #252525;
}

.eam-sidebar-header h3 {
  margin: 0;
  font-size: 13px;
  color: #4A90E2;
  font-weight: 600;
}

.eam-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.eam-module-group {
  margin-bottom: 12px;
}

.eam-module-category {
  padding: 6px 15px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.eam-category-icon {
  font-size: 12px;
}

.eam-module-item,
.eam-capability-item,
.eam-bim-action {
  padding: 6px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s;
}

.eam-module-item:hover,
.eam-capability-item:hover,
.eam-bim-action:hover {
  background: #3a3a3a;
}

.eam-bim-action:hover {
  background: #2a4a2a;
}

.eam-capability-item:hover {
  background: #3a3a5a;
}

.eam-module-item.selected {
  background: #4A90E2;
  color: white;
}

.eam-module-icon {
  font-size: 14px;
}

.eam-module-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eam-main-window {
  flex: 1;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
}

.eam-window-header {
  padding: 12px 20px;
  background: #252525;
  border-bottom: 1px solid #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.eam-window-header h3 {
  margin: 0;
  font-size: 13px;
  color: #4A90E2;
  font-weight: 600;
  flex-shrink: 0;
}

.eam-stats {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #888;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.eam-header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.eam-close-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.eam-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.eam-window-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.eam-section {
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 12px;
}

.eam-section-title {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4A90E2;
  margin-bottom: 8px;
}

.eam-nlq-input {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  background: #1a1a1a;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
  resize: vertical;
  line-height: 1.4;
}

.eam-nlq-input::placeholder {
  color: #666;
}

.eam-code-editor {
  width: 100%;
  min-height: 120px;
  max-height: 250px;
  padding: 10px;
  background: #1e1e1e;
  color: #d4d4d4;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 11px;
  overflow: auto;
  white-space: pre;
  line-height: 1.5;
}

.eam-button-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.eam-btn {
  padding: 6px 12px;
  background: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
}

.eam-btn:hover {
  background: #4a4a4a;
  border-color: #666;
}

.eam-btn-primary {
  background: #4A90E2;
  border-color: #4A90E2;
}

.eam-btn-primary:hover {
  background: #357abd;
  border-color: #357abd;
}

.eam-btn-success {
  background: #28a745;
  border-color: #28a745;
}

.eam-btn-success:hover {
  background: #218838;
  border-color: #218838;
}

.eam-btn-secondary {
  background: #5a6268;
  border-color: #5a6268;
}

.eam-btn-secondary:hover {
  background: #4e555b;
  border-color: #4e555b;
}

.eam-btn-warning {
  background: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.eam-btn-warning:hover {
  background: #e0a800;
  border-color: #e0a800;
}

.eam-btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

.eam-history-list {
  max-height: 150px;
  overflow-y: auto;
}

.eam-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #1a1a1a;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 11px;
}

.eam-history-item.success {
  border-left: 2px solid #28a745;
}

.eam-history-item.error {
  border-left: 2px solid #dc3545;
}

.eam-history-time {
  color: #888;
  min-width: 70px;
}

.eam-history-type {
  color: #4A90E2;
  font-weight: 500;
  min-width: 70px;
}

.eam-history-desc {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eam-history-status {
  font-size: 12px;
}

.eam-console {
  height: 120px;
  background: #1e1e1e;
  border-top: 1px solid #444;
  padding: 10px;
  overflow-y: auto;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.4;
}

.eam-console-entry {
  margin: 2px 0;
}

.eam-console-entry.eam-success {
  color: #4CAF50;
}

.eam-console-entry.eam-error {
  color: #f44;
}

.eam-console-entry.eam-info {
  color: #e0e0e0;
}

.eam-empty {
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 12px;
}

.eam-loading {
  padding: 20px;
  text-align: center;
  color: #888;
  font-size: 12px;
}

.eam-error {
  padding: 20px;
  text-align: center;
  color: #f44;
  font-size: 12px;
}

.eam-sidebar-content::-webkit-scrollbar,
.eam-window-body::-webkit-scrollbar,
.eam-history-list::-webkit-scrollbar,
.eam-console::-webkit-scrollbar,
.eam-code-editor::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.eam-sidebar-content::-webkit-scrollbar-track,
.eam-window-body::-webkit-scrollbar-track,
.eam-history-list::-webkit-scrollbar-track,
.eam-console::-webkit-scrollbar-track,
.eam-code-editor::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.eam-sidebar-content::-webkit-scrollbar-thumb,
.eam-window-body::-webkit-scrollbar-thumb,
.eam-history-list::-webkit-scrollbar-thumb,
.eam-console::-webkit-scrollbar-thumb,
.eam-code-editor::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.eam-sidebar-content::-webkit-scrollbar-thumb:hover,
.eam-window-body::-webkit-scrollbar-thumb:hover,
.eam-history-list::-webkit-scrollbar-thumb:hover,
.eam-console::-webkit-scrollbar-thumb:hover,
.eam-code-editor::-webkit-scrollbar-thumb:hover {
  background: #666;
}