/* C-Chatbot Styles */
:root {
    --c-gold: #bfa75d;
    --c-black: #050505;
    --c-dark-gray: #1a1a1a;
    --c-text: #ffffff;
    --c-gold-light: #e6c875;
}

#c-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    /* background-color: var(--c-black); */
    /* border: 1px solid var(--c-gold); */
    border: 1px solid;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: none; /* Hidden by default */
    flex-direction: column;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    z-index: 9999;
    overflow: hidden;
    animation: cFadeIn 0.3s ease-in-out;
}

@keyframes cFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#c-chat-header {
    /* background: linear-gradient(90deg, #000, #111); */
    /* color: var(--c-gold); */
    padding: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    /* border-bottom: 1px solid var(--c-gold); */
    border-bottom: 1px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.c-chat-logo {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

#c-chat-close, #c-chat-home {
    background: none;
    border: none;
    /* color: var(--c-gold); */
    font-size: 20px;
    cursor: pointer;
}

#c-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    overflow-y: hidden;
    /* background-color: var(--c-dark-gray);
    background-image: radial-gradient(circle at center, #222 1px, transparent 1px); */
    background-size: 20px 20px;
}

#c-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Scrollbar styling */
#c-chat-messages::-webkit-scrollbar {
    width: 6px;
}
#c-chat-messages::-webkit-scrollbar-thumb {
    /* background-color: var(--c-gold); */
    border-radius: 3px;
}

.c-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.c-message.bot {
    /* background-color: #000; */
    /* color: var(--c-gold); */
    /* border: 1px solid var(--c-gold); */
    border: 1px solid;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

.c-message.user {
    /* background-color: var(--c-gold); */
    /* color: #000; */
    font-weight: bold;
    border-bottom-right-radius: 2px;
    align-self: flex-end;
}

.c-option-btn {
    background-color: transparent;
    /* border: 1px solid var(--c-gold); */
    border: 1px solid;
    /* color: var(--c-gold); */
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    margin: 2px 0;
    text-align: left;
    display: inline-block;
    width: auto;
    box-sizing: border-box;
}

.c-option-btn:hover {
    /* background-color: var(--c-gold); */
    color: black;
}

.c-option-container {
    display: flex;
    /* flex-direction: column; */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    animation: cFadeIn 0.3s ease;
}

#c-chat-input-area {
    margin-top: 10px;
    padding-top: 10px;
    /* border-top: 1px solid rgba(191, 167, 93, 0.3); */
    display: flex;
    gap: 5px;
}

#c-chat-input {
    flex: 1;
    /* background: #000; */
    /* border: 1px solid #444; */
    color: white;
    padding: 8px;
    border-radius: 4px;
    outline: none;
}

#c-chat-input:focus {
    /* border-color: var(--c-gold); */
}

#c-chat-send {
    /* background: var(--c-gold); */
    /* color: black; */
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Toggle Button */
#c-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* background: linear-gradient(135deg, var(--c-gold), var(--c-gold-light)); */
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(191, 167, 93, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.2s;
}

#c-chat-toggle:hover {
    transform: scale(1.05);
}

#c-chat-toggle .icon {
    font-size: 20px;
}

#c-chat-toggle .text {
    font-weight: bold;
    /* color: black; */
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #c-chat-widget {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 60vh;
    }
}
