File size: 3,293 Bytes
b2c4d82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
331d719
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* static/css/terminal.css */
.terminal-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 65px); /* Subtract top bar */
    padding: 20px;
    gap: 20px;
    box-sizing: border-box;
}

/* Left Side: Main Terminal Window */
.terminal-main {
    flex: 2;
    background: rgba(10, 10, 12, 0.9);
    border: var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    height: 40px;
    background: rgba(20, 20, 25, 0.8);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
}

.term-tab {
    padding: 5px 15px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
}

.term-tab.active {
    background: rgba(255, 193, 7, 0.1);
    color: var(--accent-main);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.terminal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.term-msg { white-space: pre-wrap; word-wrap: break-word; }
.term-msg.user { color: var(--accent-main); }
.term-msg.system { color: #888; font-style: italic; }
.term-msg.output { color: #e0e0e0; }
.term-msg.error { color: var(--error-color); }
.term-msg.ai { color: #00e676; }

.terminal-input-area {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-top: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
}

#prompt-text {
    color: var(--accent-main);
    font-weight: 500;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

/* Right Side: AI Assistant & Commands */
.terminal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.glass-panel {
    background: rgba(15, 15, 18, 0.7);
    backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .terminal-layout { flex-direction: column; }
    .terminal-sidebar { min-width: 100%; }
}

/* Add to static/css/terminal.css */

/* Update input area to handle the new form tag */
form.terminal-input-area {
    margin: 0; /* Remove default form margins */
}

#terminal-send-btn {
    padding: 8px 16px;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    height: 100%; /* Fill the area */
}