/**
 * Breadcrumb Chat Dropdown
 * Include this CSS for the chat dropdown in unified-nav
 */

/* Chat button in nav - subtle, blends with breadcrumb */
.nav-chat {
    position: relative;
}
.nav-chat-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.nav-chat-btn:hover {
    color: #1e293b;
}
/* Unread badge - red with white text */
.nav-chat-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Dropdown panel */
.nav-chat-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 320px;
    max-width: calc(100vw - 20px);
    background: linear-gradient(180deg, #e8f6f6 0%, #f2fafa 100%);
    border: 1px solid #b8e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 1000;
}
.nav-chat-dropdown.open {
    display: flex;
}

/* Header */
.nav-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #2EB8B8;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}
.nav-chat-header-buttons {
    display: flex;
    gap: 4px;
}
.nav-chat-header-buttons button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-chat-header-buttons button:hover {
    background: rgba(255,255,255,0.35);
}

/* Messages area */
.nav-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}
.nav-chat-empty {
    color: #6b9a9a;
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
}
.nav-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
    background: rgba(255,255,255,0.7);
    padding: 8px 10px;
    border-radius: 8px;
}
.nav-chat-msg .name {
    color: #1a7a7a;
    font-weight: 600;
    flex-shrink: 0;
}
.nav-chat-msg .text {
    color: #374151;
    word-break: break-word;
    flex: 1;
}
.nav-chat-msg .delete {
    opacity: 0.6;
    background: #f1f5f9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0 6px;
    margin-left: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.nav-chat-msg:hover .delete {
    opacity: 1;
    background: #fee2e2;
    color: #dc2626;
}
.nav-chat-msg .delete:hover {
    background: #ef4444;
    color: white;
}

/* Input area */
.nav-chat-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #b8e0e0;
    background: rgba(255,255,255,0.5);
    border-radius: 0 0 8px 8px;
}
.nav-chat-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #b8e0e0;
    border-radius: 16px;
    font-size: 0.85rem;
    background: white;
}
.nav-chat-input input:focus {
    outline: none;
    border-color: #2EB8B8;
}
.nav-chat-input button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #2EB8B8;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}
.nav-chat-input button:hover {
    background: #259595;
}

/* Click outside to close */
.nav-chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}
.nav-chat-overlay.open {
    display: block;
}
