/**
 * 🎯 Carbon Command Palette v3.0 Styles
 * Natural Language + Workflow + Predictions + Team + Automation
 */

/* Carbon Command Palette v3.0 - Standalone Styles */

/* ==================== BASE PALETTE STYLES ==================== */
.carbon-palette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.carbon-palette-active {
    display: flex !important;
}

.carbon-palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.carbon-palette-container {
    position: relative;
    width: 90%;
    max-width: 640px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: carbon-palette-in 0.2s ease-out;
}

@keyframes carbon-palette-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.carbon-palette-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.8);
}

.carbon-palette-icon {
    font-size: 20px;
    color: #c5a059;
    font-weight: 600;
}

.carbon-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

.carbon-palette-input::placeholder {
    color: #64748b;
}

.carbon-palette-voice,
.carbon-palette-record {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.carbon-palette-voice svg,
.carbon-palette-record svg {
    width: 22px;
    height: 22px;
}

.carbon-palette-voice:hover,
.carbon-palette-voice:active,
.carbon-palette-record:hover,
.carbon-palette-record:active {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.carbon-palette-hint {
    font-size: 11px;
    color: #64748b;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.carbon-palette-content {
    max-height: 400px;
    overflow-y: auto;
}

.carbon-palette-sections {
    padding: 8px 0;
}

.carbon-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.carbon-palette-item:hover,
.carbon-palette-item:active,
.carbon-palette-selected {
    background: rgba(197, 160, 89, 0.1);
    border-left-color: #c5a059;
}

.carbon-palette-cmd-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(197, 160, 89, 0.15);
    color: #c5a059;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.carbon-palette-cmd-info {
    flex: 1;
}

.carbon-palette-cmd-name {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
}

.carbon-palette-cmd-desc {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}

.carbon-palette-cmd-alias {
    font-size: 11px;
    color: #475569;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

.carbon-palette-empty {
    padding: 40px;
    text-align: center;
    color: #64748b;
}

.carbon-palette-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.8);
}

.carbon-palette-footer-hint {
    font-size: 12px;
    color: #64748b;
}

.carbon-palette-footer-hint kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
}

.carbon-voice-hint {
    margin-left: 16px;
    color: #c5a059;
}

.carbon-cheat-sheet-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(197, 160, 89, 0.15);
    color: #c5a059;
    cursor: pointer;
    font-weight: 600;
}

