* { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #fbcfe8; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #f9a8d4; }

.context-menu { position: fixed; z-index: 50; display: none; min-width: 190px; }
.context-menu.active { display: block; }
.context-menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 13px; font-weight: 500; color: #4b5563; transition: background 0.12s; }
.context-menu-item:hover { background: #fdf2f8; color: #374151; }
.context-menu-item.danger { color: #ef4444; }
.context-menu-item.danger:hover { background: #fef2f2; color: #dc2626; }
.context-menu-divider { height: 1px; background: #fce7f3; margin: 4px 0; }

#drop-overlay { position: absolute; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,0.82); border: 2px dashed #f9a8d4; border-radius: 6px; backdrop-filter: blur(1px); }
#drop-overlay.active { display: flex; }
#file-area-wrapper.drag-over #file-area { border-color: #f9a8d4 !important; }

.toast { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04); pointer-events: auto; overflow: hidden; position: relative; animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.toast.exit { animation: toastOut 0.25s ease-in forwards; }
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-6px); opacity: 0; } }
.toast-bar { height: 2px; border-radius: 1px; animation: toastBar 4s linear forwards; }
@keyframes toastBar { from { width: 100%; } to { width: 0%; } }

.file-row { cursor: pointer; touch-action: manipulation; }
.file-row:hover { background: #fdf2f8; }
.file-row.selected { background: #fce7f3; }

@media (max-width: 640px) {
  .file-size-col, .file-type-col, .file-date-col { display: none; }
}

#progress-modal.active { display: flex; }
