/* ============================================
   SIDEBAR PRO - Apple iMessage Light Design
   ============================================ */

.sidebar-pro {
    width: 264px;
    min-width: 264px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F5F5F7;
    border-right: 1px solid #E5E5EA;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    z-index: 50;
}

/* Subtle gradient overlay */
.sidebar-pro::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sidebar-pro > * {
    position: relative;
    z-index: 1;
}

/* ---- Brand Area ---- */
.sidebar-brand {
    padding: 20px 16px 16px;
    flex-shrink: 0;
}

.sidebar-brand-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 80%;
    height: 100%;
    border-radius: 10px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.sidebar-logo-icon:hover {
    transform: scale(1.05);
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #1D1D1F;
    letter-spacing: -0.3px;
    line-height: 1.2;
    white-space: nowrap;
}

.sidebar-brand-tag {
    font-size: 11px;
    font-weight: 500;
    color: #86868B;
    letter-spacing: 0.2px;
    white-space: nowrap;
    margin-top: 1px;
}

/* Toggle Button - Inline in brand header */
.sidebar-toggle-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #86868B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1D1D1F;
    border-color: rgba(0, 0, 0, 0.12);
}

.sidebar-toggle-btn i {
    font-size: 11px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Navigation ---- */
.sidebar-navigation {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 12px 12px;
}

.sidebar-navigation::-webkit-scrollbar {
    width: 4px;
}

.sidebar-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-navigation::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.sidebar-navigation::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Section */
.sidebar-section {
    margin-bottom: 8px;
}

.sidebar-section-label {
    padding: 12px 12px 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    color: #86868B;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

/* Nav Item */
.sidebar-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    text-decoration: none;
    color: #6E6E73;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    opacity: 0;
    transform: translateX(-8px);
}

.sidebar-nav-item.animate-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.15s ease, color 0.15s ease;
}

.sidebar-nav-item-left {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

/* Nav Icon */
.sidebar-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    transition: all 0.2s ease;
}

.sidebar-nav-icon i {
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

/* Hover State */
.sidebar-nav-item:hover {
    color: #1D1D1F;
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-nav-item:hover .sidebar-nav-icon {
    background: rgba(0, 0, 0, 0.05);
}

/* Active State */
.sidebar-nav-item.active {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    background: rgba(0, 122, 255, 0.12);
}

.sidebar-nav-item.active .sidebar-nav-icon.active i {
    color: #007AFF;
    filter: none;
}

/* Active Bar Indicator */
.sidebar-active-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: #007AFF;
    box-shadow: none;
    animation: barSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes barSlideIn {
    from {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 20px;
    }
}

/* Badge */
.sidebar-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #60A5FA 0%, #818CF8 100%);
    color: white;
    line-height: 1.4;
    letter-spacing: 0.2px;
    flex-shrink: 0;
}

/* ---- Footer ---- */
.sidebar-footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid #E5E5EA;
}

.sidebar-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: statusPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); }
    50% { box-shadow: 0 0 14px rgba(52, 211, 153, 0.7); }
}

.sidebar-status-text {
    font-size: 12px;
    font-weight: 500;
    color: #34C759;
    white-space: nowrap;
}

.sidebar-version {
    font-size: 11px;
    font-weight: 500;
    color: #86868B;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---- Collapsed State ---- */
.sidebar-pro.collapsed {
    width: 72px;
    min-width: 72px;
}

.sidebar-pro.collapsed .sidebar-brand-text,
.sidebar-pro.collapsed .sidebar-section-label,
.sidebar-pro.collapsed .sidebar-nav-label,
.sidebar-pro.collapsed .sidebar-badge,
.sidebar-pro.collapsed .sidebar-status-text,
.sidebar-pro.collapsed .sidebar-version {
    opacity: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

.sidebar-pro.collapsed .sidebar-brand {
    padding: 20px 12px 16px;
}

.sidebar-pro.collapsed .sidebar-brand-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sidebar-pro.collapsed .sidebar-logo {
    justify-content: center;
}

/* Rotate chevron to point right (expand direction) */
.sidebar-pro.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-pro.collapsed .sidebar-nav-item {
    justify-content: center;
    padding: 9px;
}

.sidebar-pro.collapsed .sidebar-nav-item-left {
    justify-content: center;
    gap: 0;
}

.sidebar-pro.collapsed .sidebar-footer-inner {
    justify-content: center;
}

/* Tooltip on collapsed hover */
.sidebar-pro.collapsed .sidebar-nav-item {
    position: relative;
}

.sidebar-pro.collapsed .sidebar-nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) scale(0.95);
    background: #FFFFFF;
    color: #1D1D1F;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.15s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border: 1px solid #E5E5EA;
    z-index: 100;
}