/* Context Badge */
.carbon-palette-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carbon-context-badge {
    background: linear-gradient(135deg, #c5a059, #a68543);
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.carbon-prediction-label {
    font-size: 11px;
    color: #64748b;
}

.carbon-palette-predictions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Toast */
.carbon-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(145deg, #10b981, #059669);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 400px;
}

.carbon-toast-error {
    background: linear-gradient(145deg, #ef4444, #dc2626);
}

.carbon-toast-show {
    transform: translateY(0);
    opacity: 1;
}

/* ==================== V3.0 ENHANCEMENTS ==================== */

/* Natural Language Indicator */
.carbon-nl-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carbon-nl-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carbon-nl-examples {
    color: #a78bfa;
    font-size: 12px;
    font-style: italic;
}

/* NL Confirmation */
.carbon-nl-confirmation {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    margin: 16px;
}

.carbon-nl-icon {
    font-size: 32px;
}

.carbon-nl-text {
    flex: 1;
}

.carbon-nl-title {
    color: #a78bfa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.carbon-nl-command {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 600;
}

.carbon-nl-execute {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carbon-nl-execute:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* Prediction Bar */
.carbon-prediction-bar {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
}

.carbon-prediction-bar:hover {
    transform: translateX(-50%) translateY(-4px);
}

.carbon-pred-label {
    color: #c5a059;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carbon-prediction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carbon-prediction-btn:hover {
    background: rgba(197, 160, 89, 0.2);
    border-color: rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
}

.carbon-pred-icon {
    font-size: 14px;
}

/* Palette Predictions */
.carbon-palette-context {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(197, 160, 89, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carbon-prediction-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
}

.carbon-palette-predictions {
    display: flex;
    gap: 8px;
    flex: 1;
}

.carbon-pred-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.carbon-pred-chip:hover,
.carbon-pred-chip:active {
    background: rgba(197, 160, 89, 0.2);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Recording Indicator */
.carbon-recording-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
    z-index: 99999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.carbon-recording-indicator.carbon-recording-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.carbon-rec-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: carbon-rec-pulse 1s ease infinite;
}

@keyframes carbon-rec-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.carbon-rec-text {
    font-weight: 600;
}

.carbon-rec-name {
    font-weight: 700;
}

.carbon-rec-stop {
    background: white;
    color: #ef4444;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 8px;
}

/* Quick Widget */
.carbon-quick-widget {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 220px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9997;
    overflow: hidden;
}

.carbon-quick-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carbon-quick-header span {
    color: #c5a059;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carbon-quick-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carbon-quick-close:hover {
    color: #f8fafc;
}

.carbon-quick-list {
    padding: 8px;
}

.carbon-quick-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    color: #e2e8f0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.carbon-quick-item:hover {
    background: rgba(197, 160, 89, 0.1);
}

.carbon-quick-empty {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

/* Cheat Sheet */
.carbon-cheatsheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carbon-cheatsheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.carbon-cheatsheet-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

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

.carbon-cheatsheet-header h2 {
    color: #c5a059;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    margin: 0;
}

.carbon-cheatsheet-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #f8fafc;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carbon-cheatsheet-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.carbon-cheatsheet-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    padding: 24px;
    overflow-y: auto;
    max-height: 60vh;
}

.carbon-cheatsheet-section h3 {
    color: #f8fafc;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.carbon-cheat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.carbon-cheat-row span {
    color: #e2e8f0;
}

.carbon-cheat-row kbd {
    background: linear-gradient(135deg, #c5a059, #a68543);
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

.carbon-cheat-row code {
    background: rgba(255, 255, 255, 0.1);
    color: #c5a059;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.carbon-cheat-example {
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid #8b5cf6;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 0 8px 8px 0;
    color: #a78bfa;
    font-size: 12px;
    font-style: italic;
}

/* Record Button in Palette */
.carbon-palette-record {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carbon-palette-record:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* Cheat Sheet Button */
.carbon-cheat-sheet-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carbon-cheat-sheet-btn:hover {
    background: rgba(197, 160, 89, 0.2);
    border-color: rgba(197, 160, 89, 0.4);
}

/* Responsive - Mobile Optimizations */
@media (max-width: 768px) {
    /* Main palette container */
    .carbon-palette {
        padding-top: 20px;
        align-items: flex-end;
    }
    
    .carbon-palette-container {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }
    
    .carbon-palette-content {
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Header adjustments */
    .carbon-palette-header {
        padding: 12px 16px;
        gap: 8px;
    }
    
    .carbon-palette-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .carbon-palette-icon {
        font-size: 18px;
    }
    
    /* Hide some buttons on small screens */
    .carbon-palette-record {
        display: none;
    }
    
    /* Natural language indicator */
    .carbon-nl-indicator {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 8px 16px;
    }
    
    .carbon-nl-examples {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Context badge */
    .carbon-palette-context {
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 16px;
    }
    
    .carbon-palette-predictions {
        width: 100%;
        order: 3;
    }
    
    /* Command items */
    .carbon-palette-item {
        padding: 14px 16px;
        min-height: 56px;
    }
    
    .carbon-palette-cmd-name {
        font-size: 15px;
    }
    
    .carbon-palette-cmd-desc {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Footer */
    .carbon-palette-footer {
        padding: 10px 16px;
    }
    
    .carbon-palette-footer-hint {
        font-size: 11px;
    }
    
    /* Prediction bar - Hidden on mobile to avoid blocking content */
    .carbon-prediction-bar {
        display: none;
    }
    
    .carbon-pred-label {
        font-size: 11px;
    }
    
    .carbon-pred-chip {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Quick widget - Hidden on mobile to avoid blocking content */
    .carbon-quick-widget {
        display: none;
    }
    
    /* Cheatsheet */
    .carbon-cheatsheet {
        width: 95%;
        max-height: 80vh;
    }
    
    .carbon-cheatsheet-body {
        grid-template-columns: 1fr;
    }
    
    /* Toast notifications */
    .carbon-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        transform: translateY(200px);
    }
    
    .carbon-toast-show {
        transform: translateY(0);
    }
    
    /* Voice indicator */
    .carbon-voice-indicator {
        left: 16px;
        right: 16px;
        transform: translateY(20px);
        justify-content: center;
    }
    
    .carbon-voice-indicator.carbon-voice-active {
        transform: translateY(0);
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .carbon-palette-header {
        padding: 10px 12px;
    }
    
    .carbon-palette-input {
        font-size: 15px;
    }
    
    .carbon-palette-hint {
        display: none;
    }
    
    .carbon-nl-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ==================== VOICE RECOGNITION INDICATOR ==================== */
.carbon-voice-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.carbon-voice-indicator.carbon-voice-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.carbon-voice-pulse {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    animation: carbon-voice-pulse-anim 1.5s ease infinite;
    flex-shrink: 0;
}

@keyframes carbon-voice-pulse-anim {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.carbon-voice-text {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.carbon-voice-transcript {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Voice active state for palette voice button */
.carbon-palette-voice.carbon-voice-listening {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    animation: carbon-voice-btn-pulse 2s ease infinite;
}

@keyframes carbon-voice-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); }
}

/* ==================== FLOATING VOICE ORB ==================== */
.carbon-voice-orb {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.carbon-voice-orb:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
}

.carbon-voice-orb.carbon-voice-active {
    animation: carbon-voice-orb-pulse 2s ease infinite;
}

.carbon-voice-orb.carbon-voice-listening {
    background: linear-gradient(135deg, #10b981, #059669);
    animation: carbon-voice-orb-listen 1s ease infinite;
}

@keyframes carbon-voice-orb-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
}

@keyframes carbon-voice-orb-listen {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.carbon-voice-orb svg {
    width: 28px;
    height: 28px;
}

.carbon-voice-status {
    position: fixed;
    bottom: 175px;
    right: 20px;
    background: rgba(15, 23, 42, 0.95);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 9997;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.carbon-voice-status.carbon-voice-status-visible {
    opacity: 1;
    transform: translateY(0);
}

.carbon-voice-status.carbon-voice-status-listening {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

/* Animation for new features */
@keyframes carbon-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carbon-prediction-bar,
.carbon-quick-widget {
    animation: carbon-slide-up 0.4s ease;
}

@media print {
    .carbon-prediction-bar,
    .carbon-quick-widget,
    .carbon-palette-overlay,
    #carbon-prediction-bar,
    #carbon-quick-widget {
        display: none !important;
    }
}
