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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #2d2d2f;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: #1a1a1c;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #c0c0c0;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #808080;
  font-size: 14px;
  margin-bottom: 30px;
}

.mouse-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.button-viz {
  background: #2d2d2f;
  border: 3px solid #3a3a3c;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #a0a0a0;
  user-select: none;
}

.left-button {
  grid-column: 1;
  grid-row: 1;
}

.middle-button {
  grid-column: 2;
  grid-row: 1;
}

.right-button {
  grid-column: 3;
  grid-row: 1;
}

.forward-button {
  grid-column: 1 / 2;
  grid-row: 2;
}

.back-button {
  grid-column: 3 / 4;
  grid-row: 2;
}

.button-viz.active {
  background: #4caf50;
  border-color: #45a049;
  color: white;
  transform: scale(0.95);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(76, 175, 80, 0.4);
}

.wheel-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.wheel-indicator {
  background: #2d2d2f;
  border: 3px solid #3a3a3c;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: #64b5f6;
  user-select: none;
  transition: all 0.2s ease;
}

.wheel-indicator.active {
  background: #2196f3;
  border-color: #1976d2;
  color: white;
  transform: scale(0.95);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(33, 150, 243, 0.4);
}

.info-panel {
  background: #2d2d2f;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid #3a3a3c;
}

.log-header {
  background: #4a4a4c;
  color: white;
  padding: 12px 20px;
  font-weight: 600;
}

.log-content {
  padding: 15px 20px;
  max-height: 200px;
  overflow-y: auto;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #a0a0a0;
}

.log-entry {
  padding: 5px 0;
  border-bottom: 1px solid #3a3a3c;
}

.log-entry:last-child {
  border-bottom: none;
}

.clear-btn {
  width: 100%;
  padding: 12px;
  background: #5a5a5c;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.clear-btn:hover {
  background: #6a6a6c;
}

.clear-btn:active {
  transform: scale(0.98);
}

/* Custom scrollbar for dark mode */
.log-content::-webkit-scrollbar {
  width: 8px;
}

.log-content::-webkit-scrollbar-track {
  background: #1a1a1c;
  border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb {
  background: #5a5a5c;
  border-radius: 4px;
}

.log-content::-webkit-scrollbar-thumb:hover {
  background: #6a6a6c;
}