/* Floating button */
#htt-chat-btn {
    position: fixed; bottom: 25px; right: 25px;
    background: #6C63FF; color: #fff; border: 0;
    padding: 14px 18px; border-radius: 999px;
    font-size: 16px; cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
    z-index: 9999;
}
#htt-chat-btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 22px rgba(0,0,0,.3); }

/* Overlay */
.htt-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
}
.htt-overlay-content {
    background: #fff; padding: 28px; border-radius: 14px; width: 95%; max-width: 420px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25); text-align: center;
}
.htt-overlay-content h2 { margin: 0 0 8px; font-size: 22px; }
.htt-helper { margin: 6px 0 12px; color: #666; font-size: 13px; }
.htt-input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 10px; margin-bottom: 12px; font-size: 15px; }
.htt-options { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.htt-session, .htt-cancel {
    background: #6C63FF; color: #fff; border: none; padding: 12px 16px; border-radius: 10px; cursor: pointer;
    transition: background .2s ease; font-size: 15px;
}
.htt-session:hover { background: #574BFF; }
.htt-cancel { background: #999; }
.htt-cancel:hover { background: #777; }

/* Chat box */
#htt-chat-box {
    position: fixed; bottom: 90px; right: 25px; width: 340px; max-width: calc(100% - 50px);
    background: #fff; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.3);
    display: flex; flex-direction: column; overflow: hidden; z-index: 9999;
}
#htt-chat-header {
    background: #6C63FF; color: #fff; padding: 12px 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center;
}
#htt-timer { font-weight: 400; opacity: .9; }
#htt-chat-messages {
    background: #f5f6fb; padding: 12px; height: 260px; overflow-y: auto;
}
.htt-msg { max-width: 78%; padding: 8px 12px; border-radius: 14px; margin: 6px 0; word-wrap: break-word; }
.htt-msg.me   { background: #6C63FF; color: #fff; margin-left: auto; }
.htt-msg.them { background: #e9e9f6; color: #333; margin-right: auto; }
#htt-chat-messages::-webkit-scrollbar { width: 6px; }
#htt-chat-messages::-webkit-scrollbar-thumb { background: #c7c7e6; border-radius: 3px; }

.htt-input-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #eee; }
#htt-chat-input {
    flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 14px;
}
#htt-send-btn {
    background: #6C63FF; color: #fff; border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
#htt-send-btn:hover { background: #574BFF; }

/* Admin (therapist dashboard) */
#htt-live-chats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.htt-admin-chat-card {
    background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.htt-admin-messages {
    background: #f5f6fb; padding: 10px; height: 200px; overflow-y: auto; border-radius: 10px; margin-top: 10px;
}
.htt-empty { padding: 20px; background: #fff; border: 1px dashed #ccc; border-radius: 12px; }
