/* === Base (variables, helpers) === */
:root {
    --card-bg: rgba(255,255,255,.02);
    --card-border: rgba(255,255,255,.08);
    --muted: #9aa0a6;
}

.blur-bg { backdrop-filter: blur(8px); background: rgba(0,0,0,0.25); }
.lift { transition: transform .18s ease, box-shadow .18s ease; }
.lift:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.25); }

/* badges & misc */
.badge-lock { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }

/* Toast */
.toast.show-soft { box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.35); }

/* Cards, grids */
.files-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* Drop area */
.drop-area {
    border: 2px dashed var(--card-border);
    border-radius: .75rem;
    padding: 1.25rem;
    background: rgba(255,255,255,.02);
}
.drop-area.drop-fixed {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky column */
.sticky-col {
    position: sticky;
    top: 88px;
}

/* File card preview (img/video/etc.) */
.file-card .preview {
    border: 1px dashed var(--card-border);
    border-radius: .5rem;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: rgba(255,255,255,.02);
}

/* Code/JSON preview window */
.preview-box {
    border: 1px solid var(--card-border);
    border-radius: .5rem;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #dde1e6;
    background: rgba(255,255,255,.03);
    width: 100%;
    height: 100%;
    overflow: auto;
    white-space: pre;
}

/* Audio control tidy */
.file-card .preview audio { width: 92%; }

/* === Footer (sleek bar style) === */
.footer-bar {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    color: #bcbcbc;
    padding: 0.6rem 0;
    font-size: 0.85rem;
}

.footer-bar .badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

@media (max-width: 576px) {
    .footer-bar {
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }
    .footer-bar .container {
        flex-direction: column;
        gap: 3px;
    }
}

/* === Hide upload block on mobile === */
@media (max-width: 768px) {
    #leftCol {
        display: none !important;
    }
}

/* Layout fix so footer stays at bottom */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1 0 auto;
}
.footer-bar {
    flex-shrink: 0;
}