/**
 * OrangeFiles - Datafiles Styles
 */
.gallery-section {
    background: white;
    border-radius: 20px;
    padding: 0;
}

/* Sticky Action Bar */
.sticky-controls-wrapper {
    position: sticky;
    top: 60px;
    z-index: 100;
    padding: 10px 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-action-bar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.folder-selection-group {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.active-folder {
    padding: 8px 14px;
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.2);
}

.folder-badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.folder-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 81, 47, 0.4);
    padding: 12px;
    display: none;
    z-index: 1001;
    /* Above almost everything in section */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.folder-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 500;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    margin-bottom: 5px;
    text-align: center;
}

.folder-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.folder-option:hover {
    background: rgba(255, 81, 47, 0.1);
    color: #FF512F;
}

.dropdown-folder-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.dropdown-folder-icon-wrapper svg {
    stroke: #FF512F;
    fill: #FF512F;
    width: 26px;
    height: 26px;
}

.dropdown-folder-count {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 9px;
    /* Larger for 26px icon */
    font-weight: 800;
    color: white;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown-empty-message {
    text-align: center;
    padding: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
}

.dropdown-empty-message {
    text-align: center;
    padding: 15px;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    font-style: italic;
}

.folder-option:hover .dropdown-folder-count {
    color: white;
}

/* Active Folder Icon Style */
.active-folder .dropdown-folder-icon-wrapper {
    margin-right: 0;
}

.active-folder .dropdown-folder-icon-wrapper svg {
    fill: white;
    stroke: white;
}

.active-folder .dropdown-folder-count {
    color: #FF512F;
    font-weight: 800;
    text-shadow: none;
}

.action-toolbar-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    margin: 0;
}

.cleanup-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-item-btn.cleanup-link {
    width: auto;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.action-item-btn.cleanup-link.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

/* Cleanup icons managed at bottom */

.cleanup-link span {
    display: none;
}

.action-item-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

/* Phase 48: Visual Folder Styling */
.gallery-item.is-folder {
    border: 2px solid rgba(240, 152, 25, 0.1);
    background: white;
}

.gallery-item.is-folder:hover {
    border-color: #F09819;
}

.file-placeholder.folder-type {
    background: #fffcf5;
    background-image: radial-gradient(rgba(240, 152, 25, 0.05) 1px, transparent 1px);
    background-size: 15px 15px;
}

.folder-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.folder-item-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -10%);
    background: #F09819;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(240, 152, 25, 0.3);
}

.video-badge.folder-badge {
    background: #F09819;
    color: white;
    font-weight: 700;
}

.action-item-btn:hover {
    background: white;
    border-color: #FF512F;
    color: #FF512F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.1);
}

.action-item-btn.active {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.4);
}

/* --- AGGRESSIVE ICON SIZING --- */
.action-item-btn svg {
    width: 26px !important;
    height: 26px !important;
    stroke-width: 2.2px !important;
}

/* Specific Big Icons - Clean Bold */
#filterToggleBtn svg,
.action-item-btn.primary svg,
.action-item-btn.more-folders-btn svg {
    width: 32px !important;
    height: 32px !important;
    stroke-width: 2.4px !important;
}

/* Specific Cleanup Icons (trash/broom) - Thinner as requested */
.cleanup-link svg {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 1.2px !important;
}

/* Bulk Action Bar - Light Orange Glass Design */
.bulk-action-bar {
    display: none;
    /* Flex when active */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    /* Start hidden below screen */

    width: auto;
    min-width: 380px;
    max-width: 90%;

    background: rgba(255, 255, 255, 0.9);
    /* White Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 81, 47, 0.15);
    /* Subtle Orange Border */
    box-shadow:
        0 20px 40px rgba(255, 81, 47, 0.15),
        /* Orange Glow */
        0 5px 15px rgba(0, 0, 0, 0.05);

    color: #334155;
    z-index: 1100;

    align-items: center;
    justify-content: space-between;
    gap: 20px;

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
}

.bulk-action-bar.active {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    animation: none;
}

.bulk-info {
    font-weight: 700;
    color: #334155;
}

.bulk-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f1f5f9;
    /* Light Slate */
    border: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.bulk-btn:hover {
    background: #FF512F;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 81, 47, 0.2);
}

.bulk-btn.danger {
    background: #fee2e2;
    color: #ef4444;
}

.bulk-btn.danger:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.bulk-buttons {
    display: flex;
    gap: 10px;
}

