/* ==========================================================================
   DockDock — macOS Finder Applications Window
   ========================================================================== */

#pane-finder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 96px 24px;
}

.macos-finder-window {
  width: 740px;
  max-width: 94%;
  height: 380px;
  max-height: 100%;
  background: rgba(30, 31, 38, 0.88);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

/* FINDER TITLEBAR */
.finder-titlebar {
  height: 44px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

/* TRAFFIC LIGHTS */
.traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.tl.red {
  background: #ff5f56;
  border: 0.5px solid #e0443e;
}

.tl.yellow {
  background: #ffbd2e;
  border: 0.5px solid #dea123;
}

.tl.green {
  background: #27c93f;
  border: 0.5px solid #1aab29;
}

.finder-title-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 600;
  color: #f5f5f7;
}

/* FINDER BODY */
.finder-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* FINDER SIDEBAR */
.finder-sidebar {
  width: 170px;
  min-width: 170px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-side-item {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.1s ease;
}

.f-side-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 500;
}

/* FINDER GRID */
.finder-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  align-content: start;
  gap: 20px 16px;
  padding: 24px;
  overflow-y: auto;
}

.f-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: default;
  transition: background 0.12s ease;
}

.f-app-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.f-app-item.is-selected {
  background: rgba(255, 255, 255, 0.12);
}

.f-app-icon {
  width: 54px;
  height: 54px;
  object-fit: cover;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.f-app-candidate .f-app-icon,
.apply-squircle .f-app-icon {
  border-radius: 22.37%;
}

.f-app-label {
  font-size: 11.5px;
  color: #f5f5f7;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finder-candidates-mount {
  display: contents;
}
