/**
 * File Icon Styles
 * Styling cho file icons hiển thị trên site
 */

/* File icon display containers */
.file-icon,
.file-icon-display,
.result-icon,
.file-detail-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

/* Size variations */
.file-icon-sm,
.file-icon.file-icon-sm {
    width: 24px;
    height: 24px;
}

.file-icon-md,
.file-icon.file-icon-md {
    width: 32px;
    height: 32px;
}

.file-icon-lg,
.file-icon.file-icon-lg {
    width: 48px;
    height: 48px;
}

/* Icon images */
.file-icon img,
.file-icon-display img,
.result-icon img,
.file-detail-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Bootstrap icon colors */
.file-icon i,
.file-icon-display i {
    font-size: 20px;
}

.file-icon.file-icon-lg i,
.file-icon-display.file-icon-lg i {
    font-size: 32px;
}

.file-icon.file-icon-sm i,
.file-icon-display.file-icon-sm i {
    font-size: 16px;
}

/* Result card icon styling */
.result-card .result-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.result-card .result-icon {
    width: 48px;
    height: 48px;
}

/* File detail icon styling */
.file-detail-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    border: 1px solid #e0e0e0;
    background: white;
}

.file-detail-icon img {
    max-width: 90%;
    max-height: 90%;
}

/* File card icon styling */
.file-card .file-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    margin-right: 0;
}

/* Hover effects */
.result-card:hover .result-icon {
    background: #e9ecef;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.file-card:hover .file-icon {
    background: #e9ecef;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Icon fallback - default styling */
.file-icon[style*="display: flex"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-detail-icon {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    
    .result-card .result-icon {
        width: 40px;
        height: 40px;
    }
}
