:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #f5f6fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.top-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    color: #ccc;
    font-size: 20px;
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo {
    margin-top: 10px;
    margin-bottom: 30px;
    height: 42px;
    width: 100px;
    position: relative;
    z-index: 10;
}

.moon-container {
    position: relative;
    width: 300px;
    height: 300px;
    top: 50px;
    right: 80px;
}

.center-orb {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.imag {
    height: 300px;
    width: 300px;
}

.controls {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1000;
}

.status {
    font-size: 1rem;
    color: rgba(175, 33, 133, 0.7);
    min-height: 24px;
    position: relative;
    z-index: 10;
}

.btn {
    background-color: #080808;
    color: white;
    border: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

.content-container {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 100px;
    margin-left: 100px;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    width: 140%;
    bottom: 1%;
    min-height: 150px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
    max-height: 300px;
    position: absolute;
    z-index: 10;
    scrollbar-color: black;
    scrollbar-width: thin;
}

.bottom-controls {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.circle-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #2d3436;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-direction: column;
}

.circle-button:hover {
    transform: scale(1.1);
}

.circle-button.active {
    background-color: #4CAF50;
}

.circle-button.inactive {
    background-color: #da0000;
}

.fa-microphone-slash {
    color: #ffffff;
}

.button-label {
    font-size: 10px;
    margin-top: 2px;
    display: block;
}

@keyframes talking {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.talking {
    animation: talking 0.3s ease infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 170, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.message {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
}

.user-message {
    background: rgba(107, 185, 240, 0.2);
    border-left: 3px solid #6bb9f0;
}

.assistant-message {
    background: rgba(174, 168, 211, 0.2);
    border-left: 3px solid #a18cd1;
}

/* Sound bars */
.bar {
    position: absolute;
    width: 6px;
    height: 100px;
    border-radius: 4px;
    background: #000000;
    bottom: 50%;
    left: 78%;
    z-index: -100;
    transform-origin: bottom center;
    transition: height 0.1s;
}

.middle-bars {
    position: absolute;
    bottom: 35%;
    left: 80%;
    transform: translateX(-50%);
    text-align: center !important;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.middle-bar {
    width: 10px;
    height: 50px;
    background-color: white;
    border-radius: 3px;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px #ffffff88;
}

/* Permission indicator */
.permission-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    z-index: 10000;
    pointer-events: none;
    transition: background-color 0.3s;
}

.permission-active {
    background-color: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 20px;
    }

    .moon-container {
        width: 220px;
        height: 220px;
        top: 0;
        right: 0;
        margin: 20px auto;
    }

    .imag {
        height: 200px;
        width: 200px;
    }

    .content-container {
        margin-top: 80px !important;
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 15px;
    }

    .content {
        width: 100% !important;
        max-height: 200px;
        position: relative;
        bottom: auto;
        left: auto;
    }

    .controls {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .bottom-controls {
        padding: 0 20px;
    }

    .circle-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .button-label {
        display: block;
    }

    /* Sound bars for mobile */
    .bar {
        display: block !important;
        width: 3px;
        height: 30px;
        bottom: 50%;
        left: 50%;
        background: rgba(255, 255, 255, 0.7);
        transform-origin: bottom center;
        z-index: 1;
    }

    .middle-bars {
        bottom: 40%;
        left: 50%;
        transform: translateX(-50%);
        gap: 4px;
    }

    .middle-bar {
        width: 4px;
        height: 15px;
        background-color: rgba(255, 255, 255, 0.9);
    }

    /* Hide desktop-specific elements */
    .top-controls {
        display: none;
    }
}

@media (min-width: 769px) {
    .button-label {
        display: none;
    }
}