:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --accent-color: #ff7e5f;
    --dark-color: #2c3e50;
    --light-color: #f5f7fa;
    --text-dark: #333;
    --text-light: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --message-user-bg: rgba(0, 123, 255, 0.8);
    --message-assistant-bg: rgba(255, 255, 255, 0.8);
    --conversation-bg: rgba(255, 255, 255, 0.4);
    --input-bg: rgba(255, 255, 255, 0.4);
}

/* Dark mode variables */
body.dark-mode {
    --primary-color: #8a63e8;
    --secondary-color: #6cc7c0;
    --accent-color: #ff8a65;
    --text-dark: #eee;
    --text-light: #222;
    --message-user-bg: rgba(0, 86, 179, 0.8);
    --message-assistant-bg: rgba(50, 50, 50, 0.8);
    --conversation-bg: rgba(30, 30, 30, 0.6);
    --input-bg: rgba(50, 50, 50, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: url('https://png.pngtree.com/background/20230416/original/pngtree-ai-robot-innovation-high-tech-ppt-robot-template-background-image-picture-image_2443210.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    min-height: 100vh;
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(41, 98, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 41, 111, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

/* Dark mode adjustments */
body.dark-mode {
    background: url('https://png.pngtree.com/background/20230416/original/pngtree-ai-robot-innovation-high-tech-ppt-robot-template-background-image-picture-image_2443210.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.7);
}

body.dark-mode::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(41, 98, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 41, 111, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.assistant-app {
    width: 100%;
    max-width: 1400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(15px);
    margin: 20px auto;
    padding: 30px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, 
        rgba(106, 17, 203, 0.5), 
        rgba(37, 117, 252, 0.5),
        rgba(0, 255, 255, 0.3));
    z-index: 0;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
    filter: blur(1px);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-container {
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Assistant Orb Styles */
.assistant-orb {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.orb-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    animation: orbGlow 3s ease-in-out infinite;
}

.orb-core.listening {
    animation: pulse 1.5s infinite;
}

.orb-core.thinking {
    background: linear-gradient(145deg, var(--accent-color), #f9d423);
}

.orb-status {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.assistant-orb:hover .orb-status {
    opacity: 1;
}

.wave-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    opacity: 0;
    animation: wavePulse 2s ease-in-out infinite;
}

@keyframes wavePulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(0.8); opacity: 0; }
}

.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.orb-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(110, 69, 226, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(110, 69, 226, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(110, 69, 226, 0); }
}

/* Status Display Styles */
.status-display {
    text-align: center;
    margin: 60px 0 20px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.status-text {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.language-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.language-toggle .lang-option {
    cursor: pointer;
    padding: 5px 10px;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: 5px;
    transition: var(--transition);
}

.language-toggle .lang-option.active {
    font-weight: bold;
    background: rgba(0, 123, 255, 0.2);
    color: var(--primary-color);
}

/* Conversation Window Styles */
.conversation-window {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 20px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar */
.conversation-window::-webkit-scrollbar {
    width: 8px;
}

.conversation-window::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.conversation-window::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.5);
    border-radius: 10px;
}

.conversation-window::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.7);
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0, 123, 255, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.conversation-window:hover .scroll-indicator {
    opacity: 1;
}

/* Messages Container Styles */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Message Styles */
.message {
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    animation: messageFallIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-50px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes messageFallIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    60% {
        opacity: 1;
        transform: translateY(10px);
    }
    80% {
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user-message {
    align-self: flex-end;
    background: var(--message-user-bg);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.assistant-message {
    align-self: flex-start;
    background: var(--message-assistant-bg);
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    animation: messageShine 2s linear infinite;
}

@keyframes messageShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Input Panel Styles */
.input-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.input-field {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 15px 20px;
    min-height: 60px;
    max-height: 150px;
    outline: none;
    font-size: 16px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    cursor: text;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(110, 69, 226, 0.2);
    border-color: rgba(110, 69, 226, 0.3);
}

.input-field[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
    pointer-events: none;
}

.input-field::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        var(--primary-color),
        var(--accent-color),
        var(--primary-color)
    );
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.input-field:focus::after {
    transform: translateX(0);
}

/* Reduced animation intensity for action buttons */
.action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Simplified icon styles */
.voice-btn i, .camera-btn i, .send-btn i, .stop-btn i {
    position: relative;
    z-index: 3;
    font-size: 24px;
    transition: transform 0.2s ease;
}

/* Specific button colors without excessive effects */
.voice-btn i {
    color: #d63031;
}

.camera-btn i {
    color: #0984e3;
}

.send-btn i {
    color: #00b894;
}

.stop-btn i {
    color: #d63031;
}

/* Simplified hover effects */
.action-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.action-btn:hover i {
    transform: scale(1.05);
}

/* Remove excessive animations */
.action-btn::before,
.action-btn::after {
    display: none;
}

/* Simplified dark mode styles */
body.dark-mode .action-btn {
    background: rgba(50, 50, 50, 0.4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .action-btn:hover {
    background: rgba(50, 50, 50, 0.5);
}

/* Remove pulsing animations */
@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
}

/* Remove glow animations */
@keyframes iconGlow {
    0%, 100% { filter: none; }
}

@keyframes iconGlowHover {
    0%, 100% { filter: none; }
}

/* Voice Language Toggle Styles */
.voice-language-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.voice-language-toggle .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

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

.voice-language-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.voice-language-toggle .slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.voice-language-toggle .switch input:checked + .slider {
    background-color: var(--primary-color);
}

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

/* Social Media Quick Action Buttons */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.quick-actions .action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-actions .action-btn i {
    font-size: 24px;
    margin-bottom: 5px;
}

.quick-actions .action-btn span {
    font-size: 12px;
    font-weight: 500;
}

/* Social Media Button Colors */
.google-btn i {
    color: #DB4437;
}

.insta-btn i {
    color: #E1306C;
}

.fb-btn i {
    color: #4267B2;
}

.twitter-btn i {
    color: #1DA1F2;
}

.youtube-btn i {
    color: #FF0000;
}

/* Hover Effects */
.quick-actions .action-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
    background: rgba(219, 68, 55, 0.1);
}

.insta-btn:hover {
    background: rgba(225, 48, 108, 0.1);
}

.fb-btn:hover {
    background: rgba(66, 103, 178, 0.1);
}

.twitter-btn:hover {
    background: rgba(29, 161, 242, 0.1);
}

.youtube-btn:hover {
    background: rgba(255, 0, 0, 0.1);
}

/* Dark Mode Adjustments */
body.dark-mode .quick-actions .action-btn {
    background: rgba(50, 50, 50, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .quick-actions .action-btn:hover {
    background: rgba(50, 50, 50, 0.6);
}

/* Features Panel Styles */
.features-panel {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.feature-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.feature-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-btn i {
    font-size: 18px;
}

.feature-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-btn:hover::after {
    opacity: 1;
    animation: buttonGlow 1.5s ease-in-out infinite;
}

/* Dark Mode Toggle Styles */
.dark-mode-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.dark-mode-toggle .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

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

.dark-mode-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.dark-mode-toggle .slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.dark-mode-toggle .switch input:checked + .slider {
    background-color: var(--primary-color);
}

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

.toggle-label {
    font-size: 14px;
    color: var(--text-dark);
}

/* Translation Panel Styles */
.translation-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

body.dark-mode .translation-panel {
    background: #2c3e50;
    color: white;
}

.translation-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.translation-header h3 {
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.translation-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.translation-input, .translation-output {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.translation-text {
    min-height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
}

body.dark-mode .translation-text {
    background: #34495e;
    color: white;
    border-color: #444;
}

#translatedText {
    background: #f9f9f9;
}

body.dark-mode #translatedText {
    background: #3d5166;
}

.translate-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.translate-btn:hover {
    background: var(--accent-color);
}

/* Apps Panel Styles */
.apps-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

body.dark-mode .apps-panel {
    background: #2c3e50;
    color: white;
}

.apps-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apps-header h3 {
    font-weight: 500;
}

.apps-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.apps-close-btn:hover {
    transform: rotate(90deg);
}

.apps-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.app-item {
    flex: 1 1 calc(50% - 15px);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

body.dark-mode .app-item {
    background: #34495e;
    color: white;
}

.app-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.app-item i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.app-item span {
    font-size: 14px;
    font-weight: 500;
}

/* New Orb Glow Animation */
@keyframes orbGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
                          inset 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 5px 25px rgba(110, 69, 226, 0.4),
                      inset 0 0 30px rgba(255, 255, 255, 0.5); }
}

/* Dark Mode Enhancement */
body.dark-mode .assistant-app {
    background: rgba(30, 30, 30, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .gradient-bg {
    background: linear-gradient(135deg, 
        rgba(106, 17, 203, 0.3), 
        rgba(37, 117, 252, 0.3),
        rgba(0, 255, 255, 0.2));
}

/* Tech Lines */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.1) 50%),
        linear-gradient(0deg, transparent 50%, rgba(255,255,255,0.1) 50%);
    background-size: 30px 30px;
    animation: techLinesMove 20s linear infinite;
}

@keyframes techLinesMove {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

/* Orb Scanner */
.orb-scanner {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0% { transform: translateY(-40px); opacity: 0; }
    50% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* Enhanced Dark Mode */
body.dark-mode .tech-lines {
    background: 
        linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.05) 50%),
        linear-gradient(0deg, transparent 50%, rgba(255,255,255,0.05) 50%);
}

body.dark-mode .orb-scanner {
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
}

/* Add a background highlight to the input panel */
.input-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: translateX(-100%);
    animation: panelShine 3s infinite;
}

@keyframes panelShine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Calculator Modal Styles */
.calculator-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode .calculator-modal {
    background: rgba(40, 40, 40, 0.95);
    color: white;
}

.calculator-header {
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-header h3 {
    font-weight: 500;
    margin: 0;
}

.calculator-body {
    padding: 20px;
}

.calculator-display {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    padding: 15px;
    text-align: right;
    font-size: 24px;
    border-radius: 8px;
    margin-bottom: 15px;
    min-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .calculator-display {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    padding: 15px 0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.dark-mode .calc-btn {
    background: rgba(60, 60, 60, 0.8);
    color: white;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.dark-mode .calc-btn:hover {
    background: rgba(80, 80, 80, 0.8);
}

.calc-btn.operator {
    background: rgba(110, 69, 226, 0.2);
    color: var(--primary-color);
    font-weight: bold;
}

body.dark-mode .calc-btn.operator {
    background: rgba(110, 69, 226, 0.3);
    color: #a890e8;
}

.calc-btn.equals {
    background: var(--primary-color);
    color: white;
    grid-column: span 2;
}

.calc-btn.zero {
    grid-column: span 2;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}