.attachmentSection-container {
    margin: 20px 0;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachmentSection-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e5e9;
    border-radius: 8px 8px 0 0;
}

.attachmentSection-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #495057;
}

.attachmentSection-add-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    background: #fafbfc;
}

.attachmentSection-btn-add-file {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-file:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.upload-section {
    margin-top: 12px;
    padding: 16px;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
}

.btn-cancel {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
}

.attachments-list {
    padding: 8px 0;
}

.attachmentSection-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.attachmentSection-item:hover {
    background-color: #f8f9fa;
}

.attachmentSection-item:last-child {
    border-bottom: none;
}

.attachmentSection-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attachmentSection-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.attachmentSection-file-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.attachmentSection-file-details {
    flex: 1;
    min-width: 0;
}

.attachmentSection-file-name {
    display: block;
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 2px;
    word-break: break-word;
}

.attachmentSection-file-name:hover {
    text-decoration: underline;
}

.attachmentSection-file-meta {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.3;
}

.attachmentSection-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.attachmentSection-btn-download,
.attachmentSection-btn-preview {
    background: none;
    border: 1px solid #dee2e6;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover,
.btn-preview:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.image-preview {
    margin-top: 12px;
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    animation: slideDown 0.3s ease;
}

.image-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.show-more-controls {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid #f1f3f4;
    background: #fafbfc;
}

.attachmentSection-btn-show-more,
.attachmentSection-btn-show-less {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.attachmentSection-btn-show-more:hover,
.attachmentSection-btn-show-less:hover {
    background: #e7f3ff;
    color: #0056b3;
}

@keyframes attachmentSectionSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .attachmentSection-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .attachmentSection-actions {
        align-self: flex-end;
    }

    .attachmentSection-container {
        margin: 16px 0;
    }

    .attachmentSection-header,
    .attachmentSection-add-section,
    .attachmentSection-item {
        padding-left: 16px;
        padding-right: 16px;
    }
}