.sidebar-pro.collapsed .sidebar-nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ---- Mobile Overlay ---- */
.sidebar-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 40;
    transition: opacity 0.3s ease;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
    .sidebar-pro {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar-pro.mobile-open {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    }

    .sidebar-pro.collapsed {
        width: 264px;
        min-width: 264px;
    }

    .sidebar-pro.collapsed .sidebar-brand-text,
    .sidebar-pro.collapsed .sidebar-section-label,
    .sidebar-pro.collapsed .sidebar-nav-label,
    .sidebar-pro.collapsed .sidebar-badge,
    .sidebar-pro.collapsed .sidebar-status-text,
    .sidebar-pro.collapsed .sidebar-version {
        opacity: 1;
        width: auto;
        pointer-events: auto;
    }

    .sidebar-pro.collapsed .sidebar-nav-item {
        justify-content: space-between;
        padding: 9px 12px;
    }

    .sidebar-pro.collapsed .sidebar-nav-item-left {
        justify-content: flex-start;
        gap: 11px;
    }

    .sidebar-pro.collapsed .sidebar-brand-inner {
        justify-content: space-between;
    }

    .sidebar-toggle-btn {
        display: none;
    }
}

/* ============================================
   COMMON CARD STYLES
   ============================================ */

/* Stat card — top-row metric cards across all pages */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #D1D5DB;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 10px 24px rgba(0, 122, 255, 0.12);
    border-color: rgba(0, 122, 255, 0.25);
}

/* Content card — chart containers, detail cards, forms */
.content-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #D1D5DB;
    position: relative;
}

