/* ============================================
   FILE UPLOAD STYLES
   Стили для загрузки файлов и анализа файлов
   ============================================ */

/* File Upload Button in Chat Input */
.file-upload-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    opacity: 0.3;
    flex-shrink: 0;
}

.file-upload-btn:hover {
    opacity: 1;
}

.file-upload-btn:active {
    opacity: 0.8;
}

.file-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* File Analysis Card */
.file-analysis-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.file-analysis-card.analyzing {
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) padding-box,
                linear-gradient(45deg, #ffffff, #cccccc, #888888, #ffffff) border-box;
    background-size: 200% 200%;
    animation: gradientBorder 2s linear infinite;
}

.file-analysis-card.completed {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.file-analysis-card.failed {
    border: 1px solid rgba(128, 128, 128, 0.5);
    background: rgba(64, 64, 64, 0.1);
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.file-analysis-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-analysis-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.file-analysis-format {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

.file-analysis-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

