/* Styles for the Scooby Mystery Inc. AI Agents plugin */
.scooby-mystery-inc-container {
    position: relative;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    color: white;
    border-radius: 10px;
}

.scooby-mystery-inc-container #scene-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.scooby-mystery-inc-container #loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #6a3cb5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

.scooby-mystery-inc-container #loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.scooby-mystery-inc-container .loading-content {
    text-align: center;
    max-width: 80%;
}

.scooby-mystery-inc-container .loading-logo {
    width: 300px;
    max-width: 100%;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.scooby-mystery-inc-container .loading-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
}

.scooby-mystery-inc-container .loading-bar-container {
    width: 300px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.scooby-mystery-inc-container .loading-bar {
    height: 100%;
    width: 0%;
    background-color: #ff9800;
    border-radius: 10px;
    transition: width 0.3s ease-in-out;
}

.scooby-mystery-inc-container #info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.scooby-mystery-inc-container #info-panel h2 {
    margin-top: 0;
    color: #ff9800;
    font-size: 20px;
    border-bottom: 1px solid #ff9800;
    padding-bottom: 10px;
}

.scooby-mystery-inc-container #character-info {
    margin-bottom: 15px;
    font-size: 16px;
}

.scooby-mystery-inc-container #character-details {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    display: none;
}

.scooby-mystery-inc-container #character-details h3 {
    margin-top: 0;
    color: #ff9800;
    font-size: 18px;
}

.scooby-mystery-inc-container #character-details ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.scooby-mystery-inc-container #task-panel {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.scooby-mystery-inc-container #task-panel h3 {
    margin-top: 0;
    font-size: 16px;
    color: #ff9800;
}

.scooby-mystery-inc-container #task-type {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    color: white;
}

.scooby-mystery-inc-container #assign-task {
    width: 100%;
    padding: 8px;
    background-color: #ff9800;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.scooby-mystery-inc-container #assign-task:hover {
    background-color: #ffb74d;
}

.scooby-mystery-inc-container #assign-task:disabled {
    background-color: #7f7f7f;
    cursor: not-allowed;
}

.scooby-mystery-inc-container #controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10;
    font-size: 14px;
}

.scooby-mystery-inc-container .demo-button {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #ff9800;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.scooby-mystery-inc-container .demo-button:hover {
    background-color: #ffb74d;
}

.scooby-mystery-inc-container .speech-bubble {
    position: absolute;
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 200px;
    text-align: center;
    transform: translate(-50%, -100%);
    z-index: 20;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.scooby-mystery-inc-container .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scooby-mystery-inc-container #info-panel {
        width: calc(100% - 40px);
        top: auto;
        bottom: 70px;
        right: 20px;
        max-height: 30vh;
        overflow-y: auto;
    }
    
    .scooby-mystery-inc-container .demo-button {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .scooby-mystery-inc-container #controls-hint {
        bottom: 70px;
    }
}