/* Fullscreen Terminal Updates & AI Assistant Update */

.terminal-fullscreen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.terminal-fullscreen.hidden {
    opacity: 0;
    pointer-events: none;
}

.terminal-container {
    width: 100%; height: 100%;
    background: transparent;
    display: flex; flex-direction: column;
    padding: 2rem;
    font-family: var(--font-mono);
}

.terminal-top-bar {
    display: flex; justify-content: space-between;
    border-bottom: 2px solid #333; padding-bottom: 10px; margin-bottom: 20px;
    color: var(--text-secondary); font-size: 1rem;
}

.close-btn { color: #ff0000; font-weight: bold; }

.terminal-body {
    flex-grow: 1; overflow-y: auto; color: #00ff00; font-size: 1.2rem;
}

.terminal-input-line {
    display: flex; padding-top: 20px; border-top: 1px solid #333;
}

.prompt { color: var(--primary); margin-right: 15px; font-size: 1.2rem; }
#terminal-input { flex-grow: 1; background: transparent; border: none; color: #00ff00; font-family: var(--font-mono); font-size: 1.2rem; outline: none; }

/* Holographic AI Orb */
.ai-hologram-orb {
    position: fixed; bottom: 40px; right: 40px; width: 70px; height: 70px;
    z-index: 900; display: flex; align-items: center; justify-content: center;
    cursor: none;
    transition: transform 0.3s;
}

.ai-hologram-orb:hover {
    transform: scale(1.1);
}

.ai-hologram-orb .orb-core {
    width: 45px; height: 45px; border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--primary));
    box-shadow: 0 0 30px var(--primary), inset 0 0 20px #fff;
    animation: hologramPulse 2s infinite alternate;
}

.ai-hologram-orb .orb-particles {
    position: absolute; width: 100px; height: 100px;
    border: 2px dashed rgba(0, 217, 255, 0.4); border-radius: 50%;
    animation: rotate 8s linear infinite;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2) inset;
}

.orb-label {
    position: absolute; bottom: -30px;
    font-family: var(--font-mono); font-size: 0.75rem; color: #fff;
    background: rgba(0, 0, 0, 0.8); padding: 4px 10px; border-radius: 12px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    white-space: nowrap;
}

@keyframes hologramPulse {
    0% { transform: scale(0.9); opacity: 0.8; filter: drop-shadow(0 0 10px var(--primary)); }
    100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 30px var(--primary)); }
}

/* Chat Panel update for OS theme */
.ai-chat-panel {
    position: fixed;
    bottom: 130px;
    right: 40px;
    width: 360px;
    height: 480px;
    border: 1px solid rgba(0, 217, 255, 0.4);
    background: rgba(5, 8, 22, 0.85);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 217, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-panel.hidden {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(90deg, rgba(0, 217, 255, 0.15), transparent);
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    font-family: var(--font-mono);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

#close-chat {
    color: var(--text-secondary);
    transition: color 0.2s;
}

#close-chat:hover {
    color: #ff0000;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.ai-msg {
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #fff;
}

.user-msg {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: #fff;
}

.chat-input-area {
    display: flex;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    align-items: center;
}

#chat-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

#chat-input::placeholder {
    color: var(--text-secondary);
}

#send-chat {
    color: var(--primary);
    margin-left: 15px;
    font-weight: bold;
    padding: 8px 12px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary);
    transition: all 0.2s;
}

#send-chat:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}
