/* apps/files/frontend/style.css */
/* Base Global Styles & Scrollbars */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Utilities */
.hidden {
  display: none !important;
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Windows Explorer Style Rubber-band Selection Box ── */
.drag-selection-box {
  position: fixed;
  border: 1px solid rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.2);
  pointer-events: none;
  z-index: 1000;
  border-radius: 2px;
  backdrop-filter: blur(1px);
}

/* ── 잘라내기 (Cut / 이동 대기) 상태 ── */
.item-cut {
  opacity: 0.42 !important;
  filter: grayscale(40%) !important;
  border-style: dashed !important;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* ── 드래그 중 텍스트 선택 방지 ── */
.no-user-select {
  user-select: none !important;
  -webkit-user-select: none !important;
}

