
/* Attachments List */
.attachments-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
}

.attachment-item {
    display: flex;
    align-items: flex-start;
    padding: var(--spacing-medium);
    background-color: var(--color-background-alt);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-border);
    transition: all 0.15s;
}

.attachment-item:hover {
    background-color: #f9fafb;
    box-shadow: var(--shadow-default);
}

.attachment-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius-medium);
    margin-right: var(--spacing-medium);
    font-size: 1.5rem;
    color: var(--color-brand);
}

.attachment-item__icon .fa-file-image {
    color: #10b981;
}

.attachment-item__icon .fa-file-pdf {
    color: #ef4444;
}

.attachment-item__icon .fa-file-word {
    color: #2563eb;
}

.attachment-item__icon .fa-file-excel {
    color: #10b981;
}

.attachment-item__info {
    flex: 1;
    min-width: 0;
}

.attachment-item__name {
    font-weight: 600;
    margin-bottom: var(--spacing-x-small);
    word-break: break-word;
}

.attachment-item__name a {
    color: var(--color-brand);
    text-decoration: none;
}

.attachment-item__name a:hover {
    text-decoration: underline;
}

.attachment-item__meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-x-small);
    font-size: 0.75rem;
    color: var(--color-text-weak);
    margin-bottom: var(--spacing-x-small);
}

.attachment-item__description {
    font-size: 0.875rem;
    color: var(--color-text-weak);
    margin-top: var(--spacing-x-small);
}

.attachment-item__actions {
    display: flex;
    gap: var(--spacing-x-small);
    margin-left: var(--spacing-medium);
}

.attachment-item__actions .action-button {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-primary);
    border-radius: var(--border-radius-small);
    transition: all 0.15s;
}

.attachment-item__actions .action-button:hover {
    background: var(--color-primary);
    color: white;
}

.attachment-item__actions .action-button.destructive {
    color: var(--color-error);
}

.attachment-item__actions .action-button.destructive:hover {
    background: var(--color-error);
    color: white;
}

.attachment-preview-link {
    color: var(--color-brand);
    text-decoration: none;
}

.attachment-preview-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .attachment-item {
        flex-direction: column;
    }
    
    .attachment-item__icon {
        margin-right: 0;
        margin-bottom: var(--spacing-small);
    }
    
    .attachment-item__actions {
        margin-left: 0;
        margin-top: var(--spacing-small);
        width: 100%;
        justify-content: flex-end;
    }
}
