:root {
  --primary-color: #3178c6;
  --secondary-color: #f1f2f3;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --border-color: #ddd;
  --success-color: #28a745;
  --danger-color: #dc3545;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--secondary-color);
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: var(--text-color);
}

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

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

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

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.converter-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.code-section {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.code-header {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.code-body {
  height: 540px;
  position: relative;
}

textarea {
  width: 100%;
  height: 100%;
  border: none;
  padding: 15px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 15px;
  resize: none;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
  border-left: 4px solid var(--primary-color);
}

textarea:focus {
  outline: none;
  background-color: white;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 25px;
}

.btn {
  padding: 12px 42px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

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

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.info-section {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.info-section h2{
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 20px;
}

.info-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
}

.info-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.info-card ul {
  padding-left: 20px;
}

.info-card li {
  margin-bottom: 8px;
}

footer {
  text-align: center;
  color: #666;
}

.notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  padding: 15px 25px;
  background-color: var(--success-color);
  color: white;
  border-radius: 6px;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeInOut 3s ease-in-out;
  z-index: 1000;
}

.notification.show {
  display: block;
}

.type-badge {
  background-color: #e9f5ff;
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
