:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --text: #333;
  --muted: #666;
  --accent: #4CAF50;
  --orange: #FFA500;
  --blue: #2563eb;
  --border: #ddd;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#gms-typing-root { 
  font-family: Arial, sans-serif; 
  color: var(--text); 
  background: var(--bg);
  margin: 20px;
  padding: 0;
}

.gms-tt-container {
  display: flex;
  width: 100%;
  height: auto;
  gap: 20px;
}

.gms-tt-left-panel {
  width: 30%;
  padding: 20px;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.gms-tt-right-panel {
  width: 70%;
  padding: 20px;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.gms-tt-header {
  text-align: center;
  color: var(--text);
  margin-bottom: 20px;
}

.gms-tt-level-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gms-tt-level-button {
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  width: 30%;
  transition: all 0.3s ease;
}

.gms-tt-level-button.active {
  background: var(--orange);
}

.gms-tt-level-button:hover {
  background: var(--orange);
  transform: scale(1.1);
}

.gms-tt-lesson-select {
  margin-bottom: 20px;
}

.gms-tt-lesson-select select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.gms-tt-stats {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Gauges */
.gms-tt-gauges {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 4px 0;
}

#gms-gauge-accuracy { grid-column: span 2; }

.gms-tt-gauge {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 8px 12px 8px;
  text-align: center;
}

.gms-tt-gauge-svg { width: 100%; height: auto; }
.gms-tt-gauge-track { fill: none; stroke: #eee; stroke-width: 14; stroke-linecap: round; }
.gms-tt-gauge-fill { fill: none; stroke: var(--blue); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 0 300; }
.gms-tt-gauge-needle { stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.gms-tt-gauge-label { font-size: 14px; color: var(--muted); margin-top: -2px; }
.gms-tt-gauge-value { font-size: 18px; font-weight: 700; color: var(--text); }

.gms-tt-start-btn, .gms-tt-reset-btn {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gms-tt-start-btn {
  background: var(--accent);
  color: white;
}

.gms-tt-reset-btn {
  background: var(--orange);
  color: white;
}

.gms-tt-start-btn:hover, .gms-tt-reset-btn:hover {
  background: #e65100;
  transform: scale(1.05);
}

.gms-tt-target {
  font-family: Consolas, "Courier New", monospace;
  font-size: 150%;
  line-height: 1.3em;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: justify;
  margin-bottom: 20px;
}

.gms-tt-input {
  width: 97%;
  height: 200px;
  font-size: 150%;
  font-family: Consolas, "Courier New", monospace;
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 5px;
  margin-top: 20px;
  display: none;
}

.gms-tt-target span.ok { color: var(--accent); }
.gms-tt-target span.bad { color: #dc2626; text-decoration: underline; }
.gms-tt-target span.todo { color: #999; }

/* Login/Profile/Dashboard styles removed for anonymous usage */

@media (max-width: 768px) {
  .gms-tt-container {
    flex-direction: column;
  }
  
  .gms-tt-left-panel, .gms-tt-right-panel {
    width: 100%;
  }
  .gms-tt-gauges { grid-template-columns: 1fr; }
  #gms-gauge-accuracy { grid-column: auto; }
}


