/* =========================================
   PAPERLYTE LIVEMEDIA - MASTER THEME
   ========================================= */

/* --- 1. Base Theme & Colors --- */
html, body, #app, .app-layout {
    background-color: #0a0a0a !important;
    color: #e0e0e0 !important;
}

/* Force Dark Nav & Sidebar */
header, .topbar, .side-nav, .sidebar, .directory-header {
    background-color: #1a1a1a !important;
    background: #1a1a1a !important;
    border-color: #333 !important;
}

/* Selected Item Highlight */
.item.selected, .file-item.active, .btn-primary {
    background-color: #002e5a !important;
    color: #ffffff !important;
}

/* --- 2. Watermark Overlay --- */
html::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vh;
    transform: translate(-50%, -50%);
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMb2dvIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNjkuNzIgMTQwLjgyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzAwMmU1YTt9PC9zdHlsZT48L2RlZnM+PHBvbHlnb24gY2xhc3M9ImNscy0xIiBwb2ludHM9IjAgNzIuNTUgNTQuOTEgODguMDkgMjU5LjQ3IC42NiAwIDcyLjU1Ii8+PHBvbHlnb24gY2xhc3M9ImNscy0xIiBwb2ludHM9Ijk0Ljk4IDEwOC40MSAxNDYuNzYgMTQwLjgyIDI2OS43MiAwIDk0Ljk4IDEwOC40MSIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSIxMDUuNDIgMTIyLjY5IDkwLjg2IDExMy4wOSA3OC4zOSAxNDAuNDIgMTA1LjQyIDEyMi42OSIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMSIgcG9pbnRzPSI1OS4yNyA5My41OCA3Mi4yOSAxMzguMzYgODcuMSAxMDUuNzEgMjMyLjkgMTcuNTYgNTkuMjcgOTMuNTgiLz48L3N2Zz4=') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    opacity: 0.12 !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* --- 3. Media Grid Layout --- */

/* Main Container Grid */
.files-list, 
.row-container,
div[class*="files-list"] { 
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    padding: 15px !important;
}

/* Card Styling */
.item, 
.row, 
div[class*="file-item"] {
    display: flex !important;
    flex-direction: column !important;
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    height: auto !important;
    min-height: 200px !important;
    margin: 0 !important;
}

/* Hover Effects */
.item:hover, 
.row:hover, 
div[class*="file-item"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important;
    background-color: #252525 !important;
    z-index: 10 !important;
}

/* Thumbnail Area */
.item .icon, 
.row .icon, 
div[class*="file-item"] .icon {
    width: 100% !important;
    height: 140px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #000 !important;
}

/* Thumbnail Images */
.item .icon img, 
.row .icon img,
div[class*="file-item"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Filename Text */
.item .name, 
.row .name,
div[class*="file-item"] .label {
    padding: 10px !important;
    font-size: 0.9rem !important;
    color: #e0e0e0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
}

/* Clean up List View Columns */
.item .size, .item .date,
.row .size, .row .date {
    display: none !important; 
}
