* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: #f4f7f6; color: #333; overflow-x: hidden; }

/* Navbar & Tables */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background: #2c3e50; color: white; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { color: white; text-decoration: none; cursor: pointer; }
main { padding: 40px 5%; min-height: 80vh; }
table { width: 100%; border-collapse: collapse; background: white; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-radius: 8px; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #3498db; color: white; }

/* Chat Button */
#chat-toggle-btn {
    position: fixed !important;
    right: 25px !important;
    bottom: 25px !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: #3498db !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px !important; /* This keeps the icon perfectly sized inside */
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4) !important;
    transition: transform 0.2s ease;
}

#chat-toggle-btn:hover {
    transform: scale(1.05);
}

#chat-toggle-btn img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Chat Window */
#chat-window {
    position: fixed; right: 25px; bottom: 100px;
    width: 380px; height: 600px;
    background: white; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex; flex-direction: column;
    z-index: 9999; overflow: hidden;
}

.chat-header {
    background: #2c3e50; color: white; padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
}

#close-chat {
    background: none; border: none; color: white;
    font-size: 30px; cursor: pointer; padding: 0 5px;
    pointer-events: auto !important;
}

#typebot-frame { flex-grow: 1; height: 100%; width: 100%; background: #fff; }
#typebot-frame iframe { width: 100%; height: 100%; border: none; }

/* Toggle Class */
.hidden { display: none !important; }