:root {
    --mario-primary: #00d9ff;
    --mario-glow: rgba(0, 217, 255, 0.4);
    --mario-dark: rgba(10, 14, 20, 0.95);
    --mario-glass: rgba(255, 255, 255, 0.05);
    --mario-border: rgba(255, 255, 255, 0.1);
}

.mario-widget-root * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* FLOATING TRIGGER */
.mario-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--mario-dark);
    backdrop-filter: blur(15px);
    border: 1px solid var(--mario-primary);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 0 20px var(--mario-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mario-trigger:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--mario-glow);
}

.mario-trigger .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--mario-primary);
    border-radius: 50px;
    left: 0;
    top: 0;
    animation: mario-pulse 2s infinite;
}

@keyframes mario-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* WINDOW */
.mario-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 550px;
    background: var(--mario-dark);
    backdrop-filter: blur(25px);
    border: 1px solid var(--mario-border);
    border-radius: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mario-window.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.mario-header {
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid var(--mario-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mario-header h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.mario-header p {
    font-size: 0.7rem;
    color: var(--mario-primary);
    font-weight: bold;
}

.mario-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 10px #4ade80;
}

.mario-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.mario-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mario-msg {
    padding: 0.8rem 1.1rem;
    border-radius: 18px;
    font-size: 0.85rem;
    max-width: 85%;
    line-height: 1.4;
    animation: mario-fadein 0.3s ease;
}

@keyframes mario-fadein {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.mario-bot-msg {
    background: var(--mario-glass);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.mario-user-msg {
    background: var(--mario-primary);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 600;
}

.mario-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--mario-border);
    display: flex;
    gap: 0.8rem;
}

.mario-footer input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mario-border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: #fff;
    outline: none;
}

.mario-footer button {
    background: var(--mario-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}
