/* ALIRA Chatbot Styles - NAMEDLY 8K Premium */
:root {
    --alira-primary: #4f46e5;
    --alira-secondary: #0ea5e9;
    --alira-glass: rgba(255, 255, 255, 0.95);
    --alira-shadow: 0 15px 35px rgba(79, 70, 229, 0.2);
    --alira-glow: 0 0 20px rgba(79, 70, 229, 0.4);
}

#alira-widget-container {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Floating Avatar */
.alira-avatar-wrapper {
    width: 110px; /* Increased from 90px */
    height: 110px; /* Increased from 90px */
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--alira-shadow);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid white;
    overflow: hidden;
    position: relative;
    animation: alira-levitate 3s ease-in-out infinite, alira-glow-pulse 2s infinite;
}

.alira-avatar-wrapper:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.35);
}

.alira-avatar-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pulse effect */
.alira-avatar-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--alira-primary);
    animation: alira-pulse 2s infinite;
    opacity: 0;
}

/* Greeting Bubble */
.alira-greeting {
    background: linear-gradient(135deg, var(--alira-primary), var(--alira-secondary));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 25px 25px 5px 25px;
    box-shadow: var(--alira-shadow);
    margin-bottom: 20px;
    max-width: 280px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.alira-greeting b {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alira-greeting.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Chat Window (Glassmorphism) */
.alira-window {
    position: absolute !important;
    bottom: 110px !important;
    right: 0 !important;
    width: 370px !important;
    height: 520px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    opacity: 0;
    transform: scale(0.8) translateY(40px);
    transform-origin: bottom right;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.alira-window.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.alira-header {
    background: linear-gradient(135deg, var(--alira-primary), var(--alira-secondary));
    padding: 20px 25px; /* Reduced from 30px */
    color: white;
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 20px */
}

.alira-header video {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    object-fit: cover !important;
}

.alira-header h5 {
    margin: 0;
    font-weight: 800;
    font-size: 1.15rem; /* Reduced from 1.3rem */
    letter-spacing: -0.5px;
}

.alira-header p {
    margin: 0;
    font-size: 0.8rem; /* Reduced from 0.85rem */
    opacity: 0.95;
    font-weight: 500;
}

.alira-content {
    flex: 1;
    padding: 20px 25px; /* Reduced from 30px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #475569;
}

.alira-content video {
    margin-bottom: 20px !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    box-shadow: var(--alira-shadow) !important;
}

.alira-content h6 {
    color: #1e293b;
    font-size: 1rem; /* Reduced from 1.1rem */
    margin-bottom: 8px;
}

.alira-footer {
    padding: 20px; /* Reduced from 25px */
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.alira-input-mock {
    background: white;
    padding: 12px 20px; /* Reduced from 15x25 */
    border-radius: 30px;
    font-size: 0.85rem; /* Reduced from 0.9rem */
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes alira-levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes alira-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes alira-glow-pulse {
    0%, 100% { box-shadow: var(--alira-shadow); }
    50% { box-shadow: var(--alira-glow); }
}