/* NESTMATE — assets/css/inbox.css */

/* ── Swipe container ── */
.inbox-swipe-wrap  { border-radius: 14px; margin-bottom: 8px; position: relative; overflow: hidden; }
.inbox-swipe-inner { position: relative; transition: transform .25s cubic-bezier(.32,.72,0,1); z-index: 2; touch-action: pan-y; user-select: none; }

/* ── Delete reveal ── */
.delete-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: var(--red); border-radius: 0 14px 14px 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; gap: 4px; cursor: pointer; z-index: 1; }

/* ── Message card ── */
.inbox-msg { background: var(--card); border-radius: 14px; border: .5px solid var(--bdr); position: relative; box-shadow: 0 1px 6px rgba(0,0,0,.04); overflow: hidden; }
.inbox-msg.unread { border-color: rgba(29,158,117,.3); }
.inbox-msg.unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--cb); border-radius: 3px 0 0 3px; }
.inbox-msg.read { background: var(--card); }
.inbox-msg.cancelled { background: #F9F9F9; }

/* ── Header row ── */
.inbox-msg-hdr { padding: 11px 13px; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.inbox-msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cb); flex-shrink: 0; margin-top: 4px; transition: opacity .2s; }
.inbox-msg.read .inbox-msg-dot     { opacity: 0; }
.inbox-msg.cancelled .inbox-msg-dot { opacity: 0; }

/* ── Text ── */
.inbox-msg-content { flex: 1; min-width: 0; }
.inbox-msg-title   { font-size: 14px; font-weight: 600; color: var(--txt); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-msg.read .inbox-msg-title      { font-weight: 500; color: var(--txt2); }
.inbox-msg.cancelled .inbox-msg-title { font-weight: 500; color: var(--txt3); text-decoration: line-through; }
.inbox-msg-preview { font-size: 13px; color: var(--txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-msg.cancelled .inbox-msg-preview { color: var(--txt3); }
.inbox-msg.expanded .inbox-msg-preview  { display: none; }
.inbox-msg-time    { font-size: 11px; color: var(--txt3); flex-shrink: 0; margin-top: 1px; }

/* ── Chevron ── */
.inbox-chev { font-size: 9px; color: var(--txt3); margin-left: 3px; display: inline-block; transition: transform .25s; }

/* ── Expand body ── */
.inbox-msg-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease, padding .28s ease;
    padding: 0 13px 0 55px;
    font-size: 14px; color: var(--txt2); line-height: 1.65;
    background: rgba(29,158,117,.04);
    border-top: 0 solid transparent;
}
.inbox-msg.expanded .inbox-msg-body {
    max-height: 200px;
    padding: 10px 13px 12px 55px;
    border-top: .5px solid rgba(29,158,117,.12);
}

/* ── Cancelled / responded tags ── */
.cancelled-tag {
    display: inline-flex; align-items: center; gap: 3px;
    background: #F2F2F7; border: .5px solid rgba(0,0,0,.1);
    border-radius: 99px; padding: 2px 6px;
    font-size: 8px; font-weight: 600; color: var(--txt3);
    margin-left: 4px; vertical-align: middle; text-decoration: none;
}

/* ── Filter tabs ── */
.inbox-tab { padding: 7px 15px; border-radius: 99px; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; border: none; font-family: inherit; transition: all .18s; }
.inbox-tab.active   { background: var(--cb); color: #fff; }
.inbox-tab.inactive { background: var(--card); color: var(--txt2); border: .5px solid var(--bdr); }

/* ── Priority modifiers ── */
.inbox-msg.priority-high   { border-left: 3px solid #F59E0B !important; border-color: rgba(245,158,11,.4); }
.inbox-msg.priority-urgent { border-left: 3px solid #FF3B30 !important; border-color: rgba(255,59,48,.4); }
.inbox-msg.priority-high::before   { background: #F59E0B; }
.inbox-msg.priority-urgent::before { background: #FF3B30; }
