File size: 4,937 Bytes
04b72bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/* ═══════════════════════════════════════════════════
   SentiMeter β€” history.css
   Riwayat Analisis Page Styles
   ═══════════════════════════════════════════════════ */

/* ── History Header Badge ── */
.hist-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acc-d);
  color: var(--acc);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid var(--acc-d2);
}

/* ── History Header & Empty State ── */
.history-empty {
  text-align: center;
  padding: 100px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center vertically if needed */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Subtle glow effect for empty state */
.history-empty::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, var(--acc-d) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.history-empty h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--tx1);
  letter-spacing: -0.4px;
  position: relative;
}

.history-empty p {
  color: var(--tx2);
  font-size: 13.5px;
  margin-bottom: 32px;
  max-width: 380px;
  line-height: 1.6;
  position: relative;
}

.empty-cta {
  min-width: 200px;
  position: relative;
  font-size: 13.5px;
}

/* ── Premium History Card ── */
.history-container {
  display: flex;
  flex-direction: column;
  gap: 24px; /* More compact gap */
}

.hist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r2); /* Neater radius */
  padding: 16px 20px; /* More compact padding */
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: revealUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.hist-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--acc-d2);
}

.hist-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.hist-filename {
  font-size: 14.5px; /* Reduced font size */
  font-weight: 700;
  color: var(--tx1);
  font-size: 13.5px; /* Neater size */
  font-weight: 700;
  color: var(--tx1);
  margin-bottom: 2px;
  line-height: 1.2;
}

.hist-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px; /* Smaller meta */
  color: var(--tx3);
}

.hist-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Visual Sentiment Bar ── */
.hist-visual {
  margin-top: 0px;
}

.hist-bar-outer {
  height: 6px; /* Slightly thinner */
  background: var(--bg-card2);
  border-radius: 100px;
  display: flex;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border-s);
}

.hist-bar-segment {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hist-bar-segment.pos { background: var(--pos); }
.hist-bar-segment.neu { background: var(--neu); }
.hist-bar-segment.neg { background: var(--neg); }

/* ── Stats Row ── */
.hist-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 12px 16px; /* More compact stats area */
  background: var(--bg-card2);
  border-radius: var(--r2);
  border: 1px solid var(--border-s);
  margin-top: 2px;
}

.hist-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.hist-stat-label {
  font-size: 10.5px; /* Tiny, elegant labels */
  color: var(--tx3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hist-stat-val {
  color: var(--tx1);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hist-stat-unit {
  font-size: 10px;
  font-weight: 500;
  color: var(--tx3);
}

.hist-stat-val.pos { color: var(--pos); }
.hist-stat-val.neg { color: var(--neg); }
.hist-stat-val.neu { color: var(--neu); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .history-header {
    padding: 24px 16px;
  }
  .hist-card {
    padding: 16px;
  }
  .hist-card-top {
    flex-direction: column;
    gap: 12px;
  }
  .hist-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hist-actions {
    width: 100%;
    justify-content: stretch;
    flex-direction: row; /* stack side-by-side but take full width */
    margin-top: 4px;
  }
  .hist-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .hist-stats {
    gap: 12px;
    padding: 12px;
    justify-content: flex-start;
  }
}