/* Nexus AI - Premium Gradient Theme */
/* Design System: Cyber-Aurora with Deep Purple & Cyan Accents */

:root {
    /* Primary Gradient Colors */
    --gradient-start: #00D4FF;
    --gradient-mid: #7B2D8E;
    --gradient-end: #FF006E;
    --gradient-gold: #FFD700;
    
    /* Background Colors */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-tertiary: #1A1A2E;
    --bg-card: rgba(26, 26, 46, 0.8);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8C8;
    --text-muted: #6B6B7B;
    
    /* Accent Colors */
    --accent-cyan: #00D4FF;
    --accent-purple: #9D4EDD;
    --accent-pink: #FF006E;
    --accent-gold: #FFD700;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(123, 45, 142, 0.1) 50%, rgba(255, 0, 110, 0.1) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 0, 110, 0.3) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(123, 45, 142, 0.1) 0%, transparent 70%),
        var(--bg-primary);
    z-index: -2;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Wake Word Indicator */
.wake-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-xl);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.wake-indicator.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.wake-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.wake-text {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-weight: 500;
}

/* Main Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-md);
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    animation: rotate 20s linear infinite;
}

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

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.logo-text h1 {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-top: -4px;
}

.header-actions {
    display: flex;
    gap: var(--space-xs);
}

.icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.icon-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Voice Section */
.voice-section {
    margin-bottom: var(--space-lg);
}

.voice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--gradient-subtle);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.voice-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-cyan), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: var(--transition-normal);
}

.voice-container.listening::before {
    opacity: 0.1;
}

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

.voice-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    opacity: 0;
    transition: var(--transition-normal);
}

.voice-waves.active {
    opacity: 1;
}

.voice-waves span {
    width: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.voice-waves span:nth-child(1) { height: 20%; animation-delay: 0s; }
.voice-waves span:nth-child(2) { height: 40%; animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { height: 20%; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.voice-btn {
    width: 80px;
    height: 80px;
    border: none;
    background: var(--gradient-main);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
}

.voice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

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

.voice-btn.listening {
    animation: listeningPulse 1.5s ease-in-out infinite;
}

@keyframes listeningPulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
    }
}

.mic-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.voice-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Chat Section */
.chat-section {
    margin-bottom: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.message {
    display: flex;
    gap: var(--space-sm);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.message-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-content p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chat-input-area {
    display: flex;
    padding: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: var(--space-xs);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-normal);
}

.chat-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gradient-main);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* Actions Section */
.actions-section {
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.3), transparent);
    margin-left: var(--space-sm);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color, var(--accent-cyan));
    transition: var(--transition-normal);
}

.action-card:hover .action-icon {
    background: var(--icon-color, var(--accent-cyan));
    color: white;
}

.action-icon svg {
    width: 24px;
    height: 24px;
}

.action-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Models Section */
.models-section {
    margin-bottom: var(--space-lg);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.model-card {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.model-card:hover::before,
.model-card.active::before {
    transform: scaleX(1);
}

.model-card.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.model-status {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.model-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.model-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.model-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.model-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-cyan);
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Memory Section */
.memory-section {
    margin-bottom: var(--space-lg);
}

.memory-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.memory-input-area {
    margin-bottom: var(--space-md);
}

.memory-input {
    width: 100%;
    min-height: 100px;
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
    transition: var(--transition-normal);
    margin-bottom: var(--space-sm);
    font-family: inherit;
}

.memory-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.memory-save-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    transition: var(--transition-normal);
}

.memory-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 200px;
    overflow-y: auto;
}

.memory-item {
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-cyan);
    position: relative;
}

.memory-item-text {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.memory-item-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.memory-item-delete {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition-fast);
}

.memory-item-delete:hover {
    color: var(--accent-pink);
}

/* Device Section */
.device-section {
    margin-bottom: var(--space-lg);
}

.device-controls {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.control-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-normal);
}

.control-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.control-btn.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn span {
    font-size: 0.7rem;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.slider-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-main);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-main);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding: var(--space-md);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.status-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
}

.status-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h3 {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-pink);
}

.modal-body {
    padding: var(--space-md);
    max-height: 70vh;
    overflow-y: auto;
}

/* Message Modal */
.message-select,
.message-input,
.message-textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-normal);
}

.message-select:focus,
.message-input:focus,
.message-textarea:focus {
    border-color: var(--accent-cyan);
}

.message-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.message-send-btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.message-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Settings Modal */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.setting-select,
.setting-slider {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-cyan);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        padding: var(--space-sm);
        padding-top: 70px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .action-card {
        padding: var(--space-sm);
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .control-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations for AI responses */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-sm);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glow effects */
.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.glow-box {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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