/* BIN SVG Icons Styling */

/* Base BIN icon styles */
.file-icon-svg[viewBox="0 0 1047 1024"] {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    fill: #040000;
    transition: all 0.2s ease;
}

/* Specific BIN icon styles for search results */
.search-result-item .file-icon-svg[viewBox="0 0 1047 1024"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* BIN icon styles for file tree */
.file-tree .file-icon-svg[viewBox="0 0 1047 1024"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* BIN icon styles for preview section */
.preview-section .file-icon-svg[viewBox="0 0 1047 1024"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Hover effects for BIN icons */
.search-result-item:hover .file-icon-svg[viewBox="0 0 1047 1024"],
.file-tree-item:hover .file-icon-svg[viewBox="0 0 1047 1024"] {
    fill: #333333;
    transform: scale(1.05);
}

/* Active state for BIN icons */
.search-result-item.active .file-icon-svg[viewBox="0 0 1047 1024"],
.file-tree-item.active .file-icon-svg[viewBox="0 0 1047 1024"] {
    fill: #007cba;
}

/* Loading animation for BIN icons */
@keyframes bin-icon-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.loading .file-icon-svg[viewBox="0 0 1047 1024"] {
    animation: bin-icon-pulse 1.5s ease-in-out infinite;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .search-result-item .file-icon-svg[viewBox="0 0 1047 1024"] {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }
    
    .preview-section .file-icon-svg[viewBox="0 0 1047 1024"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .file-icon-svg[viewBox="0 0 1047 1024"] {
        fill: #e0e0e0;
    }
    
    .search-result-item:hover .file-icon-svg[viewBox="0 0 1047 1024"],
    .file-tree-item:hover .file-icon-svg[viewBox="0 0 1047 1024"] {
        fill: #ffffff;
    }
    
    .search-result-item.active .file-icon-svg[viewBox="0 0 1047 1024"],
    .file-tree-item.active .file-icon-svg[viewBox="0 0 1047 1024"] {
        fill: #4fc3f7;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .file-icon-svg[viewBox="0 0 1047 1024"] {
        fill: #000000;
        stroke: #000000;
        stroke-width: 0.5px;
    }
    
    @media (prefers-color-scheme: dark) {
        .file-icon-svg[viewBox="0 0 1047 1024"] {
            fill: #ffffff;
            stroke: #ffffff;
        }
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .file-icon-svg[viewBox="0 0 1047 1024"] {
        transition: none;
    }
    
    .loading .file-icon-svg[viewBox="0 0 1047 1024"] {
        animation: none;
    }
    
    .search-result-item:hover .file-icon-svg[viewBox="0 0 1047 1024"],
    .file-tree-item:hover .file-icon-svg[viewBox="0 0 1047 1024"] {
        transform: none;
    }
}

/* Focus styles for accessibility */
.search-result-item:focus .file-icon-svg[viewBox="0 0 1047 1024"],
.file-tree-item:focus .file-icon-svg[viewBox="0 0 1047 1024"] {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .file-icon-svg[viewBox="0 0 1047 1024"] {
        fill: #000000 !important;
        width: 12px !important;
        height: 12px !important;
    }
}