/**
 * Notes - Attachments Row
 *
 * Styles for the note attachments row, paperclip icon,
 * attachment links, and icon button wrapper.
 */

/* Attachments Row */
.note-attachments-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    margin-top: 8px;
}

/* Separator when attachments/backlinks are placed below the note content */
.noteentry ~ .note-attachments-row,
.noteentry ~ .note-attachment-previews,
.noteentry ~ .backlinks-row {
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin-top: 12px;
    padding-top: 22px;
    margin-bottom: 10px;
}

.lucide-paperclip.icon_attachment {
    font-size: 14px;
    margin-right: 14px;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}

.note-attachments-list {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.note-attachments-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Attachment Link */
.attachment-link {
    color: #007DB8 !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 2px 4px;
    white-space: nowrap;
}

.attachment-link:hover {
    color: #005a8b !important;
    text-decoration: underline;
}

.attachment-link:visited {
    color: #007DB8 !important;
}

/* Paperclip icon button wrapper */
.icon-attachment-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.icon-attachment-btn:focus {
    outline: 2px solid rgba(0, 125, 184, 0.25);
    outline-offset: 2px;
    border-radius: 4px;
}
