/**
 * Oracle OS shell polish (supplement to styles still embedded in oracle.html).
 * Loaded: /oracle-os/os-desktop.css
 */

/* Desktop icons — selection + Recycle Bin */
.os-icon.os-icon-selected {
  background: rgba(99, 102, 241, 0.22) !important;
  outline: 1px solid rgba(99, 102, 241, 0.45);
}
.os-icon-recycle.os-recycle-full span {
  color: #fca5a5;
}
#os-icon-recycle {
  margin-top: 4px;
}

/* Directory Tree View styling */
.os-fm-tree-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  user-select: none;
  font: 12px Inter, system-ui, sans-serif;
}
.os-fm-tree-node {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.os-fm-tree-node:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
}
.os-fm-tree-node.os-fm-tree-active {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-weight: 600;
}
.os-fm-tree-toggle {
  font-size: 9px;
  color: #64748b;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}
.os-fm-tree-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}
.os-fm-tree-icon {
  font-size: 13px;
}
.os-fm-tree-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* File Manager Drag & Drop Overlay */
.os-fm-dropzone {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  border: 2px dashed #6366f1;
  border-radius: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #f8fafc;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.os-fm-dropzone.os-fm-dropzone-active {
  opacity: 1;
}

/* Settings → Account: reduce motion */
#os-desktop.os-reduce-motion,
#os-desktop.os-reduce-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* Wallpaper tiles in Appearance */
.os-wall-tile:hover {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 1px;
}

/* Settings place buttons */
#os-settings-content button:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.7);
  outline-offset: 2px;
}
