.aizen-chat-launcher {
    position: fixed;
    bottom: 35px;
    right: 24px;
    width: 88px;
    height: 88px;
    cursor: pointer;
    z-index: 999999;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #fff;
    background: #06063c;
}

.aizen-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: blur(15px);
}

.aizen-bg-svg svg {
    animation: rotate-bg 4s linear infinite;
}

@keyframes rotate-bg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.aizen-buttons {
    display: flex;
    width: 100%;
    align-items: center;
}

.aizen-file-hint span {
    color: #949393;
    font-size: 16px;
    margin-left: 12px;
}

.aizen-chat-launcher:hover {
    box-shadow: 0 0 22px rgba(22, 41, 214, 0.45);
}

.aizen-chat-launcher {
    transition: box-shadow 0.3s ease;
}

.aizen-bg-svg svg {
    width: 100%;
    height: 100%;
}

.aizen-launcher-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.aizen-launcher-content svg {
    width: 28px;
    height: 28px;
}

.aizen-launcher-content span {
    color: #fefefe;
}

.aizen-chat-modal {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
}

.aizen-chat-header {
    padding: 24px 24px 0;
    font-size: 20px;
    font-weight: 500;
    font-family: "DM Sans", sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.aizen-chat-header span {
    flex: 1;
}

.aizen-chat-close {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        background 0.25s ease,
        border-radius 0.25s ease;
}

@media screen and (min-width: 768px) {
    .aizen-chat-close:hover {
        background: #e4ebff;
        border-radius: 4px;
    }
}

.aizen-chat-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.aizen-chat-input {
    padding: 24px;
    border-top: 1px solid #eee;
    background: #fff;
}

.aizen-input-wrapper {
    position: relative;
    width: 100%;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

.aizen-tools {
    background: #efefef;
    min-height: 56px;
    padding: 4px 4px 4px 12px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.aizen-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 150%;
    color: #0d1118;
    padding-right: 10px;
}

.aizen-file-inline-btn {
    display: flex;
    padding-right: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.aizen-file-inline-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.aizen-input-wrapper input::placeholder {
    color: #949393;
}

.aizen-send-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.aizen-send-btn svg {
    display: block;
}

.aizen-input-wrapper.has-text .aizen-send-btn {
    opacity: 1;
    pointer-events: auto;
}

.aizen-chat-body {
    flex: 1;
    padding: 16px 24px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 150%;
    border-radius: 14px;
    word-wrap: break-word;
    box-sizing: border-box;
}

.msg--assistant {
    align-self: flex-start;
    background: #f3f5fb;
    color: #0d1118;
    border-radius: 16px 16px 16px 0;
}

.msg--assistant p {
    font-size: 14px;
}

.msg--assistant p span {
    color: #1629d6;
}

.msg--user {
    align-self: flex-end;
    background: #373cc2;
    color: #fefefe;
    border-radius: 16px 16px 0 16px;
}

.msg-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.msg-wrapper--user {
    align-items: flex-end;
}

.msg-wrapper--assistant {
    align-items: flex-start;
}

.msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: #9a9a9a;
}

.meta-dot svg {
    display: block;
}

@media screen and (max-width: 768px) {
    .aizen-chat-launcher {
        width: 80px;
        height: 80px;
        font-size: 12px;
        bottom: 55px;
    }
}

@media screen and (max-width: 480px) {
    .aizen-chat-modal {
        bottom: 80px;
        right: 16px;
        left: 16px;
        width: auto;
        height: 80vh;
        max-height: 600px;
        border-radius: 12px;
    }

    .aizen-chat-header {
        padding: 16px 16px 0;
        font-size: 18px;
    }

    .aizen-chat-body {
        padding: 12px 16px;
    }

    .aizen-input-wrapper {
        padding: 0 16px 16px;
    }

    .aizen-input-wrapper input {
        padding: 10px 48px 10px 14px;
        font-size: 13px;
    }

    .aizen-send-btn {
        right: 24px;
    }
}

#aizenFileBtn svg {
    width: 40px;
    height: 40px;
    display: block;
}

#aizenFileBtn svg {
    width: 40px;
    height: 40px;
    display: block;
}

.aizen-file-chip {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 4px;
    border-radius: 8px;
    font-size: 13px;
    color: #0d1118;
    gap: 8px;
    max-width: fit-content;
}

.aizen-file-chip span {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    color: #0d1118;
}

.aizen-file-chip {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 4px;
    margin-top: 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #0d1118;
    gap: 8px;
    max-width: fit-content;
}

.aizen-file-chip span {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0;
    color: #0d1118;
}

.aizen-file-icon {
    padding: 12px;
    background: #d0dbff;
    border-radius: 8px;
}

.aizen-file-remove {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.aizen-file-remove:hover {
    opacity: 1;
}