/* Colored top accent for stat cards */
.stat-card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card-accent.accent-blue::before   { background: #007AFF; }
.stat-card-accent.accent-green::before  { background: #34C759; }
.stat-card-accent.accent-red::before    { background: #FF3B30; }
.stat-card-accent.accent-amber::before  { background: #FF9500; }
.stat-card-accent.accent-orange::before { background: #FF6B35; }
.stat-card-accent.accent-purple::before { background: #8B5CF6; }

/* ============================================
   HEADER MODERN STYLES
   ============================================ */

.header-modern {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-top: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    position: relative;
    padding: 10px;
    color: #6B7280;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    color: #111827;
    background: #F3F4F6;
    transform: translateY(-1px);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.header-divider {
    height: 32px;
    width: 1px;
    background: #E5E7EB;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #34C759 0%, #10B981 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.25);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.35);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.user-role {
    font-size: 12px;
    color: #6B7280;
    margin-top: 1px;
}

.logout-btn {
    padding: 10px;
    color: #6B7280;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    color: #EF4444;
    background: #FEF2F2;
    transform: translateY(-1px);
}

/* ============================================
   INBOX / CHAT STYLES
   ============================================ */

/* Inbox Layout */
.inbox-container {
    display: flex;
    height: calc(100vh - 73px);
    overflow: hidden;
    background: #F2F2F7;
}

/* ---- Conversation List Panel ---- */
.inbox-list-panel {
    width: 380px;
    min-width: 380px;
    background: #FFFFFF;
    border-right: 1px solid #E5E5EA;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inbox-list-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}

.inbox-list-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.inbox-search {
    position: relative;
}

.inbox-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 13px;
    pointer-events: none;
}

.inbox-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    font-size: 14px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F9FAFB;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
}

.inbox-search-input:focus {
    border-color: #007AFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.inbox-search-input::placeholder {
    color: #9CA3AF;
}

/* Filter Tabs */
.inbox-filters {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    border-bottom: 1px solid #F3F4F6;
    flex-shrink: 0;
}

.inbox-filter-btn {
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #6B7280;
    background: transparent;
}

.inbox-filter-btn:hover {
    background: rgba(0, 122, 255, 0.06);
    color: #007AFF;
}

.inbox-filter-btn.active {
    background: #007AFF;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.inbox-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    margin-left: 4px;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
}

.inbox-filter-btn.active .inbox-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

/* Conversation List */
.inbox-conversations {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.inbox-conversations::-webkit-scrollbar {
    width: 4px;
}

.inbox-conversations::-webkit-scrollbar-track {
    background: transparent;
}

.inbox-conversations::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Conversation Item */
.inbox-conversation-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #F9FAFB;
    position: relative;
}

.inbox-conversation-item:hover {
    background: #F9FAFB;
}

.inbox-conversation-item.active {
    background: rgba(0, 122, 255, 0.06);
}

.inbox-conversation-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #007AFF;
}

.inbox-conversation-item.unread {
    background: rgba(0, 122, 255, 0.03);
}

.inbox-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
    position: relative;
}

.inbox-avatar-online::after {
    content: '';
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #34C759;
    border: 2.5px solid #FFFFFF;
    border-radius: 50%;
}

.inbox-conversation-body {
    flex: 1;
    min-width: 0;
}

.inbox-conversation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.inbox-conversation-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inbox-conversation-item.unread .inbox-conversation-name {
    font-weight: 700;
    color: #000000;
}

.inbox-conversation-time {
    font-size: 12px;
    color: #9CA3AF;
    flex-shrink: 0;
    margin-left: 8px;
}

.inbox-conversation-item.unread .inbox-conversation-time {
    color: #007AFF;
    font-weight: 600;
}

.inbox-conversation-preview {
    font-size: 13px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.inbox-conversation-item.unread .inbox-conversation-preview {
    color: #374151;
    font-weight: 500;
}

.inbox-conversation-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inbox-unread-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007AFF;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.inbox-message-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.inbox-message-type.imessage {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

.inbox-message-type.sms {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

/* ---- Chat View Panel ---- */
.inbox-chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    min-width: 0;
}

/* Chat Header */
.inbox-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #E5E5EA;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.inbox-chat-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inbox-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
}

.inbox-chat-contact-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.inbox-chat-contact-info {
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inbox-chat-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inbox-chat-status-dot.online {
    background: #34C759;
    box-shadow: 0 0 6px rgba(52, 199, 89, 0.4);
}

.inbox-chat-status-dot.offline {
    background: #D1D5DB;
}

.inbox-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inbox-chat-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.inbox-chat-action-btn:hover {
    background: #F3F4F6;
    color: #111827;
    transform: translateY(-1px);
}

/* Chat Messages Area */
.inbox-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #F9FAFB;
}

.inbox-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.inbox-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.inbox-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* Date Separator */
.inbox-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 12px;
}

.inbox-date-separator span {
    font-size: 11.5px;
    font-weight: 600;
    color: #9CA3AF;
    background: #F9FAFB;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* Message Bubbles */
.inbox-message-row {
    display: flex;
    margin-bottom: 2px;
}

.inbox-message-row.sent {
    justify-content: flex-end;
}

.inbox-message-row.received {
    justify-content: flex-start;
}

.inbox-message-bubble {
    max-width: 65%;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
}

.inbox-message-row.sent .inbox-message-bubble {
    background: #007AFF;
    color: #FFFFFF;
    border-bottom-right-radius: 6px;
}

.inbox-message-row.sent.sms .inbox-message-bubble {
    background: #34C759;
}

.inbox-message-row.received .inbox-message-bubble {
    background: #E9E9EB;
    color: #1D1D1F;
    border-bottom-left-radius: 6px;
}

/* Consecutive message from same sender - adjust border radius */
.inbox-message-row.sent + .inbox-message-row.sent .inbox-message-bubble {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.inbox-message-row.received + .inbox-message-row.received .inbox-message-bubble {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

/* Last message in sequence restores bottom radius */
.inbox-message-row.sent:last-child .inbox-message-bubble,
.inbox-message-row.sent:not(:has(+ .inbox-message-row.sent)) .inbox-message-bubble {
    border-bottom-right-radius: 6px;
}

.inbox-message-row.received:last-child .inbox-message-bubble,
.inbox-message-row.received:not(:has(+ .inbox-message-row.received)) .inbox-message-bubble {
    border-bottom-left-radius: 6px;
}

.inbox-message-time {
    font-size: 11px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inbox-message-row.sent .inbox-message-time {
    color: rgba(255, 255, 255, 0.7);
    justify-content: flex-end;
}

.inbox-message-row.received .inbox-message-time {
    color: #9CA3AF;
    justify-content: flex-start;
}

.inbox-message-status {
    font-size: 10px;
}

/* "Read 8:31 PM" receipt under the most recent read outbound message */
.inbox-read-receipt {
    font-size: 11px;
    font-weight: 600;
    color: #8E8E93;
    text-align: right;
    margin: 2px 4px 6px 0;
    letter-spacing: 0.1px;
}

/* Media in Message Bubbles */
.inbox-message-media {
    margin: -4px -8px 4px -8px;
    border-radius: 14px;
    overflow: hidden;
}

.inbox-message-media img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    border-radius: 14px;
    cursor: pointer;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.03);
}

.inbox-message-media video {
    display: block;
    max-width: 100%;
    max-height: 300px;
    border-radius: 14px;
    background: #000;
}

.inbox-message-media audio {
    display: block;
    width: 100%;
    min-width: 220px;
    margin-top: 2px;
}

.inbox-message-row.sent .inbox-message-media audio {
    filter: brightness(2);
}

.inbox-message-bubble.has-media {
    padding: 6px 8px 6px 8px;
    overflow: hidden;
}

.inbox-message-bubble.has-media .inbox-message-text {
    padding: 2px 8px 0 8px;
}

/* Lightbox overlay for full-size image preview */
.inbox-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.inbox-media-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* Chat Input Area */
.inbox-chat-input-area {
    position: relative;
    padding: 14px 24px 18px;
    border-top: 1px solid #EEF0F3;
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.6), #FFFFFF 40%);
    flex-shrink: 0;
    --composer-accent: #007AFF;
    --composer-accent-dark: #0062CC;
    --composer-accent-soft: rgba(0, 122, 255, 0.12);
}

/* SMS chats: green accent, like Messages */
.inbox-chat-input-area.sms {
    --composer-accent: #34C759;
    --composer-accent-dark: #248A3D;
    --composer-accent-soft: rgba(52, 199, 89, 0.14);
}

.inbox-chat-input-wrapper {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 10px 10px 8px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inbox-chat-input-wrapper:focus-within {
    border-color: var(--composer-accent);
    box-shadow: 0 0 0 4px var(--composer-accent-soft), 0 6px 20px rgba(15, 23, 42, 0.06);
}

.inbox-chat-textarea {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    resize: none;
    min-height: 24px;
    max-height: 160px;
    line-height: 1.5;
    padding: 4px 6px 8px 0;
    font-family: inherit;
}

.inbox-chat-textarea::placeholder {
    color: #A1A7B3;
}

.inbox-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-left: -6px;
}

.inbox-chat-input-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 0;
}

.inbox-input-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #8A93A3;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.inbox-input-action-btn:hover,
.inbox-input-action-btn.active {
    color: var(--composer-accent);
    background: var(--composer-accent-soft);
}

.inbox-input-action-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.inbox-input-action-btn.emoji:hover,
.inbox-input-action-btn.emoji.active {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.12);
}

.inbox-composer-divider {
    width: 1px;
    height: 18px;
    background: #E5E7EB;
    margin: 0 8px 0 6px;
}

.inbox-composer-transport {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--composer-accent);
    background: var(--composer-accent-soft);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.inbox-composer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.inbox-composer-hint {
    font-size: 11.5px;
    color: #A1A7B3;
    white-space: nowrap;
}

.inbox-composer-hint kbd {
    font-family: inherit;
    font-size: 10.5px;
    padding: 1px 5px;
    border-radius: 5px;
    border: 1px solid #E5E7EB;
    border-bottom-width: 2px;
    background: #F9FAFB;
    color: #6B7280;
}

.inbox-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: none;
    background: #E5E7EB;
    color: #FFFFFF;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Lights up once there's something to send */
.inbox-send-btn.ready,
.inbox-voice-recorder .inbox-send-btn {
    background: linear-gradient(135deg, var(--composer-accent), var(--composer-accent-dark));
    box-shadow: 0 4px 12px var(--composer-accent-soft), 0 2px 4px rgba(15, 23, 42, 0.08);
}

.inbox-send-btn.ready:hover,
.inbox-voice-recorder .inbox-send-btn:hover {
    transform: translateY(-1px) scale(1.04);
}

.inbox-send-btn.ready:active,
.inbox-voice-recorder .inbox-send-btn:active {
    transform: scale(0.95);
}

.inbox-send-btn.ready i {
    animation: inboxSendPop 0.25s ease-out;
}

@keyframes inboxSendPop {
    from { transform: scale(0.6) rotate(-20deg); }
    to { transform: scale(1) rotate(0); }
}

.inbox-send-btn:disabled {
    background: #D1D5DB;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ---- Emoji Picker ---- */
.inbox-emoji-anchor {
    position: relative;
}

.inbox-emoji-picker {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    z-index: 50;
    width: 340px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: inboxEmojiIn 0.16s ease-out;
    transform-origin: bottom left;
}

@keyframes inboxEmojiIn {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.inbox-emoji-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 8px 0;
    border-bottom: 1px solid #F1F2F4;
}

.inbox-emoji-tab {
    flex: 1;
    height: 34px;
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 14px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease, background 0.15s ease;
}

.inbox-emoji-tab:hover:not(:disabled) {
    color: #374151;
    background: #F9FAFB;
}

.inbox-emoji-tab.active {
    color: #007AFF;
}

.inbox-emoji-tab.active::after {
    content: '';
    position: absolute;
    left: 25%;
    right: 25%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #007AFF;
}

.inbox-emoji-tab:disabled {
    opacity: 0.35;
    cursor: default;
}

.inbox-emoji-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9CA3AF;
    padding: 10px 14px 4px;
}

.inbox-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 2px 8px 10px;
    max-height: 232px;
    overflow-y: auto;
}

.inbox-emoji-item {
    aspect-ratio: 1;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, background 0.12s ease;
}

.inbox-emoji-item:hover {
    background: #F3F4F6;
    transform: scale(1.18);
}

.inbox-emoji-item:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .inbox-chat-input-area {
        padding: 10px 12px 12px;
    }

    .inbox-composer-hint,
    .inbox-composer-divider,
    .inbox-composer-transport {
        display: none !important;
    }

    .inbox-emoji-picker {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 96px;
        width: auto;
    }
}

/* ---- Attachment Preview (chat input) ---- */
.inbox-attachment-preview {
    margin-bottom: 10px;
}

.inbox-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 6px 10px 6px 6px;
    max-width: 100%;
}

