* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.start-btn {
  background: linear-gradient(45deg, #4caf50, #45a049);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
}

.start-btn:active {
  transform: translateY(0);
}

.webcam-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.webcam-container canvas {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
}

.label-container {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 15px;
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.label-container div {
  text-align: center;
  line-height: 1.4;
}

.eco-info {
  margin-top: 20px;
  padding: 15px;
  background: rgba(46, 204, 113, 0.1);
  border-radius: 10px;
  border-left: 4px solid #2ecc71;
  font-size: 0.9rem;
  color: #27ae60;
}

.loading {
  display: none;
  margin: 20px 0;
  color: #7f8c8d;
  font-style: italic;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
    margin: 10px;
  }

  .title {
    font-size: 2rem;
  }

  .start-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .label-container {
    font-size: 1.1rem;
    padding: 15px;
  }
}
