/* Maya - Minimal Interface */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.maya-app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.timer {
    text-align: center;
}

.timer span {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #b4be64;
}

.timer small {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.avatar {
    width: 40px;
    height: 40px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #b4be64, #8a9544);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Central Orb */
.orb-container {
    margin-bottom: 40px;
}

.orb {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(180, 190, 100, 0.3), rgba(180, 190, 100, 0.1));
    border: 2px solid rgba(180, 190, 100, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.orb-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(180, 190, 100, 0.6);
    animation: breathe 2s ease-in-out infinite;
}

/* Status and Text */
.status {
    font-size: 16px;
    color: #b4be64;
    margin-bottom: 20px;
    text-align: center;
}

.transcript, .response {
    max-width: 500px;
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
    line-height: 1.4;
}

.transcript {
    font-size: 16px;
    color: #ffffff;
    min-height: 20px;
}

.response {
    font-size: 14px;
    color: #b4be64;
    min-height: 18px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.control-btn:hover {
    opacity: 0.7;
}

.btn-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-label {
    font-size: 12px;
    color: #999;
}

.voice-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b4be64, #8a9544);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(180, 190, 100, 0.3);
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(180, 190, 100, 0.4);
}

.voice-btn:active {
    transform: scale(0.95);
}

.voice-icon {
    font-size: 32px;
    color: #000;
}

/* Animations */
@keyframes breathe {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Active States */
.maya-app.listening .orb {
    border-color: rgba(180, 190, 100, 0.8);
    box-shadow: 0 0 30px rgba(180, 190, 100, 0.3);
}

.maya-app.listening .orb-inner {
    animation-duration: 1s;
    background: rgba(180, 190, 100, 0.8);
}

.maya-app.speaking .orb {
    border-color: rgba(100, 150, 255, 0.8);
    box-shadow: 0 0 30px rgba(100, 150, 255, 0.3);
}

.maya-app.speaking .orb-inner {
    background: rgba(100, 150, 255, 0.8);
    animation-duration: 0.5s;
}

.maya-app.processing .orb-inner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Message Styling */
.user-message {
    background: rgba(180, 190, 100, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    color: #ffffff;
}

.ai-message {
    background: rgba(100, 150, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 4px 0;
    color: #b4be64;
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    max-width: 350px;
    width: 90%;
}

.settings-content h3 {
    color: #b4be64;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
}

.setting-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.setting-item label {
    color: #ffffff;
    font-size: 14px;
}

.setting-item input {
    accent-color: #b4be64;
}

.setting-item input[type="number"] {
    width: 60px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
}

.settings-close, .settings-save {
    width: 48%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
}

.settings-save {
    background: #b4be64;
    color: #000;
    margin-right: 4%;
}

.settings-save:hover {
    background: #8a9544;
}

.settings-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.settings-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-section h4 {
    color: #b4be64;
    font-size: 14px;
    margin-bottom: 8px;
}

.api-status {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.setting-item input[type="password"] {
    width: 200px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
}

.setting-item input[type="password"]:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 16px 20px;
    }
    
    .controls {
        gap: 40px;
        padding: 24px;
    }
    
    .orb {
        width: 160px;
        height: 160px;
    }
    
    .voice-btn {
        width: 70px;
        height: 70px;
    }
    
    .voice-icon {
        font-size: 28px;
    }
}

/* Personality Selector Styles */
.personality-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.personality-section h4 {
    color: #10b981;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#personalitySelector {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#personalitySelector:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #10b981;
}

#personalitySelector:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

#personalitySelector option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 10px;
    font-size: 13px;
}

/* Personality Indicator */
.current-personality {
    position: absolute;
    top: 80px;
    right: 30px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.current-personality.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced settings panel for personalities */
.settings-content {
    max-height: 80vh;
    overflow-y: auto;
}

.settings-content::-webkit-scrollbar {
    width: 4px;
}

.settings-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.settings-content::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 2px;
}

.settings-content::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}
