/* DBPC.ir - Claude Chat Widget Styles */

#dbpc-chat-button {
    position: fixed;
    bottom: 24px;
    left: 24px; /* برای سایت فارسی، گوشه پایین چپ - اگه خواستی راست کن: left رو حذف کن و right: 24px بذار */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    font-size: 26px;
}

#dbpc-chat-button:hover {
    transform: scale(1.06);
}

#dbpc-chat-window {
    position: fixed;
    bottom: 96px;
    left: 24px;
    width: 360px;
    max-width: 92vw;
    height: 500px;
    max-height: 75vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
    direction: rtl;
    font-family: Tahoma, "Vazirmatn", sans-serif;
}

#dbpc-chat-window.dbpc-open {
    display: flex;
}

#dbpc-chat-header {
    background: #2563eb;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: bold;
}

#dbpc-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

#dbpc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7fb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dbpc-msg {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.dbpc-msg.user {
    align-self: flex-start;
    background: #2563eb;
    color: #fff;
    border-bottom-left-radius: 2px;
}

.dbpc-msg.bot {
    align-self: flex-end;
    background: #fff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-right-radius: 2px;
}

.dbpc-msg.typing {
    align-self: flex-end;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #9ca3af;
    font-style: italic;
}

#dbpc-chat-inputbar {
    display: flex;
    border-top: 1px solid #e5e7eb;
    padding: 10px;
    gap: 8px;
    background: #fff;
}

#dbpc-chat-input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13.5px;
    resize: none;
    font-family: inherit;
    outline: none;
}

#dbpc-chat-input:focus {
    border-color: #2563eb;
}

#dbpc-chat-send {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: bold;
}

#dbpc-chat-send:disabled {
    opacity: 0.5;
    cursor: default;
}
