@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00f3ff;
    --secondary-color: #00a2ff;
    --accent-color: #ff003c;
    --background-color: #0a0e17;
    --panel-color: rgba(15, 25, 45, 0.85);
    --text-color: #e0f4ff;
    --success-color: #00ff9d;
    --warning-color: #ffcc00;
    --error-color: #ff3366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 163, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 70%, rgba(0, 243, 255, 0.1) 0%, transparent 20%),
        linear-gradient(to bottom, #0a0e17, #050813);
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: var(--panel-color);
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 163, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary-color);
}

.logo-icon i {
    color: var(--background-color);
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--text-color);
    font-size: 12px;
    letter-spacing: 1.5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: var(--panel-color);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 163, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.assistant-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.visual-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.hud-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px;
}

.hud-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.hud-label {
    color: var(--primary-color);
    font-size: 12px;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.hud-value {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.robot-face {
    width: 220px;
    height: 220px;
    position: relative;
    margin: 20px 0;
}

.helmet {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a243a, #0f1729);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(0, 243, 255, 0.2);
    box-shadow: 
        0 0 30px rgba(0, 163, 255, 0.2),
        inset 0 0 30px rgba(0, 163, 255, 0.1);
    overflow: hidden;
}

.faceplate {
    width: 80%;
    height: 80%;
    background: rgba(10, 14, 23, 0.7);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.eyes {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.eye {
    width: 40px;
    height: 60px;
    background: #0a0e17;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.pupil {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 20px;
    left: 10px;
    box-shadow: 0 0 15px var(--primary-color);
    animation: blink 5s infinite;
}

@keyframes blink {
    0%, 95%, 100% { height: 20px; top: 20px; }
    96%, 99% { height: 5px; top: 30px; }
}

.assistant-status {
    text-align: center;
    margin-top: 20px;
}

.assistant-status h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.assistant-status p {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.input-box {
    display: flex;
    width: 100%;
    max-width: 500px;
    height: 55px;
    border-radius: 30px;
    background: rgba(10, 14, 23, 0.7);
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.1);
}

.talk-btn {
    background: transparent;
    border: none;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.talk-btn:hover {
    background: rgba(0, 243, 255, 0.1);
}

.talk-btn i {
    font-size: 22px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.command-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 20px;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Rajdhani', sans-serif;
}

.command-input::placeholder {
    color: rgba(224, 244, 255, 0.5);
}

.listening-animation {
    display: none;
    text-align: center;
    margin-top: 15px;
}

.wave {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    margin: 0 2px;
    border-radius: 2px;
    animation: wave 1.2s infinite ease-in-out;
    box-shadow: 0 0 5px var(--primary-color);
}

.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }
.wave:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

.history-panel {
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.panel-header h2 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 1px;
}

.clear-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: rgba(255, 0, 60, 0.1);
}

.history-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding-right: 5px;
}

.history-list::-webkit-scrollbar {
    width: 5px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.history-item {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: rgba(10, 14, 23, 0.5);
    display: flex;
    flex-direction: column;
    border-left: 3px solid transparent;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.history-item.user {
    border-left-color: var(--secondary-color);
}

.history-item.system {
    border-left-color: var(--primary-color);
}

.history-item.jarvis {
    border-left-color: var(--accent-color);
}

.user-command {
    color: var(--secondary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-command i {
    font-size: 12px;
}

.assistant-response {
    color: var(--text-color);
    margin-top: 8px;
    font-size: 14px;
    padding-left: 20px;
}

.commands-panel {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.command-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.command-category {
    background: rgba(10, 14, 23, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

.command-category h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-list {
    list-style: none;
}

.command-list li {
    padding: 8px 0;
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.command-list li:last-child {
    border-bottom: none;
}

.command-list li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 12px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    font-size: 14px;
    margin-top: 30px;
    opacity: 0.7;
}

.settings-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--panel-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.2);
    transition: all 0.3s;
}

.settings-toggle:hover {
    transform: rotate(45deg);
    box-shadow: 0 0 20px var(--primary-color);
}

.settings-toggle i {
    color: var(--primary-color);
    font-size: 20px;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--panel-color);
    padding: 25px;
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.settings-panel.open {
    right: 0;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.settings-header h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
}

.close-settings {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-settings:hover {
    color: var(--accent-color);
}

.setting-item {
    margin-bottom: 20px;
}

.setting-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.setting-item select, .setting-item input[type="range"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(10, 14, 23, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--text-color);
    font-family: 'Rajdhani', sans-serif;
}

.setting-item input[type="range"] {
    padding: 0;
    height: 8px;
    -webkit-appearance: none; /* WebKit/Blink browsers */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Standard syntax */
    background: rgba(10, 14, 23, 0.7);
    border-radius: 4px;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
}

.setting-item input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-color);
    border: none;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(224, 244, 255, 0.7);
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 20px;
    background: rgba(10, 14, 23, 0.7);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.checkbox-container input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-color);
    border-radius: 50%;
    top: 1px;
    left: 2px;
    transition: all 0.3s;
}

.checkbox-container input[type="checkbox"]:checked {
    background: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked::before {
    left: 21px;
    background: var(--background-color);
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.reset-btn:hover {
    background: rgba(255, 0, 60, 0.1);
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .command-categories {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        width: 300px;
    }
    
    .robot-face {
        width: 180px;
        height: 180px;
    }
    
    .eyes {
        gap: 30px;
    }
    
    .eye {
        width: 35px;
        height: 50px;
    }
    
    .hud-container {
        flex-direction: column;
        gap: 10px;
    }
} /* Added the missing closing brace here */

/* Add this to your style.css file */
.talk-btn.listening {
    background: rgba(255, 0, 60, 0.2) !important;
    box-shadow: 0 0 15px var(--accent-color) !important;
}

.talk-btn.listening i {
    color: var(--accent-color) !important;
    text-shadow: 0 0 10px var(--accent-color) !important;
}