/* Mobile Adjustments for Bulk Bar */
@media (max-width: 768px) {
    .bulk-action-bar {
        bottom: 70px;
        /* Above navbar */
        min-width: unset;
        width: 90%;
        padding: 12px 16px;
        flex-direction: row;
        /* Keep row on mobile */
        gap: 15px;
    }

    .bulk-info {
        font-size: 0.9rem;
    }

    .bulk-buttons {
        width: auto;
        justify-content: flex-end;
    }

    .bulk-btn {
        padding: 8px 12px;
    }

    .bulk-btn span {
        display: none;
        /* Hide text on small screens if needed, or keep short */
    }
}

/* Filter Controls */
.filter-control-row {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-control-row.active {
    display: flex;
}

.type-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.type-filter-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 245, 249, 0.5);
}

.type-filter-btn:hover {
    color: #FF512F;
    border-color: #FF512F;
}

.type-filter-btn.active {
    background: rgba(255, 81, 47, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    border-color: #FF512F;
    box-shadow: 0 0 15px rgba(255, 81, 47, 0.4);
    transform: translateY(-1px);
}

.type-filter-btn svg {
    width: 16px;
    height: 16px;
}

/* Slider */
.gallery-controls {
    width: 140px;
}

.thumbnail-slider {
    appearance: none;
    width: 100%;
    height: 8px;
    /* Thicker track */
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
}

/* Webkit (Chrome, Safari, Edge) */
.thumbnail-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    /* Larger hit area */
    height: 24px;
    background: white;
    border: 4px solid #FF512F;
    /* Prominent border */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.3);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thumbnail-slider::-webkit-slider-thumb:hover,
.thumbnail-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 6px 18px rgba(255, 81, 47, 0.5);
    background: #FF512F;
}

/* Firefox */
.thumbnail-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid #FF512F;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.3);
    transition: all 0.25s;
}

.thumbnail-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #FF512F;
}

/* IE/Edge (Legacy) */
.thumbnail-slider::-ms-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid #FF512F;
    border-radius: 50%;
    cursor: pointer;
}

/* Gallery Grid & Items */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
    gap: 6px;
    padding: 15px 12px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    gap: 12px;
}

/* Empty State Redesign */
.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    background: white;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    width: 100%;
}

.empty-gallery-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin: 0 auto 20px !important;
    /* Force center margin */
    background: #f8fafc;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.empty-gallery-icon svg {
    width: 60px;
    height: 60px;
    stroke-width: 1.5;
    stroke: #94a3b8;
}

.empty-gallery h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    margin: 0 auto 8px !important;
    text-align: center !important;
    width: 100%;
}

.empty-gallery p {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 450px;
    line-height: 1.5;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100%;
}

.file-ext {
    font-size: 0.75rem;
    font-weight: 900;
    color: #94a3b8;
    background: white;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gallery-item {
    container-type: inline-size;
    container-name: gallery-card;
}

.gallery-item-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 81, 47, 0.45) 0%, rgba(255, 81, 47, 0.9) 100%);
    opacity: 0;
    pointer-events: none;
    /* Block interactions until active */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

@media (min-width: 769px) {
    .gallery-item-hover {
        backdrop-filter: blur(4px);
    }
}

/* Toggle actions on click instead of hover */
.gallery-item.actions-active .gallery-item-hover {
    opacity: 1;
    pointer-events: auto;
}

/* Default / Small Mode (Fixed 4 Corners + Center) */
.item-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 8px;
    /* Slightly smaller padding */
    pointer-events: none;
    /* Let clicks pass through empty spaces */
}

.action-btn {
    position: absolute;
    width: 32px;
    /* Base size smaller for small grids */
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    /* Default above most things */
    pointer-events: auto;
    /* Buttons capture clicks */
}

