/* HelpBot Widget Styles */
#helpbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

#helpbot-toggle {
    background-color: var(--accent-color);
    color: #0f172a;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#helpbot-toggle:hover {
    transform: translateY(-2px);
    background-color: var(--accent-hover);
}

#helpbot-panel {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 6rem);
    max-width: calc(100vw - 4rem);
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s, height 0.3s, top 0.3s, bottom 0.3s;
}

#helpbot-panel.large {
    top: 20px;
    right: 20px;
    bottom: 20px;
    width: min(720px, calc(100vw - 40px));
    height: auto;
    max-height: none;
}

#helpbot-header {
    background-color: #0f172a;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#helpbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.helpbot-controls {
    display: flex;
    gap: 0.5rem;
}

.helpbot-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.helpbot-btn:hover {
    color: white;
}

#helpbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.message {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message-bot {
    background-color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message-user {
    background-color: var(--accent-color);
    color: #0f172a;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#helpbot-quick {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quick-btn {
    background: #334155;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    color: #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.quick-btn:hover {
    background: #475569;
}

#helpbot-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#helpbot-input {
    flex: 1;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: white;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
}

#helpbot-send {
    background: var(--accent-color);
    color: #0f172a;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    cursor: pointer;
    font-weight: 700;
}

.helpbot-footer {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(0,0,0,0.1);
}

.helpbot-footer a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #helpbot-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    #helpbot-panel {
        bottom: 4.5rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        height: calc(100vh - 7rem);
        max-height: none;
    }

    #helpbot-panel.large {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        height: auto;
        max-height: none;
    }
}
