/* Corporate Identity - Maiocchi Advogados (Intercom Refined Style) */
:root {
    --lase-primary: #FFB800;
    --lase-dark: #1d1d1f;
    --lase-bg: #FFFFFF;
    --lase-msg-user: #1d1d1f;
    --lase-msg-ai: #f4f4f5;
    --lase-border: rgba(0, 0, 0, 0.08);
    --lase-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    --lase-font-sans: "Outfit", "Inter", sans-serif;
}

.lase-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999999;
    /* Highest priority */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lase-float-btn img {
    filter: brightness(0.2) contrast(1.2);
    /* Darken the icon (assuming it was white/light) */
    opacity: 0.8;
}

.lase-float-btn:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lase-float-btn img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

#lase-chat-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    height: 90vh;
    max-height: 850px;
    background: rgba(255, 255, 255, 0.4);
    /* High transparency for Spotlight */
    backdrop-filter: blur(40px) saturate(200%);
    /* Strong Apple blur */
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    animation: laseSpotlightReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes laseSpotlightReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes laseSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Spotlight Top Bar (Search) */
.lase-spotlight-top {
    padding: 18px 20px 14px;
    background: transparent;
}

.lase-search-bar-spotlight {
    background: rgba(255, 255, 255, 0.5);
    /* Semi-translucent for search bar itself */
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}



.lase-search-bar-spotlight:focus-within {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.3), 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lase-search-icon {
    display: flex;
    align-items: center;
    color: #8e8e93;
    opacity: 0.8;
}

.lase-search-icon svg {
    width: 14px;
    height: 14px;
}

#lase-search-input {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    outline: none;
    color: #1d1d1f;
    letter-spacing: -0.1px;
}

#lase-search-input::placeholder {
    color: rgba(0, 0, 0, 0.25);
}

.lase-spotlight-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: rgba(0, 0, 0, 0.4);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    /* Ensure it is visible */
    z-index: 10;
}

.lase-spotlight-close:hover {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

/* Minimalist Spotlight Header (User Info) */
.lase-chat-header-spotlight {
    padding: 20px 24px 18px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lase-user-info-spotlight {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.lase-avatar-spotlight {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lase-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0px;
}

.lase-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
}

.lase-status {
    font-size: 11px;
    color: #34c759;
    /* Apple green */
    display: flex;
    align-items: center;
    gap: 4px;
}

.lase-status::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

/* Messages */
.lase-messages-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#lase-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: transparent;
    /* Translucent through parent */
}

.msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.msg-ai {
    align-self: flex-start;
}

.msg-user {
    align-self: flex-end;
}

.msg .msg-content {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.msg-ai .msg-content {
    background: var(--lase-msg-ai);
    color: var(--lase-dark);
    border-bottom-left-radius: 3px;
}

.msg-user .msg-content {
    background: var(--lase-msg-user);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.msg-meta {
    font-size: 10px;
    color: #8e8e93;
    margin-top: 3px;
    margin-left: 2px;
}

.msg-user .msg-meta {
    text-align: right;
    margin-right: 2px;
}

/* Input area in Spotlight Style */
.lase-input-wrapper {
    padding: 16px 24px 24px;
    background: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.lase-input-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.lase-input-container:focus-within {
    background: #fff;
    border-color: #007aff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
}

#lase-input {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 13px;
    color: var(--lase-dark);
    font-family: inherit;
    margin-bottom: 6px;
    max-height: 100px;
}

.lase-input-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lase-toolbar-left {
    display: flex;
    gap: 4px;
}

.lase-tool-btn {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #c7c7cc;
    transition: all 0.2s;
}

.lase-tool-btn:hover {
    background: #f4f4f5;
    color: #8e8e93;
}

.lase-tool-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.5;
}

.lase-send-btn {
    background: #e5e5ea;
    color: #8e8e93;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.lase-send-btn.active {
    background: var(--lase-dark);
    color: #fff;
}

.lase-send-btn:hover {
    transform: scale(1.05);
}

.lase-send-btn svg {
    transform: rotate(-90deg);
}

/* Dropzone Overlay */
#lase-dropzone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 184, 0, 0.95);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    backdrop-filter: blur(4px);
}

.lase-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* File Previews in Chat */
.msg-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.msg-user .msg-file-preview {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.msg-file-icon {
    font-size: 20px;
}

.msg-file-name {
    font-size: 13px;
    font-weight: 500;
}

/* Scrollbar */
#lase-messages::-webkit-scrollbar {
    width: 4px;
}

#lase-messages::-webkit-scrollbar-track {
    background: transparent;
}

#lase-messages::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 10px;
}