/* Pio Container Styles */
.live2d-widget,
#spine-model-container {
    position: fixed;
    z-index: 1000;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .live2d-widget,
    #spine-model-container {
        display: none !important;
    }
}

/* Message Box Styles */
.model-message-container {
    position: fixed;
    z-index: 1001;
    pointer-events: none;
    opacity: 0;
    transform: translateY(15px) translateX(-50%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.model-message-container.show {
    opacity: 1;
    transform: translateY(0) translateX(-50%) scale(1);
}

.model-message {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.9));
    color: #2c3e50;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 240px;
    min-width: 100px;
    word-wrap: break-word;
    text-align: center;
    white-space: pre-wrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

/* Dark Mode Message Box */
.dark .model-message {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.95), rgba(26, 32, 44, 0.9));
    color: #e2e8f0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-message-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(240, 248, 255, 0.9);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}

.dark .model-message-arrow {
    border-top-color: rgba(26, 32, 44, 0.9);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}
