/* Custom Scrollbar for better UI feel */
::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}
::-webkit-scrollbar-track { 
    background: transparent; 
}
::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 4px; 
}
.dark ::-webkit-scrollbar-thumb { 
    background: #2d2d34; 
}

/* Right-Click Context Menu */
.context-menu {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 4px 0;
    z-index: 1000;
    min-width: 160px;
    display: none;
}
.dark .context-menu { 
    background: #1f1f23; 
    border-color: #2d2d34; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
}

.context-menu-item {
    padding: 8px 16px;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.1s;
}
.dark .context-menu-item { color: #d1d5db; }

.context-menu-item:hover { background: #3b82f6; color: white; }
.context-menu-danger:hover { background: #ef4444; color: white; }

/* File Card Selection Logic */
.file-card .file-checkbox {
    opacity: 0;
    transition: opacity 0.2s;
}

/* Show checkbox if the card is hovered OR if the checkbox is checked */
.file-card:hover .file-checkbox,
.file-card .file-checkbox:checked {
    opacity: 1;
}