.inbox-attachment-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E5E7EB;
    color: #6B7280;
}

.inbox-attachment-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inbox-attachment-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-attachment-size {
    font-size: 12px;
    color: #9CA3AF;
    flex-shrink: 0;
}

.inbox-attachment-chip button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.inbox-attachment-chip button:hover {
    background: #E5E7EB;
    color: #EF4444;
}

/* ---- Voice Note: mic button (chat input) ---- */
.inbox-input-action-btn.mic:hover {
    color: #FF3B30;
    background: rgba(255, 59, 48, 0.07);
}

/* ---- Voice Note: recorder bar (replaces the input while recording / previewing) ---- */
.inbox-voice-recorder {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(255, 59, 48, 0.35);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.08), 0 6px 20px rgba(15, 23, 42, 0.05);
    animation: inboxVoiceIn 0.18s ease-out;
}

.inbox-voice-recorder.preview {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.35);
}

@keyframes inboxVoiceIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.inbox-voice-rec-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
    transition: all 0.15s ease;
}

.inbox-voice-rec-btn.cancel {
    background: transparent;
    color: #9CA3AF;
}

.inbox-voice-rec-btn.cancel:hover {
    background: rgba(255, 59, 48, 0.08);
    color: #FF3B30;
}

.inbox-voice-rec-btn.stop {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

.inbox-voice-rec-btn.stop:hover {
    background: rgba(255, 59, 48, 0.18);
}

.inbox-voice-rec-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border-radius: 14px;
    background: #F9FAFB;
}

