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

body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
  padding: 30px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  color: #111827;
}

.subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #6b7280;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: #1d4ed8;
}

.zone {
  min-height: 100px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8fafc;
  text-align: center;
  padding: 20px;
  transition: 0.3s;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  color: white;
  background: #2563eb;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: #7c3aed;
}

.btn-danger {
  background: #dc2626;
}

.input,
select {
  width: 100%;
  padding: 12px;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
  margin-bottom: 12px;
}

.info {
  margin-top: 12px;
  font-weight: bold;
  color: #374151;
  min-height: 24px;
}

.mouse-box {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  background: #e0f2fe;
  border: 2px solid #7dd3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
  user-select: none;
}

.keyboard-screen {
  background: #111827;
  color: #ffffff;
  border-radius: 12px;
  padding: 20px;
  font-size: 22px;
  text-align: center;
  min-height: 70px;
}

.form-group {
  margin-bottom: 10px;
}

.status {
  margin-top: 10px;
  padding: 12px;
  background: #eff6ff;
  border-radius: 10px;
  color: #1e40af;
  min-height: 45px;
}

.footer-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 14px;
  background: #111827;
  color: white;
  text-align: center;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
