/*------------------------------------------------------------------
[App Inbox Page CSS]

Template:       DashQ - Multipurpose Bootstrap 5 HTML Admin & Dashboard Template
Version:        1.0.0
Last change:    06 April, 2026
-------------------------------------------------------------------*/
.inbox-body .mail-list-pane {
    width: 340px;
}

.inbox-body .offcanvas {
    height: 100% !important;
}

/* SIDEBAR ------------------------------------------------ */
.mail-sidebar {
    padding: 1.1rem 1rem 1.1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.label-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    display: inline-block;
}

/* LIST PANE --------------------------------------------- */
.mail-list-pane {
    border-right: 1px solid var(--app-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mail-list-header {
    padding: .6rem 1rem;
}

.mail-search-row {
    padding: .41rem 1rem;
    border-bottom: 1px solid var(--app-border);
}

.search-thread {
    border-radius: 999px;
    font-size: .82rem;
    padding-block: .4rem;
}

.mail-item {
    border-bottom: 1px solid var(--app-border);
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

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

.mail-item.active,
.mail-item:hover {
    background: rgba(var(--bs-primary-rgb), .15);
}

.mail-item-unread .mail-item-title {
    font-weight: 600;
}

.mail-item-unread .mail-item-subject {
    font-weight: 500;
}

.mail-item-main {
    flex: 1;
    min-width: 0;
}

.mail-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mail-item-snippet {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-dot {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    flex-shrink: 0;
}

/* DETAIL PANE ------------------------------------------- */
.mail-detail-header {
    padding: .85rem 1.4rem .65rem;
    border-bottom: 1px solid var(--app-border);
}

.tag-pill {
    border-radius: 999px;
    background-color: var(--bs-primary);
    padding: .15rem .65rem;
    font-size: .72rem;
    text-transform: capitalize;
}

@media (max-width: 991.98px) {
    .mail-list-pane {
        border-inline: none;
    }

    .inbox-body .mail-detail-pane {
        display: none !important;
    }

    .inbox-body,
    .inbox-body .mail-list-pane {
        width: 100%;
    }

    .inbox-body .mail-detail-pane {
        position: fixed;
        left: 0;
        top: 0;
        background: var(--bs-card-bg);
        height: 100%;
        overflow-y: auto;
    }

    .inbox-body .mail-detail-pane.open {
        display: block !important;
        z-index: 9999;
    }
}

@media (max-width: 1200px) {
    .inbox-body {
        min-width: 100%
    }
}

@media (min-width: 992px) { 
    .mail-detail-pane,
    .mail-detail-body{
        height: 100%;
    }
}

@media (min-width: 1200px) {
    .glass-effect .inbox-body {
        background: rgba(var(--bs-card-bg-rgb), .1);
    }

    .inbox-body {
        background: rgba(var(--bs-card-bg-rgb), 1);
    }

    .mail-detail-body {
        height: 100%;
    }

    .mail-list-pane,
    .mail-detail-header,
    .mail-item {
        border-color: var(--bs-border-color);
    }
}

/* New Message modal ------------------------------------------- */
.email-card .pill {
    background: rgba(var(--bs-primary-rgb), .1);
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px;
}

.email-card .pill:hover {
    background: rgba(var(--bs-primary-rgb), 1);
    color: var(--bs-white);
}

.email-card .pill i {
    cursor: pointer;
}

.email-card textarea {
    height: 260px;
    resize: vertical;
}