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

/* BIM Objects Menu Styles - Mac Finder Style */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Object items hover effects */
#bim-objects-window .object-item {
  transition: all 0.1s ease;
}

#bim-objects-window .object-item:hover {
  background-color: #f0f0f0 !important;
  border-color: #ddd !important;
  transform: translateY(-1px);
}

#bim-objects-window .object-item:active {
  transform: translateY(0);
  background-color: #e0e0e0 !important;
}

/* Grid layout responsiveness */
#bim-objects-window .object-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 */
#bim-objects-window .sidebar-item:focus,
#bim-objects-window .object-item:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

/* Selection states */
#bim-objects-window .object-item.selected {
  background-color: #007AFF !important;
  color: white !important;
  border-color: #007AFF !important;
}

#bim-objects-window .object-item.selected div {
  color: white !important;
}

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

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