/* JARVIS Advanced AI System - Stylesheet */
/* Futuristic Holographic Interface */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --bg-dark: #0a0e17;
    --bg-panel: rgba(10, 20, 40, 0.85);
    --bg-glass: rgba(20, 40, 80, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0c4ff;
    --text-dim: #6b8cae;
    --border-glow: rgba(0, 212, 255, 0.5);
    --success: #00ff88;
    --warning: #ffaa00;
    --error: #ff4444;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.holographic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 153, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

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

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

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

/* Main Container */
.jarvis-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.jarvis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: var(--bg-panel);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.jarvis-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.jarvis-logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: blink 1.5s infinite;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

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

.header-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Interface Layout */
.main-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.core-display {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

/* Panels */
.left-panel, .right-panel {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.panel-section {
    margin-bottom: 25px;
}

.panel-section h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Core Visualization */
.core-visualization {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.core-ring.outer {
    width: 150px;
    height: 150px;
    border-color: rgba(0, 212, 255, 0.3);
    border-top-color: var(--primary-color);
    animation-duration: 10s;
}

.core-ring.middle {
    width: 110px;
    height: 110px;
    border-color: rgba(0, 212, 255, 0.4);
    border-bottom-color: var(--primary-color);
    animation-duration: 7s;
    animation-direction: reverse;
}

.core-ring.inner {
    width: 70px;
    height: 70px;
    border-color: rgba(0, 212, 255, 0.5);
    border-left-color: var(--primary-color);
    animation-duration: 5s;
}

.core-center {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.core-center i {
    font-size: 1.2rem;
    color: var(--bg-dark);
}

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

/* Stats */
.core-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.stat-value {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

/* Module List */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.module-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.module-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.module-item.active {
    border-color: rgba(0, 255, 136, 0.3);
}

.module-pulse {
    position: absolute;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-dot 1.5s infinite;
}

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

/* Center Panel */
.center-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hologram Container */
.hologram-container {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.hologram-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: hologram-pulse 3s ease-in-out infinite;
}

@keyframes hologram-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.hologram-content {
    position: relative;
    z-index: 10;
}

/* JARVIS Avatar */
.jarvis-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.avatar-core {
    width: 80px;
    height: 80px;
    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 40px rgba(0, 212, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.avatar-core i {
    font-size: 2.5rem;
    color: var(--bg-dark);
}

.avatar-rings {
    position: absolute;
    width: 100%;
    height: 100%;
}

.avatar-rings span {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ring-expand 2s ease-out infinite;
}

.avatar-rings span:nth-child(1) { width: 100%; height: 100%; animation-delay: 0s; }
.avatar-rings span:nth-child(2) { width: 130%; height: 130%; top: -15%; left: -15%; animation-delay: 0.5s; }
.avatar-rings span:nth-child(3) { width: 160%; height: 160%; top: -30%; left: -30%; animation-delay: 1s; }

@keyframes ring-expand {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Voice Waves */
.voice-waves {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.voice-waves span {
    width: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: wave 0.5s 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(1); }
    50% { transform: scaleY(1.5); }
}

/* Response Display */
.response-display {
    flex: 1;
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.response-header {
    padding: 12px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--primary-color);
}

.response-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-size: 1rem;
    line-height: 1.6;
}

.welcome-message {
    text-align: center;
    padding: 40px 20px;
}

.welcome-message .greeting {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.welcome-message .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.welcome-message .ready {
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* Chat Messages */
.chat-message {
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.user {
    text-align: right;
}

.chat-message .message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 15px;
    word-wrap: break-word;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    border-bottom-right-radius: 4px;
}

.chat-message.jarvis .message-bubble {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message .timestamp {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Input Container */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.voice-btn, .send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.voice-btn {
    background: var(--bg-glass);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.voice-btn:hover, .voice-btn.listening {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.voice-btn.listening {
    animation: listening-pulse 1s infinite;
}

@keyframes listening-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.8); }
}

.send-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

#commandInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 10px;
    outline: none;
}

#commandInput::placeholder {
    color: var(--text-dim);
}

/* Quick Commands */
.quick-commands {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Right Panel */
.time-display {
    text-align: center;
    padding: 20px;
    background: var(--bg-glass);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.digital-clock {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin-bottom: 5px;
}

.date-display {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* History */
.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
}

/* Capability Grid */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.capability-item {
    aspect-ratio: 1;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.capability-item:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-panel);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
}

.modal-header {
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--error);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Code Editor */
.code-editor textarea {
    width: 100%;
    height: 200px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    resize: vertical;
    outline: none;
}

.code-editor textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.code-output {
    margin-top: 15px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.output-header {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.output-content {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

/* Calculator */
.calc-modal {
    max-width: 400px;
}

.calc-display {
    background: var(--bg-dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: right;
    margin-bottom: 15px;
    min-height: 60px;
    word-wrap: break-word;
}

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

.calc-btn {
    aspect-ratio: 1;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
}

.calc-btn.func {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.calc-btn.equals {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
}

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

.adv-btn {
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.adv-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

/* Phone Interface */
.phone-modal {
    max-width: 350px;
}

.phone-interface {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phone-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 25px;
    padding: 20px;
    border: 3px solid #333;
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
}

.phone-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #fff;
}

.phone-icons {
    display: flex;
    gap: 8px;
}

.phone-apps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    flex: 1;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-icon:hover {
    transform: scale(1.1);
}

.app-icon i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--bg-dark);
}

.app-icon span {
    font-size: 0.75rem;
    color: #fff;
}

.phone-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.phone-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-family: var(--font-display);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.phone-btn:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.phone-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-actions input {
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.action-btn {
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.action-btn:hover {
    background: rgba(0, 212, 255, 0.2);
}

/* Buttons */
.execute-btn, .clear-btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s;
}

.execute-btn {
    background: linear-gradient(135deg, var(--success), #00cc66);
    border: none;
    color: var(--bg-dark);
}

.execute-btn:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.clear-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--text-secondary);
}

.clear-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .core-display {
        grid-template-columns: 1fr;
    }
    
    .left-panel, .right-panel {
        display: none;
    }
}

@media (max-width: 768px) {
    .jarvis-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
    }
    
    .hologram-container {
        height: 200px;
    }
    
    .welcome-message .greeting {
        font-size: 1.4rem;
    }
    
    .quick-commands {
        display: none;
    }
}

/* Typing Effect */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 15px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Result Cards */
.result-card {
    background: var(--bg-glass);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
}

.result-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.result-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Code Block */
.code-block {
    background: var(--bg-dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    overflow-x: auto;
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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