body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0f1923;
    color: #e0e0e0;
    overflow-x: hidden;
    min-height: 100vh;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.1), transparent);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

h1 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

/* Auth buttons */
.auth-buttons {
    position: relative;
}

.auth-button {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button {
    background-color: #2196F3;
    color: white;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.2);
}

.login-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

.logout-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Breathing Circle */
.breathing-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.breathing-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.4), rgba(33, 150, 243, 0.1));
    box-shadow: 0 0 60px rgba(33, 150, 243, 0.3);
    position: relative;
    animation: breathe 14s infinite ease-in-out;
    pointer-events: auto;
    cursor: pointer;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: ripple 8s infinite ease-out;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 5px rgba(100, 180, 255, 0.6);
    filter: blur(1px);
}

.message-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.breathing-message {
    margin: 0;
    animation: fadeInOut 14s infinite;
    color: white !important;
    font-weight: bold !important;
    font-size: 1.4rem !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8) !important;
}

/* Public content */
.tagline {
    text-align: center;
    margin: 50px 0 30px;
}

.tagline h2 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(to right, #2196F3, #21CBF3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(33, 150, 243, 0.3);
}

.tagline p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* User profile */
#user-profile {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#user-profile h2 {
    color: #fff;
    margin-top: 0;
}

/* Application content */
.app-section {
    margin-top: 30px;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #2196F3;
    backdrop-filter: blur(5px);
}

.app-feature {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.app-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-feature h3 {
    color: #2196F3;
    margin-top: 0;
}

.app-feature p {
    color: rgba(255, 255, 255, 0.7);
}

.feature-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.3);
}

.feature-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.4);
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Status messages */
.status-message {
    margin: 10px 0;
    padding: 12px 15px;
    background-color: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    color: #e0e0e0;
}

.error-message {
    margin: 10px 0;
    padding: 12px 15px;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #f44336;
    border-radius: 4px;
    color: #e0e0e0;
}

/* Animations */
@keyframes breathe {
    0%, 100% {
        transform: scale(0.9);
        box-shadow: 0 0 40px rgba(33, 150, 243, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 80px rgba(33, 150, 243, 0.4);
    }
}

@keyframes ripple {
    0%, 100% {
        width: 100%;
        height: 100%;
        opacity: 0.2;
    }
    50% {
        width: 120%;
        height: 120%;
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) translateX(15px);
        opacity: 0;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* New animations for enhanced features */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

@keyframes clickRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.7;
    }
    100% {
        width: var(--ripple-size, 600px);
        height: var(--ripple-size, 600px);
        opacity: 0;
    }
}

@keyframes mouseRipple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.4;
    }
    100% {
        width: var(--ripple-size, 300px);
        height: var(--ripple-size, 300px);
        opacity: 0;
    }
}

/* Click ripple effect */
.click-ripple, .mouse-ripple {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.click-ripple {
    background: radial-gradient(circle, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0) 70%);
    animation: clickRipple 1.5s ease-out forwards;
    z-index: 5;
}

.mouse-ripple {
    background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0) 70%);
    animation: mouseRipple 1s ease-out forwards;
    z-index: 4;
}

/* Text cycling animation */
.breathing-message {
    margin: 0;
    animation: fadeInOut 8s infinite;
    transition: opacity 0.5s ease;
}

.breathing-message.fade-out {
    opacity: 0;
}

/* Circle menu */
.circle-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    pointer-events: none;
}

.menu-item {
    /* No styles here - we'll handle everything in JS to avoid CSS conflicts */
}

.circle-menu.fade-out .menu-item {
    /* No animations here */
}

/* Add CSS animation for menu items orbiting */
.menu-item.animate {
    /* No animations here */
}

/* Additional concentric circles */
.breathing-circle::before, 
.breathing-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.breathing-circle::before {
    width: 110%;
    height: 110%;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.1), transparent 70%);
    animation: pulse 8s infinite ease-in-out;
    animation-delay: 1s;
}

.breathing-circle::after {
    width: 130%;
    height: 130%;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.05), transparent 70%);
    animation: pulse 10s infinite ease-in-out;
    animation-delay: 2s;
}

/* Responsive styles */
@media (max-width: 768px) {
    .breathing-circle {
        width: 180px;
        height: 180px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .tagline h2 {
        font-size: 2.2rem;
    }
    
    .auth-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Sound toggle button - temporarily disabled
.sound-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background-color: rgba(33, 150, 243, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.sound-toggle.sound-on {
    background-color: rgba(33, 150, 243, 0.3);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}
*/

/* WebGL and advanced visualization styles */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1; /* Make sure WebGL canvas is visible by default */
}

/* Hide the original breathing circle when WebGL is active, but keep menu functionality */
.webgl-active .breathing-circle {
    opacity: 0.15; /* Reduced from 0.3 for a more subtle appearance */
    transition: opacity 1s ease;
    pointer-events: auto; /* Keep it clickable */
}

/* Keep the menu container visible even with WebGL active */
.webgl-active .circle-menu {
    opacity: 1;
    z-index: 9999; /* Extremely high z-index to ensure it's above everything */
}

/* For gesture input */
#gestureInput {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 160px;
    height: 120px;
    z-index: 100;
    transform: scaleX(-1); /* Mirror for more intuitive interaction */
    border-radius: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#gestureInput:hover {
    opacity: 0.8;
}

#gestureInput.hidden {
    display: none;
}

/* Performance indicator */
.performance-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 100;
    pointer-events: none;
}

/* Data visualization elements */
.data-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}

.data-connection {
    position: absolute;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transform-origin: left center;
    pointer-events: none;
    z-index: 4;
}

/* Enhanced menu items for WebGL version */
.webgl-menu-item {
    position: absolute;
    background-color: rgba(33, 150, 243, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.5s ease;
    z-index: 10;
    cursor: pointer;
}

.webgl-menu-item.active {
    transform: scale(1);
    opacity: 1;
}

.toggle-button {
    background: linear-gradient(to right, #2196F3, #03a9f4);
    color: white;
    border: none;
    margin-left: 10px;
    box-shadow: 0 4px 6px rgba(33, 150, 243, 0.2);
}

.toggle-button:hover {
    background: linear-gradient(to right, #1976D2, #0288d1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 150, 243, 0.3);
}

/* Update WebGL-active menu items to ensure visibility */
.webgl-active .circle-menu {
    opacity: 1;
    z-index: 30; /* Ensure it's above the WebGL canvas */
}

.webgl-active .menu-item {
    background: #2196F3; /* Solid color */
    box-shadow: 0 0 30px white, 0 0 50px #2196F3;
    border: 3px solid white;
} 