/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
  font-weight: 200;
  line-height: 1.5;
  color: #d0d0d0;
  background: #0d0d0d;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid #333;
  padding-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 100;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
}

header p {
  font-size: 0.9rem;
  color: #777;
  font-weight: 200;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Converter section */
.converter-section {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 200;
  color: #aaa;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

textarea {
  width: 100%;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 1rem;
  color: #d0d0d0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.4;
  resize: vertical;
  min-height: 120px;
  transition: all 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: #555;
  background: #1a1a1a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

textarea::placeholder {
  color: #555;
  font-style: italic;
  font-weight: 200;
}

/* Controls */
.controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.convert-btn,
.clear-btn {
  padding: 0.7rem 1.4rem;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  background: #151515;
  color: #d0d0d0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 200;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.convert-btn:hover {
  background: #1f1f1f;
  border-color: #555;
  color: #ffffff;
}

.clear-btn {
  background: #1a1515;
  border-color: #4a3a3a;
}

.clear-btn:hover {
  background: #2a1f1f;
  border-color: #5a4a4a;
}

/* Info section */
.info-section {
  background: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.info-section h3 {
  font-size: 1.2rem;
  font-weight: 200;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-section p {
  color: #aaa;
  margin-bottom: 1.5rem;
  font-weight: 200;
}

.examples h4 {
  font-size: 0.9rem;
  font-weight: 200;
  color: #bbb;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.examples ul {
  list-style: none;
  padding-left: 0;
}

.examples li {
  margin-bottom: 0.5rem;
  font-weight: 200;
}

.examples code {
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  color: #d0d0d0;
  font-weight: 200;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
  text-align: center;
}

footer p {
  color: #555;
  font-size: 0.8rem;
  font-weight: 200;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  .converter-section,
  .info-section {
    padding: 1.5rem;
  }

  .controls {
    flex-direction: column;
    align-items: center;
  }

  .convert-btn,
  .clear-btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .converter-section,
  .info-section {
    padding: 1rem;
  }

  textarea {
    font-size: 0.9rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #151515;
}

::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}