.inbox-voice-recorder.preview .inbox-voice-rec-body {
    background: rgba(0, 122, 255, 0.06);
}

.inbox-voice-rec-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF3B30;
    flex-shrink: 0;
    animation: inboxRecPulse 1.2s ease-in-out infinite;
}

@keyframes inboxRecPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.45); }
    50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(255, 59, 48, 0); }
}

.inbox-voice-rec-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #007AFF;
    color: #FFFFFF;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.inbox-voice-rec-play:hover {
    transform: scale(1.08);
}

.inbox-voice-rec-wave {
    flex: 1;
    min-width: 0;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    overflow: hidden;
}

.inbox-voice-recorder.preview .inbox-voice-rec-wave {
    justify-content: space-between;
    cursor: pointer;
}

.inbox-voice-rec-wave span {
    flex: 0 0 3px;
    min-height: 3px;
    border-radius: 2px;
    background: rgba(255, 59, 48, 0.75);
    transition: height 0.08s linear, background-color 0.1s linear;
}

.inbox-voice-recorder.preview .inbox-voice-rec-wave span {
    background: rgba(0, 122, 255, 0.3);
}

.inbox-voice-recorder.preview .inbox-voice-rec-wave span.played {
    background: #007AFF;
}

.inbox-voice-rec-time {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 34px;
    text-align: right;
}

.inbox-voice-rec-hint {
    font-size: 11.5px;
    color: #9CA3AF;
    margin: 6px 0 0 16px;
}

