/* =========================
   Chatbot Button Styles
   ========================= */
.chatbot-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 8rem;
    height: 3rem;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ac8211 0%, #2a2a2a 100%);
    color: white;
    border: none;
    border-radius: 13px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    z-index: 2000;
}

.chatbot-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================
   Chatbox Container Styles
   ========================= */
.chatbox {
    position: fixed;
    right: 20px;
    bottom: calc(2rem + 40px);
    width: 340px;
    min-width: 220px;
    max-width: 340px;
    height: 500px;
    max-height: 60vh;
    display: none;
    flex-direction: column;
    background: linear-gradient(145deg, #242424 0%, #2a2a2a 100%);
    border: 1px solid rgba(233, 185, 52, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 1000;
}

/* =========================
   Chatbox Header Styles
   ========================= */
.chatbox-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: center;    
    padding: 10px;
    background: linear-gradient(145deg, #ac8211 0%, #2a2a2a 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border-radius: 12px 12px 0 0;
}

.chatbox-close {
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
}

.chatbox-svg-close path {
    stroke: white;
    transition: stroke 0.2s;
}

.chatbox-svg-close:hover path {
    stroke: #f75555;
}

/* =========================
   Chat Content Styles
   ========================= */
.chatbox-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem; 
    height: calc(100% - 80px);
    overflow-y: auto;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 0.75rem 1rem;
    background: linear-gradient(145deg, #2a2a2a 0%, #333333 100%);
    color: #fff;
    border: 1px solid rgba(233, 185, 52, 0.1);
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    font-size: 1rem;
    word-break: break-word;
}

.chat-bubble.bot {
    background: linear-gradient(145deg, #242424 0%, #2a2a2a 100%);
    color: white;
    align-self: flex-start;
}

.chat-bubble.user {
    background: linear-gradient(145deg, #ac8211 0%, #2a2a2a 100%);
    color: #fff;
    align-self: flex-end;
}

.chat-bubble .bot-name {
    font-weight: bold;
}

.bot-name{
    color: #ac8211;
}

/* =========================
   User Options Styles
   ========================= */
.user-options {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.user-option-btn {
    width: 60%;
    align-self: end;
    padding: 0.6rem 1rem;
    background: linear-gradient(145deg, #242424 0%, #2a2a2a 100%);
    color: #e9b934;
    border: 1px solid rgba(233, 185, 52, 0.1);
    border-radius: 13px;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s;
}

.user-option-btn:hover {
    background: linear-gradient(145deg, #ac8211 0%, #2a2a2a 100%);
    color: #fff;
}

/* =========================
   Notification Styles
   ========================= */
.notification-popup {
    position: fixed;
    bottom: 40px;
    right: calc(10px + 8rem + 20px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #666;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1900;
    transition: background-color 0.2s;
}

.notification-popup:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.popup-message {
    color: #333;
    font-size: 0.95rem;
}

.popup-close {
    padding: 0 4px;
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #e62d2d;
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 500px) {
    .chatbot-btn {
        width: 3rem;
        height: 3rem;
        bottom: 40px;
        right: 10px;
        border-radius: 50%;
    }

    .chatbot-label {
        display: none;
    }

    .chatbox {
        right: 0;
        left: 0;
        width: 100vw;
        height: 95vh;
        margin: 0 auto;
        bottom: calc(3rem + 40px);
        min-width: unset;
        max-width: 100vw;
        border-radius: 0;
    }

    .notification-popup {
        right: -5px;
        left: 10px;
        bottom: 40px;
        width: calc(100% - 80px);
        max-width: 300px;
        margin: 0 auto;
        padding: 10px 12px;
        justify-content: space-between;
    }

    .popup-message {
        font-size: 0.9rem;
        flex: 1;
        margin-right: 8px;
    }

    .popup-close {
        padding: 0 0 0 8px;
        flex-shrink: 0;
    }
}