File size: 3,752 Bytes
af53f00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* Reset base */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

/* Corpo */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background-color: rgba(42, 77, 111, 0.9);
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.2em;
}

header p {
    font-size: 1.2em;
}

/* Logo */
#logo {
    display: block;
    margin: 0 auto;
    max-width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.2);
}

/* Form principale */
form {
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    padding: 25px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    font-size: 1.05em;
    margin: 12px 0 5px;
    font-weight: bold;
    color: #2a4d6f;
}

input[type="file"],
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

/* Input file */
input[type="file"]::file-selector-button {
    padding: 6px 12px;
    margin-right: 10px;
    background-color: #2a4d6f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #1a3d56;
}

/* Pulsanti */
button {
    width: 100%;
    background-color: #2a4d6f;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

button:hover {
    background-color: #1a3d56;
    transform: scale(1.02);
}

/* Risultati */
.results {
    padding: 25px;
    background-color: #fff;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    overflow-x: auto;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

th {
    background-color: #2a4d6f;
    color: #fff;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #eef3f7;
}

table th, table td {
    font-size: 1em;
    word-wrap: break-word;
}

/* Grafico */
#chart-container {
    width: 100%;
    max-width: 1000px;
    height: 500px;
    margin: 40px auto;
}

canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Barra di caricamento */
#progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 20px;
}

#progress-bar {
    height: 20px;
    width: 0;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    text-align: center;
    line-height: 20px;
    color: white;
    font-weight: bold;
    transition: width 0.4s ease;
}

/* Quando al 100%, barra diventa blu */
#progress-bar.complete {
    background: linear-gradient(90deg, #2196f3 0%, #21cbf3 100%);
}

/* Footer */
footer {
    background-color: #2a4d6f;
    color: #fff;
    text-align: center;
    padding: 15px;
    width: 100%;
    font-size: 1em;
    margin-top: auto;
}

/* Responsive layout */
@media screen and (max-width: 600px) {
    form, .results {
        width: 95%;
        padding: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 1em;
    }
}