/* Files Grid Styles */

.fg-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.fg-file-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.fg-file-item:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

.fg-file-item[data-type="folder"]:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
}

.fg-file-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fg-file-item:hover .fg-file-checkbox {
    opacity: 1;
}

.fg-file-checkbox input {
    display: none;
}

.fg-file-checkbox label {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: block;
    position: relative;
}

.fg-file-checkbox input:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.fg-file-checkbox input:checked + label::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fg-file-icon {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
}

.fg-file-icon i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.8);
}

.fg-file-item[data-type="folder"] .fg-file-icon i {
    color: var(--primary-color);
}

.fg-folder-overlay {
    position: absolute;
    bottom: -4px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.fg-file-info {
    text-align: center;
}

.fg-file-name {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fg-file-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fg-folder-info {
    color: rgba(79, 172, 254, 0.8);
}

.fg-file-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fg-file-item:hover .fg-file-actions {
    opacity: 1;
}

.fg-file-action-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.fg-file-action-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Empty State */
.fg-empty-state {
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 20px;
}

.fg-empty-state i {
    display: block;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .fg-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .fg-file-item {
        padding: 12px;
    }
    
    .fg-file-icon i {
        font-size: 36px;
    }
}