
:root {
    --bot-primary: #3f8854;
    --bot-secondary: #f4f6f8;
    --bot-text: #333333;
    --bot-white: #ffffff;
}

#ai-bot-toggle {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--bot-primary);
    color: var(--bot-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(63, 136, 84, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}

#ai-bot-toggle:hover {
    transform: scale(1.1);
}

#ai-bot-window {
    position: fixed;
    bottom: 160px;
    right: 25px;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: var(--bot-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-family: inherit; 
}

#ai-bot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.bot-header {
    background: var(--bot-white);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.bot-header-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 12px;
}

.bot-action-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.bot-action-btn:hover {
    color: var(--bot-primary);
}

.bot-header-logo {
    width: 50px;
    height: 50px;
    background: var(--bot-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.bot-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--bot-text);
    font-weight: 600;
}

.bot-header p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.bot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bot-secondary);
    display: flex;
    flex-direction: column;
    gap: 15px;
    scroll-behavior: smooth;
}

.bot-message-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bot-message-wrapper.user {
    align-items: flex-end;
}

.bot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.bot-message.ai {
    background: var(--bot-white);
    color: var(--bot-text);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.bot-message.user {
    background: var(--bot-primary);
    color: var(--bot-white);
    border-bottom-right-radius: 4px;
}

.bot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-action-btn {
    background: #e8f3ec;
    color: var(--bot-primary);
    border: 1px solid #d1e6da;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #d1e6da;
    color: var(--bot-primary);
    text-decoration: none;
}

/* Custom Styles for Nameservers & Forms */
.code-block-wrapper {
    background: #f4f6f8;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
}
.code-block-wrapper code {
    color: #d63384;
    font-family: monospace;
    font-size: 13px;
}
.copy-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}
.copy-btn:hover { color: var(--bot-primary); }

.bot-form {
    width: 100%;
    margin-top: 10px;
}
.bot-form-group {
    margin-bottom: 10px;
}
.bot-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}
.bot-form-submit {
    background: var(--bot-primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}
.bot-form-submit:hover {
    background: #2c683e;
}

@media (max-width: 480px) {
    #ai-bot-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }
}