:root {
  --primary-color: #1DB482;
  --danger-color: #D83939;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --border-color: #ddd;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 2rem;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.converter-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.text-input, .code-output {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(29, 180, 130, 0.2);
}

.code-output {
  min-height: 200px;
  background-color: #fafafa;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.button-group {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.convert-btn {
  flex: 1;
  background-color: var(--primary-color);
  color: white;
}

.convert-btn:hover {
  background-color: #17a074;
}

.reset-btn {
  width: 60px;
  background-color: var(--danger-color);
  color: white;
}

.reset-btn:hover {
  background-color: #c23131;
}

.icon {
  display: inline-block;
  margin: 0 0.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 600px) {
  .container {
    padding: 1rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .reset-btn {
    width: 100%;
  }
}
