/* assets/css/assistants.css */

/* --- CLIPPY STYLES --- */
#clippy-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 10001;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, right 0.4s ease-in-out, opacity 0.5s;
    opacity: 0;
    pointer-events: none;
    /* Only clickable when shown */
    background-image: url('../img/clippy.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    visibility: hidden;
}

#clippy-container.show {
    opacity: 1;
    pointer-events: auto;
    /* Enable clicks */
    visibility: visible;
    animation: clippySlideIn 0.8s forwards;
}

/* Hide Clippy when chat is open to avoid overlap */
body.chat-open #clippy-container {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@keyframes clippySlideIn {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

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

#clippy-bubble {
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 220px;
    background: #ffffcc;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    font-size: 14px;
    color: #000;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#clippy-bubble.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#clippy-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 30px;
    border-width: 15px 15px 0 0;
    border-style: solid;
    border-color: #ffffcc transparent transparent transparent;
}

#clippy-bubble::before {
    content: '';
    position: absolute;
    bottom: -18px;
    right: 28px;
    border-width: 17px 17px 0 0;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}


/* --- MATRIX RAIN STYLES --- */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none;
    pointer-events: none;
    opacity: 0.3;
}

.theme-matrix {
    --primary-color: #00ff41;
    --bg-dark: #000;
}

.theme-matrix body {
    background-color: #000 !important;
}

/* Design Dropdown Specifics */
.design-dropdown {
    position: relative;
}

.dropdown-menu li a.active {
    background: var(--primary-color);
    color: #fff;
}