.head {
  text-align: center;
  padding: 30px 0 0 0;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
}

head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

head p {
  color: #dbeafe;
  max-width: 500px;
}

main {
  flex-grow: 1;
  padding: 2rem 0;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  overflow: hidden;
}

.card-section {
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

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

.card-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  color: #1e293b;
}
.card-section i {
  font-size: 18px;
}
.card-section h2 i {
  color: #3B82F6;
  font-size: 25px;
  margin-right: 0.5rem;
}

.card-section p {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  max-width: 600px;
  height: 450px;
  line-height: 20px;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  resize: none;
  font-size: 0.9rem;
}

textarea:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

button i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: #3B82F6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-copy {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.btn-copy:hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.btn-export {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.btn-export:hover {
  background-color: rgba(34, 197, 94, 0.2);
}

.sort-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .sort-options {
    grid-template-columns: 1fr 1fr;
  }
}

.option-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #334155;
  font-weight: 500;
  font-size: 0.9rem;
}

.sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sort-btn {
  border: 1px solid #cbd5e1;
  background: white;
  padding: 0.5rem 1rem;
}

.sort-btn.sort-active {
  background-color: #3B82F6;
  color: white;
  border-color: #3B82F6;
}

#clearInputBtn {
  background: #ff5400;
  color: #fff;
}

#clearResultBtn {
  background: #d93535;
  color: #fff;
}

#resultContainer {
  height: 450px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #f8fafc;
  overflow-y: auto;
  margin: 0 0 20px 0;
}

#resultContainer>div {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

#resultContainer>div:last-child {
  border-bottom: none;
}

#resultContainer>div:hover {
  background-color: #f1f5f9;
  border-radius: 4px;
}

.empty-state {
  color: #94a3b8;
  text-align: center;
  padding: 2.5rem 0;
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.info-card {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.info-card h3 {
  color: #1e40af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.info-card h3 i {
  margin-right: 0.5rem;
}

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

.info-card li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  color: #1e3a8a;
  font-size: 0.9rem;
}

.info-card li i {
  color: #3b82f6;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

#toast i {
  margin-right: 0.5rem;
}

.absolute-clear {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
}

.absolute-clear:hover {
  color: #ef4444;
}

.input-container {
  position: relative;
  margin-bottom: 1rem;
}

.input-result-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .input-result-container {
    flex-direction: row;
  }

  .input-column,
  .result-column {
    flex: 1;
  }
}
@media (max-width: 768px) {
textarea {
    padding: 0;
}

}