.arsldev-chat-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    color: #fff;
    line-height: 1.6;
    position: fixed;
    z-index: 9999999;
    bottom: 80px;
    transition: all 0.3s ease;
}

svg {
    fill: currentcolor;
}

.arsldev-chat-wrapper.arsldev-position-right {
    right: 20px;
    left: auto;
}

.arsldev-chat-wrapper.arsldev-position-left {
    left: 20px;
    right: auto;
}

.arsldev-chat-wrapper.arsldev-position-center {
    left: 50%;
    transform: translateX(-50%);
}
.arsldev-disabled{
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.d-none{
    display: none;
}
.arsldev-chat-preview {
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #1a1a2e;
    border-radius: 20px;
    border: 2px solid #00ff66;
    box-shadow: 0 0 40px rgba(0, 255, 102, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

.arsldev-chat-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.arsldev-tone-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    flex-shrink: 0;
}

.arsldev-chat-body {
    padding: 20px;
    background: #0d1117;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    position: relative;
}

.arsldev-chat-body::-webkit-scrollbar {
    width: 6px;
}

.arsldev-chat-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.arsldev-chat-body::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.5);
    border-radius: 3px;
}

.arsldev-chat-input-area {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.arsldev-chat-input-area .arsldev-action-btns {
    display: flex;
    gap: 5px;
}

.arsldev-powered {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.arsldev-chat-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00ff66, #17a9e3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.arsldev-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.arsldev-chat-info {
    flex: 1;
    min-width: 0;
}

.arsldev-chat-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arsldev-chat-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.arsldev-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.arsldev-message.arsldev-ai, .arsldev-message.arsldev-admin {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px 18px 18px 4px;
}

.arsldev-message.arsldev-user {
    background: linear-gradient(135deg, #00ff66, #17a9e3);
    border-radius: 18px 18px 4px 18px;
    margin-left: auto;
    color: #000;
}

.arsldev-message.arsldev-image {
    padding: 8px;
}

.arsldev-message img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 8px;
}

.arsldev-quick-btn {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
    text-align: left;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.arsldev-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 102, 0.6);
}
.arsldev-quick-actions {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.arsldev-quick-actions::-webkit-scrollbar {
    height: 4px;
}

.arsldev-quick-actions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.arsldev-quick-actions::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 102, 0.3);
    border-radius: 2px;
}

.arsldev-chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.arsldev-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.arsldev-input-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}

.arsldev-input-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.arsldev-input-btn.arsldev-send {
    background: linear-gradient(135deg, #00ff66, #17a9e3);
}

.arsldev-input-btn.arsldev-send:hover {
    opacity: 0.9;
}

.arsldev-powered a {
    color: #00ff66;
    text-decoration: none;
}

.arsldev-tone-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arsldev-tone-btn:hover,
.arsldev-tone-btn.arsldev-active {
    background: rgba(0, 255, 102, 0.2);
    border-color: rgba(0, 255, 102, 0.6);
}

.arsldev-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arsldev-close-btn:hover {
    opacity: 1;
}

.arsldev-close-btn::after,
.arsldev-close-btn::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
}

.arsldev-close-btn::before {
    transform: rotate(45deg);
}

.arsldev-close-btn::after {
    transform: rotate(-45deg);
}

.arsldev-chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    z-index: 9999999;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #351900, #5a2d00);
    color: #c171ff;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.arsldev-chat-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.arsldev-chat-toggle-btn.arsldev-position-right {
    right: 20px;
}

.arsldev-chat-toggle-btn.arsldev-position-left {
    left: 20px;
}

.arsldev-chat-toggle-btn.arsldev-position-center {
    left: 50%;
    transform: translateX(-50%);
}

.arsldev-notification-badge {
    width: 10px;
    height: 10px;
    background-color: #ffeb00;
    position: absolute;
    border-radius: 50%;
    right: 8px;
    top: 0px;
}

.arsldev-typing-indicator {
    display: none;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 12px;
}

.arsldev-typing-indicator.arsldev-active {
    display: block;
}

.arsldev-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 2px;
    animation: arsldev-typing 1.4s infinite;
}

.arsldev-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.arsldev-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.arsldev-loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.arsldev-loading.arsldev-active {
    display: block;
}

@keyframes arsldev-typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }
}

/* Emoji Picker */
.arsldev-emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 60px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: none;
    max-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.arsldev-emoji-picker.arsldev-active {
    display: block;
}

.arsldev-emoji-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.arsldev-emoji-item {
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
}

.arsldev-emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

/* File Input */
.arsldev-file-input {
    display: none;
}

.arsldev-file-preview {
    display: flex;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    max-height: 100px;
    overflow-y: auto;
}

.arsldev-file-preview.arsldev-hidden {
    display: none;
}

.arsldev-file-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arsldev-file-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arsldev-file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

@media (max-width: 480px) {
    .arsldev-chat-preview {
        width: calc(100vw - 40px);
        max-height: calc(100vh - 140px);
    }

    .arsldev-chat-wrapper.arsldev-position-center {
        left: 20px;
        transform: none;
    }

    .arsldev-chat-toggle-btn.arsldev-position-center {
        left: 50%;
        transform: translateX(-50%);
    }

    .arsldev-chat-input-area {
        flex-wrap: wrap;
    }

    .arsldev-chat-input {
        width: 100%;
        margin-bottom: 8px;
    }

    .arsldev-action-btns {
        width: 100%;
        justify-content: space-between;
    }

    .arsldev-tone-selector {
        padding: 8px 10px;
        gap: 6px;
    }

    .arsldev-tone-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .arsldev-emoji-picker {
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .arsldev-chat-preview {
        border-radius: 15px;
    }

    .arsldev-chat-header {
        padding: 12px 15px;
    }

    .arsldev-chat-avatar {
        width: 40px;
        height: 40px;
    }

    .arsldev-chat-body {
        padding: 15px;
    }
}

/* IRAS Interactive Options */
.arsldev-iras-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.arsldev-iras-option-btn {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.4;
    width: 100%;
}

.arsldev-iras-option-btn:hover {
    background: rgba(0, 255, 102, 0.1);
    border-color: rgba(0, 255, 102, 0.6);
    transform: translateX(5px);
}

.arsldev-iras-option-btn strong {
    display: block;
    font-size: 14px;
    color: #00ff66;
    margin-bottom: 2px;
}

.arsldev-iras-option-btn small {
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.arsldev-iras-option-btn.disabled {
    opacity: 0.6;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.1);
}

