/* ===== Messages page restyle: seamless look ===== */

/* Global background: light aqua -> white gradient (chat section is white) */
html, body {
    background: linear-gradient(to bottom,
        #d3f9f5 0%,
        #eafdfb 32%,
        #ffffff 70%,
        #ffffff 100%);
}

.app-container {
    background: linear-gradient(to bottom,
        #d3f9f5 0%,
        #eafdfb 32%,
        #ffffff 70%,
        #ffffff 100%);
    min-height: 100vh;
    min-height: 100dvh;
}



/* Header */
.message-header {
    background: transparent;
    padding: 24px 16px 12px;
    padding-top: calc(24px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    position: relative;
}





.header-left {
    display: flex;
    gap: 16px;
    z-index: 10;
}

.header-icon-btn {
    background: none;
    border: none;
    padding: 0;
    color: #1f2937;
}

.header-icon-btn .material-symbols-rounded {
    font-size: 24px;
}

.header-center {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.page-title {
    font-size: 20px;
    font-weight: 800;
    color: #8b5cf6;
    position: relative;
    pointer-events: auto;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 5px;
    background: #8b5cf6;
    border-radius: 10px;
}

/* Categories: icon circles with a soft glow */
.category-tabs {
    display: flex;
    justify-content: space-around;
    padding: 20px 8px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-icon-wrapper {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-badge {
    position: absolute;
    top: -4px;
    right: -4px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;

    border: 2px solid rgba(255, 255, 255, 0.9);
}


/* Recreate the radial glow from the screenshot */
.category-icon-wrapper.pink { background: radial-gradient(circle, #ffd6e7 0%, #ffeaf3 100%); }
.category-icon-wrapper.blue { background: radial-gradient(circle, #e0f7ff 0%, #f0fbff 100%); }
.category-icon-wrapper.purple { background: radial-gradient(circle, #f3e5f5 0%, #f9f2fa 100%); }
.category-icon-wrapper.orange { background: radial-gradient(circle, #fff3e0 0%, #fffaf2 100%); }

.category-icon-wrapper .material-symbols-rounded {
    font-size: 34px;
    font-variation-settings: 'FILL' 1;
}

.category-icon-wrapper.pink .material-symbols-rounded { color: #ff3d71; }
.category-icon-wrapper.blue .material-symbols-rounded { color: #00b8d9; }
.category-icon-wrapper.purple .material-symbols-rounded { color: #8b5cf6; }
.category-icon-wrapper.orange .material-symbols-rounded { color: #ffab00; }

.category-label {
    font-size: 14px;
    color: #000000;
    font-weight: 500;
}

/* Call request area: near-white background for smooth transition */
.call-request-section {
    padding: 10px 16px 20px;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 24px;
}

.call-request-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.eye-icon-circle {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, #ffd6e7 0%, #ffeaf3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 61, 113, 0.1);
}

.eye-icon-circle .material-symbols-rounded {
    color: #ff3d71;
    font-size: 36px;
    font-variation-settings: 'FILL' 1;
}

.call-text {
    font-size: 15px;
    color: #000000;
    font-weight: 600;
}

/* Chat list container: white panel "floating" over the gradient */
.main-content-container {
    background: #ffffff;
    border-radius: 30px 30px 0 0;
    flex: 1;
    min-height: 50vh;
    padding-top: 10px;
    box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.06);
}


.list-tabs {
    display: flex;
    justify-content: flex-start;
    padding: 8px 16px 16px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.list-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.list-tab-item {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: #9ca3af;
    padding: 4px 0;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.list-tab-item.active {
    color: #111827;
}

.list-tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 4px;
    background: #ff7e67;
    border-radius: 10px;
}

/* Chat item tweaks */
.chat-list {
    padding: 0 16px;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    position: relative;
}

.chat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(100% - 68px);
    height: 1px;
    background-color: #f1f3f5;
}

.avatar-container {
    margin-right: 14px;
}

.chat-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.chat-name {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.gender-female {
    font-size: 16px;
    color: #ff3d71;
    font-variation-settings: 'FILL' 1;
}

.gender-male {
    font-size: 16px;
    color: #3b82f6;
    font-variation-settings: 'FILL' 1;
}

.online-status {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
}

.online-status.offline {
    color: #9ca3af;
}


.chat-preview {
    font-size: 15px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-meta {
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 52px;
}


.chat-time {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

/* Bottom nav icon fix */
.nav-item.active .material-symbols-rounded {
    font-variation-settings: 'FILL' 1;
}

/* Empty state */
.message-empty {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 0;
    color: #9ca3af;
}

.message-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #6b7280;
}

.message-empty-sub {
    margin-top: 6px;
    font-size: 13px;
}

/* Unread badge: aligned to the right (per screenshot) */
.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;
    padding: 0 7px;

    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}


.chat-item.has-unread .chat-preview {
    color: #111827;
    font-weight: 600;
}

/* ===== Category overlay (Comments / Likes / Notices / Follows) ===== */
.category-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 2500;

    display: flex;
    flex-direction: column;

    background: linear-gradient(to bottom,
        #d3f9f5 0%,
        #eafdfb 32%,
        #ffffff 70%,
        #ffffff 100%);

    padding-bottom: 70px; /* Avoid bottom navigation */
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
}


.category-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 16px 12px;
}

.overlay-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;
    padding: 0 10px;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(17, 24, 39, 0.06);
}

.overlay-btn .material-symbols-rounded {
    font-size: 22px;
    color: #111827;
}

.overlay-clear {
    font-size: 13px;
    font-weight: 800;
    color: #ef4444;
}

.category-overlay-body {
    flex: 1;
    padding: 0 16px 16px;
    overflow-y: auto;
}

.notif-loading {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-weight: 600;
}

.notif-empty {
    text-align: center;
    padding: 50px 0;
    color: #9ca3af;
}

.notif-empty-title {
    font-size: 16px;
    font-weight: 800;
    color: #6b7280;
}

.notif-empty-sub {
    margin-top: 6px;
    font-size: 13px;
}

.notif-list {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    position: relative;
}

.notif-item::after {
    content: '';
    position: absolute;
    left: 68px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f1f3f5;
}

.notif-item:last-child::after {
    display: none;
}

.notif-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.notif-text {
    font-size: 14px;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-item.is-unread .notif-text {
    color: #111827;
    font-weight: 600;
}

.notif-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 60px;
}

.notif-time {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.follow-list {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.follow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    position: relative;
}

.follow-item::after {
    content: '';
    position: absolute;
    left: 68px;
    right: 0;
    bottom: 0;
    height: 1px;
    background: #f1f3f5;
}

.follow-item:last-child::after {
    display: none;
}

.follow-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.follow-body {
    flex: 1;
    min-width: 0;
}

.follow-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.follow-sub {
    font-size: 13px;
    color: #22c55e;
    font-weight: 600;
}

.follow-action {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
}






