File size: 3,379 Bytes
593ae59
 
 
11c6e39
593ae59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11c6e39
 
593ae59
 
 
11c6e39
593ae59
 
 
 
 
11c6e39
 
593ae59
 
 
11c6e39
593ae59
 
 
 
 
 
11c6e39
 
593ae59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11c6e39
 
593ae59
 
 
11c6e39
 
593ae59
 
 
 
 
11c6e39
 
 
593ae59
 
11c6e39
 
593ae59
 
 
11c6e39
 
 
593ae59
 
11c6e39
 
593ae59
 
 
 
 
 
 
 
11c6e39
 
593ae59
 
 
 
 
11c6e39
 
593ae59
 
11c6e39
 
593ae59
 
11c6e39
 
593ae59
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11c6e39
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
/* ---------------------------
   Global styles
--------------------------- */
body {
    font-family: 'Inter', sans-serif;
    background: #1f2937; /* Tailwind gray-900 */
    color: white;
}

h1, h2, h3 {
    line-height: 1.3;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

/* ---------------------------
   Glass card
--------------------------- */
.glass-card {
    background: rgba(31, 41, 55, 0.65); /* Tailwind gray-900 + transparency */
    backdrop-filter: blur(12px);
    border-radius: 1rem; /* rounded-xl */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* ---------------------------
   Buttons
--------------------------- */
.btn-primary {
    background-color: #10B981; /* Tailwind green-500 */
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}
.btn-primary:hover {
    background-color: #059669; /* Tailwind green-600 */
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

/* ---------------------------
   Confidence bar
--------------------------- */
.confidence-bar {
    width: 100%;
    height: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10B981, #34D399); /* green gradient */
    border-radius: 0.5rem;
    transition: width 1s ease-in-out;
}

/* ---------------------------
   Badges (Risk)
--------------------------- */
.badge {
    display: inline-block;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.badge-low {
    background-color: #34D399; /* green */
    color: #064E3B;
}

.badge-medium {
    background-color: #FBBF24; /* yellow */
    color: #78350F;
}

.badge-high {
    background-color: #F87171; /* red */
    color: #7F1D1D;
}

/* ---------------------------
   Footer
--------------------------- */
.footer {
    text-align: center;
    margin-top: 3rem;
    color: #9CA3AF; /* Tailwind gray-400 */
    font-size: 0.875rem;
}

/* ---------------------------
   Table
--------------------------- */
table {
    border-collapse: collapse;
}

thead th {
    background-color: #1f2937; /* gray-800 */
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ---------------------------
   Scrollable history list
--------------------------- */
#historyList {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* ---------------------------
   Grad-CAM Image
--------------------------- */
#camImage {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

/* ---------------------------
   Inputs
--------------------------- */
input[type="file"], input[type="text"], input[type="password"] {
    background-color: white;
    color: black;
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    padding: 0.5rem;
    border-radius: 0.5rem;
    width: 100%;
}

input[type="file"]:focus, input[type="text"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}