  /* Reset and base */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e9f874, #72d572);
    color: #f8f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
  }

  h1 {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
  }

  .container {
    max-width: 350px;
    width: 100%;
    background: rgba(255 255 255 / 0.12);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    padding: 20px;
    backdrop-filter: blur(10px);
  }

  .dashboard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .stat {
    background: rgba(255 255 255 /0.18);
    flex: 1;
    margin: 0 5px;
    border-radius: 12px;
    padding: 15px 12px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
    transition: 0.3s ease;
  }
  .stat:first-child {
    margin-left: 0;
  }
  .stat:last-child {
    margin-right: 0;
  }
  .stat h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  .stat p {
    font-size: 1.1rem;
    font-weight: 600;
  }

  form {
    margin-bottom: 20px;
    background: rgba(255 255 255 / 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.3);
  }

  form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 0.9rem;
  }

  form select,
  form input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 1rem;
  }

  form button {
    background: #2e7d32;
    color: #d8f5d8;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
  }

  form button:hover {
    background: #246b27;
  }

  /* Chart container */
  .chart-container {
    background: rgba(255 255 255 / 0.1);
    border-radius: 15px;
    padding: 12px 15px;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.25);
  }

  .chart-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  canvas {
    width: 100% !important;
    max-height: 180px;
    border-radius: 10px;
  }

  /* Footer */
  footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: rgba(255 255 255 / 0.6);
    padding: 5px;
    text-align: center;
  }

  /* Responsive - fit height 600px and width 350px max */
  @media (max-width: 380px) {
    body {
      padding: 10px 5px;
    }
    .container {
      max-width: 100%;
      padding: 15px 12px;
    }
    h1 {
      font-size: 1.5rem;
    }
  }