/* main.css – bazowe style + custom dla całej aplikacji (wyodrębnione z index.php) */

:root { font-family: 'Poppins', system_ui, sans-serif; }

.file-card {
    transition: transform .1s ease, box-shadow .1s ease;
}
.file-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.folder-icon {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone {
    transition: all 0.2s ease;
}
.dropzone.dragover {
    background-color: #27272a;
    border-color: #6366f1;
    transform: scale(1.01);
}

.modern-shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1),
                0 10px 15px -3px rgba(0,0,0,0.1),
                0 4px 6px -4px rgba(0,0,0,0.1);
}

a.nav-active {
    background-color: #27272a;
    color: #f4f4f5;
    font-weight: 500;
    border-radius: 10px;
}
/* Delikatne wyróżnienie aktywnego folderu w drzewie */
a.nav-active {
    box-shadow: inset 0 0 0 1px #3f3f46;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/* List view rows */
.list-row {
    transition: background-color .1s ease, border-color .1s ease;
}
.list-row:hover {
    background-color: #18181b;
}

.folder-color {
    transition: background-color 0.2s;
}

[x-cloak] { display: none !important; }

/* Nicer checkboxes in select mode */
.file-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #27272a;
    border: 1.5px solid #3f3f46;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.file-card input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}
.file-card input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.file-card input[type="checkbox"]:hover {
    border-color: #6366f1;
}

/* Dodatkowe style z custom.css */
