NORUS2 / static /css /style.css
mabil's picture
Uploaded NORUS app files
af53f00
/* 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;
}
}