:root {
  --primary-color: #ff6b9d;
  --secondary-color: #4ecdc4;
  --accent-color: #ffe66d;
  --text-color: #2c3e50;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  background: var(--primary-color);
  padding: 10px 20px;
  text-align: right;
}

.topbar a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.topbar a:hover {
  opacity: 1;
}

h1 {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  margin: 0;
  padding: 30px 20px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
}

.emoji {
  font-size: 24px;
  margin-left: 10px;
}

.subtitle {
  background: var(--accent-color);
  color: var(--text-color);
  margin: 0;
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
}

.card {
  padding: 30px;
  border-bottom: 1px solid var(--border-color);
}

.card:last-child {
  border-bottom: none;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.col {
  flex: 1;
}

.actions {
  margin-top: 30px;
  text-align: center;
}

button {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: var(--border-radius);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

footer {
  padding: 20px;
  text-align: center;
  background: var(--bg-color);
  color: #6c757d;
}

.hint {
  display: block;
  margin-top: 8px;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.4;
}

.lang-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.lang-table td {
  padding: 8px 12px;
  text-align: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.lang-table td:hover {
  background: var(--accent-color);
}

.lang-table td.selected {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

@media (max-width: 600px) {
  .row {
    flex-direction: column;
    gap: 15px;
  }
  
  .container {
    margin: 10px;
    border-radius: var(--border-radius);
  }
  
  body {
    padding: 10px;
  }
  
  h1 {
    font-size: 24px;
    padding: 20px;
  }
  
  .card {
    padding: 20px;
  }
}