@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.dya-ai-wrapper, .dya-ai-wrapper * {
    box-sizing: border-box;
    font-family: 'Inter', sans-serif !important;
}

.dya-ai-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 99px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.dya-ai-toggle:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.dya-ai-box {
    position: fixed;
    right: 20px;
    bottom: 78px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 480px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.2s ease;
}

.dya-ai-box.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dya-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #0f172a;
    color: #ffffff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    font-size: 14px;
}

.dya-ai-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.dya-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.5;
}

.dya-msg {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 88%;
}

.dya-msg.user {
    background: #0f172a;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.dya-msg.assistant {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.dya-ai-list {
    margin: 6px 0 0 0;
    padding-left: 16px;
}

.dya-ai-list li {
    margin-bottom: 6px;
}

.dya-ai-list a {
    color: #2563eb;
    text-decoration: none;
}

.dya-ai-list a:hover {
    text-decoration: underline;
}

.dya-ai-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.dya-ai-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.dya-ai-input:focus {
    border-color: #2563eb;
}

.dya-ai-send {
    padding: 0 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.dya-ai-send:hover {
    background: #1d4ed8;
}

@media (max-width: 480px) {
    .dya-ai-box {
        right: 10px;
        left: 10px;
        width: auto;
        height: 420px;
    }
}