@media (min-width: 769px) {
    .action-btn {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

.action-btn svg {
    width: 14px;
    /* Default smaller icons */
    height: 14px;
}

/* Specific Positions */
.action-btn.delete {
    top: 6px;
    right: 6px;
}

.action-btn.download {
    bottom: 6px;
    right: 6px;
}

.action-btn.edit {
    bottom: 6px;
    left: 6px;
}

.action-btn.view {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    /* Base size */
    height: 44px;
    background: #FF512F;
    color: white;
    box-shadow: 0 6px 15px rgba(255, 81, 47, 0.4);
    z-index: 1;
    /* Keep slightly below corners if crowded */
}

.action-btn.more {
    display: none;
    /* Hidden on large grids */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.action-btn.view svg {
    width: 20px;
    height: 20px;
}

/* Adaptive Sizes based on Card Width (Container Queries) */
@container (max-width: 175px) {

    /* Hide ALL individual actions when card is tight */
    .action-btn.download,
    .action-btn.delete,
    .action-btn.edit,
    .action-btn.view {
        display: none !important;
    }

    /* Show only the MORE button */
    .action-btn.more {
        display: flex !important;
        width: 36px;
        height: 36px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .action-btn.more svg {
        width: 18px;
        height: 18px;
    }
}

/* Individual scaling for medium-small cards */
@container (min-width: 176px) and (max-width: 219px) {
    .action-btn {
        width: 38px;
        height: 38px;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    .action-btn.view {
        width: 52px;
        height: 52px;
    }
}

@container (min-width: 220px) {
    .action-btn {
        width: 48px;
        height: 48px;
    }

    .action-btn svg {
        width: 24px;
        height: 24px;
    }

    .action-btn.view {
        width: 75px;
        height: 75px;
    }

    .action-btn.view svg {
        width: 28px;
        height: 28px;
    }
}

/* .action-btn styles now handled by Container Queries above */
.action-btn {
    /* Common base styles that don't conflict with width/height */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s, background 0.2s, color 0.2s;
    user-select: none;
}

/* Magnification Effect for Center Icon */
.action-btn.focused-action {
    transform: scale(1.4);
    z-index: 5;
    background: #FF512F;
    color: white;
    box-shadow: 0 8px 25px rgba(255, 81, 47, 0.4);
}

.action-btn svg {
    width: var(--action-icon-size, 18px);
    height: var(--action-icon-size, 18px);
}

.action-btn.view:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: #FF512F;
    color: white;
}

.action-btn.more:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Fallback for very high-density mobile grids where container queries might be finicky */
@media (max-width: 500px) {

    .gallery-grid.grid-cols-3 .action-btn:not(.more),
    .gallery-grid.grid-cols-4 .action-btn:not(.more),
    .gallery-grid.grid-cols-5 .action-btn:not(.more),
    .gallery-grid.grid-cols-6 .action-btn:not(.more) {
        display: none !important;
    }

    .gallery-grid.grid-cols-3 .action-btn.more,
    .gallery-grid.grid-cols-4 .action-btn.more,
    .gallery-grid.grid-cols-5 .action-btn.more,
    .gallery-grid.grid-cols-6 .action-btn.more {
        display: flex !important;
        width: 40px;
        /* Slightly larger for thumb-friendly tap on mid-size cards */
        height: 40px;
    }
}

.action-btn.delete:hover {
    background: #ef4444;
}

.item-info {
    display: none !important;
}

.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
}

.video-badge.audio-badge {
    background: #8b5cf6;
}

.video-badge.doc-badge {
    background: #3b82f6;
}

.video-badge.zip-badge {
    background: #f59e0b;
}

.selection-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s;
    z-index: 15;
    display: none;
}

.selection-active .selection-indicator {
    display: flex;
}

.gallery-item.selected {
    border: 3.5px solid #FF512F;
}

.gallery-item.selected .selection-indicator {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    box-shadow: 0 4px 12px rgba(255, 81, 47, 0.4);
}

@media (max-width: 768px) {
    .premium-action-bar {
        flex-direction: row;
        /* Keep as row */
        flex-wrap: wrap;
        /* Allow wrapping if absolutely needed, but try to fit */
        gap: 10px;
        align-items: center;
        padding: 10px;
        border-radius: 16px;
        justify-content: space-between;
        /* Space out folder and actions */
    }

    /* Adjust folder group to take less space or fit nicely */
    .folder-selection-group {
        width: auto;
        /* Don't force 100% */
        flex: 1;
        /* Take available space */
        min-width: 0;
        /* Allow shrinking */
    }

    .active-folder {
        padding: 6px 10px;
        /* Smaller padding on mobile */
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .folder-badge-count {
        display: none;
        /* Hide count on mobile to save space if needed, or keep small */
    }

    .action-toolbar-group {
        width: auto;
        padding-top: 0;
        border-top: none;
        justify-content: flex-end;
        gap: 6px;
    }

    .cleanup-link span {
        display: none;
    }

    .cleanup-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .toolbar-divider {
        display: block;
        /* Keep divider consistent */
        margin: 0;
    }

    .sticky-controls-wrapper {
        top: 0;
        padding: 10px 5px;
    }

    .bulk-action-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .bulk-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .filter-control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .type-filters {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-controls {
        width: 100%;
    }
}

.item-info {
    padding: 5px;
    text-align: center;
}

.item-name {
    font-size: 0.7rem;
    line-height: 1.2;
}

.item-size {
    font-size: 0.6rem;
}

/* Tiny Action Menu Styles */
.tiny-action-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.tiny-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tiny-menu-item:hover {
    background: #FF512F;
    color: white;
    border-color: #FF512F;
    transform: translateY(-1px);
}

.tiny-menu-item.danger {
    color: #ef4444;
    border-color: #fee2e2;
}

.tiny-menu-item.danger:hover {
    background: #ef4444;
    color: white;
}