/*
 * (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.
 */

/* Agents Menu Styles - Mac Finder Style */

/* Main finder window */
#agents-window.finder-window {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titlebar styles */
#agents-window .titlebar {
  -webkit-user-select: none;
  user-select: none;
}

/* Traffic light buttons */
#agents-window .titlebar button {
  transition: all 0.1s ease;
}

#agents-window .titlebar button:hover {
  transform: scale(1.1);
}

#agents-window .titlebar button:active {
  transform: scale(0.95);
}

/* Search box focus state */
#agents-window .titlebar input[type="search"]:focus {
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Sidebar styles */
#agents-window .sidebar {
  -webkit-user-select: none;
  user-select: none;
}

#agents-window .sidebar-item {
  transition: background-color 0.1s ease;
}

#agents-window .sidebar-item:hover {
  background-color: #e8e8e8 !important;
}

#agents-window .sidebar-item:active {
  background-color: #d0d0d0 !important;
}

/* Content area scrollbar */
#agents-window .content::-webkit-scrollbar {
  width: 12px;
}

#agents-window .content::-webkit-scrollbar-track {
  background: transparent;
}

#agents-window .content::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 6px;
  border: 2px solid #fff;
}

#agents-window .content::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Sidebar scrollbar */
#agents-window .sidebar::-webkit-scrollbar {
  width: 8px;
}

#agents-window .sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#agents-window .sidebar::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}

#agents-window .sidebar::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Agent cards hover effects */
#agents-window .agent-card {
  transition: all 0.15s ease;
}

#agents-window .agent-card:hover {
  background-color: #f0f0f0 !important;
  border-color: #ccc !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

#agents-window .agent-card:active {
  transform: translateY(0) !important;
  background-color: #e8e8e8 !important;
}

/* Agent card buttons */
#agents-window .agent-card button {
  transition: all 0.1s ease;
  font-weight: 500;
  font-family: inherit;
}

#agents-window .agent-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#agents-window .agent-card button:active {
  transform: translateY(0);
}

/* Grid layout animation */
#agents-window .agent-grid {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Focus outline for accessibility */
#agents-window .sidebar-item:focus,
#agents-window .agent-card:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

/* Agent status indicators */
#agents-window .agent-card .status-indicator {
  transition: all 0.2s ease;
}

#agents-window .agent-card:hover .status-indicator {
  transform: scale(1.2);
}

/* Selection states */
#agents-window .agent-card.selected {
  background-color: #007AFF !important;
  color: white !important;
  border-color: #007AFF !important;
}

#agents-window .agent-card.selected * {
  color: white !important;
}

/* Window shadow enhancement */
#agents-window.finder-window {
  transition: box-shadow 0.2s ease;
}

#agents-window.finder-window:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive grid */
@media (max-width: 900px) {
  #agents-window .agent-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  #agents-window .agent-grid {
    grid-template-columns: 1fr;
  }
}