/* Floating Chat Box Styles */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s, opacity 0.3s;
}

#chat-window.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

#chat-header {
    background: rgba(0, 212, 255, 0.1);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header h4 {
    margin: 0;
    color: var(--neon-blue);
    font-size: 1.1rem;
}

#chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-bubble.admin {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-bubble.client {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #e0e0e0;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.chat-bubble .meta {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
    text-align: right;
}

#chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 0.5rem;
}

#chat-input-area input {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    padding: 0.8rem;
    border-radius: 20px;
    color: white;
    font-family: 'Inter', sans-serif;
}

#chat-input-area input:focus {
    outline: none;
    border-color: var(--neon-blue);
}

#chat-input-area button {
    background: var(--neon-blue);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin Panel specific chat list */
#admin-chat-view {
    height: 400px;
    overflow-y: auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}
