/* ===== アカウント通知 ===== */

.an_container {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
}

/* ヘッダー行 */
.an_header {
    display: flex;
    justify-content: flex-end;
    padding: 6px 8px;
    border-bottom: 1px solid #333;
    min-height: 36px;
}

.an_mark_all_read_btn {
    padding: 4px 10px;
    font-size: 12px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: whitesmoke;
    cursor: pointer;
}
.an_mark_all_read_btn:hover {
    background: #444;
}

/* 通知リスト */
.an_list {
    flex: 1;
}

.an_loading,
.an_no_items {
    padding: 20px;
    color: #888;
    font-size: 13px;
    text-align: center;
}

/* 通知アイテム */
.an_item {
    padding: 10px 14px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: default;
}
.an_item.is-unread {
    background: #1c2433;
    border-left: 3px solid #4a8fc4;
}
.an_item:not(.is-unread) {
    border-left: 3px solid transparent;
}
.an_item.has-link {
    cursor: pointer;
}
.an_item.has-link:hover {
    background: #252525;
}
.an_item.has-link.is-unread:hover {
    background: #1e2e45;
}

.an_item_body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.an_item_content {
    font-size: 13px;
    color: whitesmoke;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.an_item:not(.is-unread) .an_item_content {
    color: #aaa;
}

.an_item_date {
    font-size: 11px;
    color: #666;
}

.an_item_mark_read_btn {
    flex-shrink: 0;
    align-self: center;
    background: none;
    border: none;
    color: #4a8fc4;
    font-size: 14px;
    cursor: pointer;
    padding: 0 6px 0 0;
    line-height: 1;
}
.an_item_mark_read_btn:hover {
    color: #6ab0e8;
}
.an_item_mark_read_btn.is-hidden {
    display: none;
}

.an_item_delete_btn {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
}
.an_item_delete_btn:hover {
    color: #e55;
}

/* ページャー */
.an_pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0;
    margin: 4px 0;
}
.an_pager_top {
    border-bottom: 1px solid #2a2a2a;
}
.an_pager.is-hidden {
    display: none;
}

.an_pager_prev_btn,
.an_pager_next_btn {
    background: none;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 4px 14px;
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
}
.an_pager_prev_btn:hover:not(:disabled),
.an_pager_next_btn:hover:not(:disabled) {
    background: #2a2a2a;
    color: whitesmoke;
}
.an_pager_prev_btn:disabled,
.an_pager_next_btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.an_pager_label {
    font-size: 12px;
    color: #888;
    min-width: 60px;
    text-align: center;
}

/* ベルアイコンラッパー（グループメッセージの gm_icon_wrapper と同パターン） */
.an_icon_wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 4px;
}

#notification_unread_badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 12px;
    height: 12px;
    background: #e55;
    color: white;
    border-radius: 10px;
    font-size: 12px;
    padding: 0 4px;
    text-align: center;
    line-height: 12px;
}
#notification_unread_badge.is-hidden {
    display: none;
}
