torch/static/style.css
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  padding: 30px 20px 10px;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 0;
}

.train-link {
  font-size: 16px;
  color: #4a4aef;
  text-decoration: none;
  margin-top: 10px;
  display: inline-block;
}

.train-link:hover {
  text-decoration: underline;
}

.container {
  background: #fff;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

h2 {
  margin-bottom: 20px;
}

canvas {
  border: 2px solid #333;
  background: #fff;
  cursor: crosshair;
  margin-bottom: 15px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.25s;
}

.predict-btn {
  background-color: #28a745;
}
.predict-btn:hover {
  background-color: #218838;
}

.clear-btn {
  background-color: #6c757d;
}
.clear-btn:hover {
  background-color: #5a6268;
}

#result {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.bar-container {
  width: 100%;
  max-width: 300px;
  margin: auto;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}

.bar {
  height: 18px;
  background-color: #4CAF50;
  border-radius: 4px;
  margin-bottom: 8px;
}

footer {
  margin-top: auto;
  padding: 20px;
  font-size: 14px;
  color: #666;
}


.back-button {
    display: inline-block;
    padding: 10px 16px;
    background-color: #606263;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 10px;
}
.back-button:hover {
    background-color: #d32f2f;
}