/* Floating Container */
.wdsc-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Chat Bubble */
.wdsc-bubble {
    display: flex;
    align-items: center;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.wdsc-bubble:hover {
    transform: scale(1.05);
}
.wdsc-bubble-text {
    margin-right: 10px;
    font-weight: 500;
}
.wdsc-bubble-icon {
    width: 24px;
    height: 24px;
}

/* Chat Panel */
.wdsc-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.wdsc-header {
    background: #000;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wdsc-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.wdsc-close {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Screen Areas */
.wdsc-screen {
    flex: 1;
    overflow-y: auto;
}

/* Welcome Screen */
.wdsc-intro {
    padding: 20px;
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}
#wdsc-auth-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#wdsc-auth-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}
#wdsc-auth-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
#wdsc-auth-form button:hover {
    opacity: 0.8;
}

/* Chat Area */
.wdsc-messages-area {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fdfdfd;
}
.wdsc-msg {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}
.wdsc-msg-visitor {
    background: #000;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.wdsc-msg-agent, .wdsc-msg-system {
    background: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.wdsc-msg-system {
    font-size: 12px;
    color: #666;
    background: none;
    align-self: center;
    text-align: center;
}

/* Input Area */
.wdsc-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}
#wdsc-chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
}
#wdsc-chat-send {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