/* ---- Voice Note: player inside message bubbles ---- */
.inbox-voice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 2px 4px;
    min-width: 220px;
    max-width: 280px;
}

.inbox-voice-play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #007AFF;
    color: #FFFFFF;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.inbox-voice-play:hover {
    transform: scale(1.07);
}

.inbox-voice-play .fa-play {
    margin-left: 2px;
}

.inbox-voice-wave {
    flex: 1;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    cursor: pointer;
}

.inbox-voice-wave span {
    flex: 0 0 3px;
    border-radius: 2px;
    background: rgba(60, 60, 67, 0.25);
    transition: background-color 0.1s linear;
}

.inbox-voice-wave span.played {
    background: #007AFF;
}

.inbox-voice-time {
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
}

.inbox-voice-time a {
    color: inherit;
}

/* Sent (blue / green) bubbles: invert the palette */
.inbox-message-row.sent .inbox-voice-play {
    background: #FFFFFF;
    color: #007AFF;
}

.inbox-message-row.sent.sms .inbox-voice-play {
    color: #34C759;
}

.inbox-message-row.sent .inbox-voice-wave span {
    background: rgba(255, 255, 255, 0.4);
}

.inbox-message-row.sent .inbox-voice-wave span.played {
    background: #FFFFFF;
}

.inbox-message-row.sent .inbox-voice-time {
    color: rgba(255, 255, 255, 0.85);
}

.inbox-voice-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    padding: 0 8px 2px 6px;
}

/* ---- New Conversation dialog ---- */
.inbox-newchat-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.inbox-newchat-overlay.open {
    opacity: 1;
}

.inbox-newchat-card {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 2px 8px rgba(15, 23, 42, 0.06);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.inbox-newchat-overlay.open .inbox-newchat-card {
    transform: translateY(0) scale(1);
}

.inbox-newchat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 22px 18px;
}

.inbox-newchat-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.inbox-newchat-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.2px;
}

.inbox-newchat-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

.inbox-newchat-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #F3F4F6;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.inbox-newchat-close:hover {
    background: #E5E7EB;
    color: #111827;
}

.inbox-newchat-body {
    padding: 0 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.inbox-newchat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.inbox-newchat-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inbox-newchat-line {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    background: #FFFFFF;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.inbox-newchat-line:hover {
    border-color: #BFDBFE;
    background: #F8FAFF;
}

.inbox-newchat-line.selected {
    border-color: #007AFF;
    background: rgba(0, 122, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
}

.inbox-newchat-line.static {
    cursor: default;
    background: #F9FAFB;
    border-color: transparent;
}

.inbox-newchat-line-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(52, 199, 89, 0.12);
    color: #34C759;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inbox-newchat-line-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-newchat-line-number {
    font-size: 12.5px;
    color: #6B7280;
}

.inbox-newchat-line-check {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.inbox-newchat-line.selected .inbox-newchat-line-check {
    background: #007AFF;
    border-color: #007AFF;
    color: #FFFFFF;
}

.inbox-newchat-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 0 14px;
    background: #F9FAFB;
    transition: all 0.15s ease;
}

.inbox-newchat-field:focus-within {
    border-color: #007AFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.inbox-newchat-field.invalid {
    border-color: #FF3B30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.08);
}

.inbox-newchat-field > i {
    color: #9CA3AF;
    font-size: 14px;
}

.inbox-newchat-field input,
.inbox-newchat-field textarea {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111827;
    padding: 12px 0;
    font-family: inherit;
}

.inbox-newchat-field textarea {
    resize: none;
    line-height: 1.45;
    min-height: 96px;
}

.inbox-newchat-field.textarea {
    align-items: flex-start;
}

.inbox-newchat-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 6px;
    min-height: 16px;
}

.inbox-newchat-hint.ok {
    color: #34C759;
}

.inbox-newchat-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 59, 48, 0.08);
    color: #D70015;
    font-size: 13px;
}

.inbox-newchat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px 22px;
}

.inbox-newchat-shortcut {
    font-size: 12px;
    color: #9CA3AF;
}

.inbox-newchat-shortcut kbd {
    font-family: inherit;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    color: #6B7280;
}

.inbox-newchat-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.inbox-newchat-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.inbox-newchat-btn.secondary {
    background: #F3F4F6;
    color: #374151;
}

.inbox-newchat-btn.secondary:hover {
    background: #E5E7EB;
}

