* {
  margin: 0;
  padding: 0;
}

body {
  background: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container  *{
  box-sizing: border-box;
}

header {
  margin-bottom: 25px;
  text-align: center;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 5px;
}


.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}
.control-panel {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.control-group {
  display: flex;
  align-items: center;
}

.control-group label {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  width: 90px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.container select,
.container input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  width: 180px;
  transition: all 0.3s;
}

.container select:focus,
.container input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
  outline: none;
}

.btn-group {
  display: flex;
  gap: 20px;
}

button {
  padding: 11.25px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.copy-btn {
  background: #28a745;
  color: white;
}

.clear-btn {
  background: #dc3545;
  color: white;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-container {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  margin-top: 25px;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 20px;
}

.character-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  border: 1px solid #eee;
}

.character-box:hover {
  background: #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.no-results {
  text-align: center;
  padding-top: 40px;
  font-size: 1rem;
  color: #6c757d;
}

.info-section {
  margin-bottom: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
}

.info-section h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #343a40;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.info-box {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  line-height: 1.75;
}

.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #2575fc;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-content p {
  margin: 10px 0;
  opacity: 0.8;
}

.stroke-example {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
}

.stroke-character {
  font-size: 2.5rem;
  margin-bottom: 5px;
}

.stroke-number {
  font-size: 0.9rem;
  color: #6c757d;
}

.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #2575fc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: #6c757d;
}
