.attached-files-display {
    margin: 25px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #0073aa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.attached-files-title {
    margin-top: 0;
    color: #1d2327;
    font-size: 1.4em;
    padding-bottom: 12px;
    border-bottom: 1px solid #dcdcde;
    display: flex;
    align-items: center;
}

.attached-files-title:before {
    content: "📎";
    margin-right: 10px;
    font-size: 1.2em;
}

.attached-files-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.attached-file-item {
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.attached-file-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0,115,170,0.1);
    transform: translateY(-1px);
}

.attached-file-item:last-child {
    margin-bottom: 0;
}

.attached-file-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1d2327;
    transition: color 0.2s;
}

.attached-file-link:hover {
    color: #0073aa;
}

.file-icon {
    margin-right: 15px;
    font-size: 1.8em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6fc;
    border-radius: 4px;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    font-size: 1.05em;
}

.file-meta {
    display: flex;
    align-items: center;
    font-size: 0.85em;
    color: #646970;
    gap: 15px;
    flex-wrap: wrap;
}

.file-size,
.file-type,
.file-date {
    display: flex;
    align-items: center;
}

.file-size:after,
.file-type:after {
    content: "•";
    margin-left: 15px;
    color: #dcdcde;
}

.file-date:after {
    content: none;
}

.download-btn {
    margin-left: 15px;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
    white-space: nowrap;
}

.attached-file-link:hover .download-btn {
    background: #005a87;
}

/* Цвета для разных типов файлов */
.file-pdf .file-icon { 
    background: #fde8e8; 
    color: #e74c3c; 
}
.file-doc .file-icon,
.file-docx .file-icon { 
    background: #e8f0fe; 
    color: #2b579a; 
}
.file-xlsx .file-icon { 
    background: #e8f6ee; 
    color: #217346; 
}
.file-rtf .file-icon { 
    background: #f3f3f3; 
    color: #666; 
}

/* Адаптивность */
@media (max-width: 768px) {
    .attached-files-display {
        padding: 20px;
    }
    
    .attached-file-link {
        flex-wrap: wrap;
    }
    
    .file-info {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .file-meta {
        gap: 10px;
    }
    
    .file-size:after,
    .file-type:after {
        margin-left: 10px;
    }
    
    .download-btn {
        margin-left: 0;
    }
}