.inbox-newchat-btn.primary {
    background: linear-gradient(135deg, #007AFF, #0062CC);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.inbox-newchat-btn.primary:hover {
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
    transform: translateY(-1px);
}

.inbox-newchat-btn.primary:disabled {
    background: #D1D5DB;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 640px) {
    .inbox-newchat-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .inbox-newchat-card {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        transform: translateY(40px);
    }

    .inbox-newchat-shortcut {
        display: none;
    }

    .inbox-newchat-actions {
        width: 100%;
    }

    .inbox-newchat-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ---- Empty / Placeholder State ---- */
.inbox-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F9FAFB;
    text-align: center;
    padding: 40px;
}

.inbox-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(0, 122, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.inbox-empty-icon i {
    font-size: 32px;
    color: #007AFF;
}

.inbox-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.inbox-empty-subtitle {
    font-size: 14px;
    color: #6B7280;
    max-width: 280px;
    line-height: 1.5;
}

/* ---- Typing Indicator ---- */
.inbox-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.inbox-typing-dots {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #E9E9EB;
    padding: 10px 16px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
}

.inbox-typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9CA3AF;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.inbox-typing-dots span:nth-child(1) { animation-delay: 0s; }
.inbox-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.inbox-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ---- Mobile Responsive ---- */
@media (max-width: 768px) {
    .inbox-list-panel {
        width: 100%;
        min-width: 100%;
    }

    .inbox-chat-panel {
        display: none;
    }

    .inbox-container.chat-open .inbox-list-panel {
        display: none;
    }

    .inbox-container.chat-open .inbox-chat-panel {
        display: flex;
    }

    .inbox-chat-back-btn {
        display: flex !important;
    }

    .inbox-message-bubble {
        max-width: 82%;
    }
}

@media (min-width: 769px) {
    .inbox-chat-back-btn {
        display: none !important;
    }
}

/* ============================================
   SETTINGS PAGE STYLES
   ============================================ */

/* Settings Layout */
.settings-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px;
}

/* Settings Nav Tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    background: #FFFFFF;
    padding: 6px;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
    margin-bottom: 28px;
    overflow-x: auto;
}

.settings-tab {
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #6B7280;
    background: transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-tab:hover {
    background: rgba(0, 122, 255, 0.06);
    color: #007AFF;
}

.settings-tab.active {
    background: #007AFF;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.settings-tab i {
    font-size: 14px;
}

/* Settings Section */
.settings-section {
    margin-bottom: 28px;
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.settings-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.settings-section-subtitle {
    font-size: 13px;
    color: #6B7280;
    margin-top: 2px;
}

/* Settings Card */
.settings-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Profile Avatar */
.settings-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 30px;
    color: white;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.settings-profile-avatar:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* Form Row */
.settings-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Settings Field */
.settings-field {
    margin-bottom: 20px;
}

.settings-field:last-child {
    margin-bottom: 0;
}

.settings-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.1px;
}

.settings-input {
    width: 100%;
    padding: 11px 16px;
    font-size: 14.5px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F9FAFB;
    color: #111827;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.settings-input:focus {
    border-color: #007AFF;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.settings-input:disabled,
.settings-input[readonly] {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
}

.settings-input.error {
    border-color: #FF3B30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.settings-field-error {
    font-size: 12px;
    color: #FF3B30;
    margin-top: 4px;
    display: none;
}

.settings-field-hint {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Settings Info Row */
.settings-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #F3F4F6;
}

.settings-info-row:last-child {
    border-bottom: none;
}

.settings-info-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.settings-info-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.settings-info-desc {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 1px;
}

.settings-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Settings Badge */
.settings-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.settings-badge.green {
    background: #D1FAE5;
    color: #065F46;
}

.settings-badge.blue {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

.settings-badge.amber {
    background: #FEF3C7;
    color: #92400E;
}

.settings-badge.red {
    background: #FEE2E2;
    color: #991B1B;
}

.settings-badge.gray {
    background: #F3F4F6;
    color: #6B7280;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #F3F4F6;
}

.settings-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.settings-btn-primary {
    background: #007AFF;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.settings-btn-primary:hover:not(:disabled) {
    background: #0066CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.settings-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.settings-btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.settings-btn-secondary:hover:not(:disabled) {
    background: #E5E7EB;
    transform: translateY(-1px);
}

.settings-btn-danger {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.settings-btn-danger:hover:not(:disabled) {
    background: #FEE2E2;
    border-color: #FCA5A5;
    transform: translateY(-1px);
}

.settings-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Password Strength */
.settings-password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.settings-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    transition: background 0.3s ease;
}

.settings-strength-bar.weak { background: #FF3B30; }
.settings-strength-bar.medium { background: #FF9500; }
.settings-strength-bar.strong { background: #34C759; }

/* ========================================
   Professional Page Loader
   ======================================== */

#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    overflow: hidden;
}

#pageLoader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animated background particles */
#pageLoader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.loader-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.loader-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.loader-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Spinning ring around logo */
.loader-ring {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 3px solid transparent;
    border-top-color: #a855f7;
    border-right-color: #ec4899;
    border-radius: 50%;
    animation: ringRotate 1.5s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Outer pulse ring */
.loader-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulseRing {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Progress bar */
.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 50%, #a855f7 100%);
    background-size: 200% 100%;
    animation: progressLoad 2s ease-in-out infinite;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes progressLoad {
    0% { width: 0%; background-position: 0% 50%; }
    50% { width: 70%; background-position: 100% 50%; }
    100% { width: 100%; background-position: 200% 50%; }
}

.loader-text {
    margin-top: 25px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.loader-subtext {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

/* Dots animation */
.loader-dots {
    display: inline-flex;
    margin-left: 4px;
}

.loader-dots span {
    width: 4px;
    height: 4px;
    margin: 0 2px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.settings-strength-text {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* Danger Zone */
.settings-danger-zone {
    border: 1px solid #FECACA;
    border-radius: 20px;
    overflow: hidden;
}

.settings-danger-header {
    background: #FEF2F2;
    padding: 16px 24px;
    border-bottom: 1px solid #FECACA;
}

.settings-danger-title {
    font-size: 15px;
    font-weight: 700;
    color: #DC2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #FEE2E2;
}

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

.settings-danger-item-text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.settings-danger-item-text p {
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 2px;
}

/* Settings Skeleton / Loading */
.settings-skeleton {
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Plan Card */
.settings-plan-card {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border-radius: 20px;
    padding: 28px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.settings-plan-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.settings-plan-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.settings-plan-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.settings-plan-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.settings-plan-limits {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.settings-plan-limit {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.settings-plan-limit-value {
    font-size: 20px;
    font-weight: 700;
}

.settings-plan-limit-label {
    font-size: 11px;
    opacity: 0.75;
    margin-top: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }

    .settings-tabs {
        gap: 2px;
        padding: 4px;
    }

    .settings-tab {
        padding: 8px 14px;
        font-size: 12.5px;
    }

    .settings-form-row {
        grid-template-columns: 1fr;
    }

    .settings-plan-limits {
        grid-template-columns: 1fr;
    }

    .settings-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 20px;
    }

    .settings-actions {
        flex-direction: column;
        padding: 16px 20px;
    }

    .settings-actions .settings-btn {
        width: 100%;
        justify-content: center;
    }

    .settings-danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    .header-title {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 12px;
    }
}

/* ---- Group chats ---- */
.inbox-avatar.group,
.inbox-chat-avatar.group {
    color: #FFFFFF;
    font-size: 16px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.inbox-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #5856D6;
    background: rgba(88, 86, 214, 0.1);
    padding: 1px 7px;
    border-radius: 999px;
    vertical-align: middle;
    letter-spacing: 0.2px;
}

.inbox-chat-contact-info .inbox-group-pill {
    font-size: 11.5px;
    padding: 2px 8px;
    cursor: default;
}

.inbox-group-rename-btn {
    border: none;
    background: transparent;
    color: #9CA3AF;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 2px;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
    transition: color 0.15s, background 0.15s;
}

.inbox-group-rename-btn:hover {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.08);
}

.inbox-preview-sender {
    font-weight: 600;
    color: #4B5563;
}

/* Member name above the first bubble of each run in a group thread */
.inbox-message-sender {
    font-size: 11.5px;
    font-weight: 600;
    margin: 10px 0 3px 14px;
    letter-spacing: 0.1px;
}

/* ---- New Conversation: recipient chips ---- */
.inbox-newchat-field.chips {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: text;
}

.inbox-newchat-field.chips input {
    min-width: 160px;
    padding: 6px 0;
}

.inbox-newchat-chips {
    display: contents;
}

.inbox-newchat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 4px 4px 10px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.1);
    color: #0062CC;
    font-size: 13px;
    font-weight: 500;
    animation: inboxChipIn 0.15s ease-out;
}

.inbox-newchat-chip button {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
}

.inbox-newchat-chip button:hover {
    opacity: 1;
    background: rgba(0, 122, 255, 0.15);
}

@keyframes inboxChipIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
