/* Meditation Voice Overlay Styles */
.meditation-voice-overlay {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(13, 17, 23, 0.85);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    max-height: 400px;
    overflow-y: auto;
}

.meditation-voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.meditation-voice-title {
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
}

.meditation-voice-title i {
    margin-right: 8px;
    color: #9c27b0;
}

.meditation-voice-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.meditation-voice-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meditation-voice-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.meditation-voice-controls button.active {
    background: #9c27b0;
}

.meditation-voice-text {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.meditation-voice-text p {
    margin-bottom: 10px;
}

.meditation-voice-settings {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meditation-voice-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meditation-voice-label {
    font-size: 12px;
    color: #aaa;
}

.meditation-voice-slider {
    flex: 1;
    margin: 0 10px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.meditation-voice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #9c27b0;
    cursor: pointer;
}

.meditation-voice-value {
    font-size: 12px;
    color: #aaa;
    width: 30px;
    text-align: right;
}

.meditation-voice-message {
    padding: 10px;
    background: rgba(156, 39, 176, 0.1);
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
    color: #9c27b0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .meditation-voice-overlay {
        width: calc(100% - 40px);
        bottom: 10px;
        right: 10px;
        max-height: 300px;
    }
}

/* Animation for currently speaking text */
.speaking {
    color: #ff9800;
    font-weight: bold;
}

/* Minimized state */
.meditation-voice-overlay.minimized {
    width: 60px;
    height: 60px;
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(156, 39, 176, 0.8);
    cursor: pointer;
}

.meditation-voice-overlay.minimized .meditation-voice-title,
.meditation-voice-overlay.minimized .meditation-voice-controls,
.meditation-voice-overlay.minimized .meditation-voice-text,
.meditation-voice-overlay.minimized .meditation-voice-settings {
    display: none;
}

.meditation-voice-overlay.minimized::before {
    content: "\f130";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
    color: white;
}

/* Timer display */
.meditation-timer {
    font-size: 20px;
    text-align: center;
    margin: 20px 0;
    font-family: monospace;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meditation-timer i {
    margin-right: 10px;
    color: #9c27b0;
}

/* Rishi character box */
.rishi-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rishi-figure {
    background-image: url('/static/images/rishi-guide.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(156, 39, 176, 0.7));
}

.rishi-name {
    font-size: 14px;
    color: #9c27b0;
    margin-top: 8px;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.5);
}

/* Breath animation */
.breath-guide {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 39, 176, 0.5) 0%, rgba(156, 39, 176, 0.1) 70%, transparent 100%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: breathe 8s infinite ease-in-out;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}