File size: 1,929 Bytes
11a0fc5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* frontend/styles.css */

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.3s, color 0.3s;
}

/* LIGHT MODE */
body.light {
    background: #f5f7fb;
    color: #333;
}

/* DARK MODE */
body.dark {
    background: #121212;
    color: #eee;
}

/* Container */
.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
}

/* Toggle Button */
.toggle-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #333;
    color: white;
}

/* Chat Feed (Scrollable) */
.chat-feed {
    margin-top: 20px;
    height: 500px;              /* FIXED HEIGHT */
    overflow-y: auto;           /* SCROLL ENABLED */
    padding-right: 10px;
}

/* Chat Cards */
.chat-card {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

/* Light card */
body.light .chat-card {
    background: white;
}

/* Dark card */
body.dark .chat-card {
    background: #1e1e1e;
}

/* Hover effect */
.chat-card:hover {
    transform: translateY(-3px);
}

.author {
    font-weight: bold;
}

.message {
    margin: 5px 0 10px;
}

/* Sentiment badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    margin-right: 8px;
}

.positive { background: #4CAF50; }
.neutral { background: #FFC107; color: black; }
.negative { background: #F44336; }

/* Confidence bar */
.confidence-bar {
    margin-top: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.fill {
    height: 8px;
    border-radius: 5px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
}