* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  max-width: 1560px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
  line-height: 1.6;
}

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

header {
  color: #333;
  padding: 10px;
  padding-bottom: 20px;
  text-align: center;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro {
  font-size: 1rem;
  max-width: 95%;
  margin: auto;
  color: #666;
}

.instructions {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 100%;
  margin: 20px auto;
  text-align: left;
  font-size: 1rem;
}

.instructions h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ul {
  padding-left: 25px;
}

.instructions li {
  margin-bottom: 8px;
}

.tool-container {
  display: flex;
  padding: 20px 0;
  gap: 20px;
}

.input-section {
  flex: 1;
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.output-section {
  flex: 1;
  background: #f9fafb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #2c3e50;
}

textarea {
  width: 100%;
  height: 300px;
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1.1rem;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#inputText{
  margin-bottom: 15px;
}

.options-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.option-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: #a0aec0;
}

.option-card.selected {
  background: #ebf4ff;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.option-card .emoji {
  font-size: 1.2rem;
}

.option-card .text {
  font-size: 0.9rem;
  font-weight: 500;
}

.custom-regex {
  margin-top: 20px;
  padding: 15px;
  background: #fff9db;
  border-radius: 10px;
  border: 1px solid #ffd43b;
}

.custom-regex input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 10px;
}

.custom-regex input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.extract-btn {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.clear-btn {
  background: #f1f2f6;
  color: #4a5568;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.match-count {
  background: #e6f7ff;
  color: #1890ff;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
}

.results-container {
  flex: 1;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  overflow-y: auto;
  min-height: 300px;
}

.result-item {
  padding: 12px 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #4a90e2;
  font-size: 1.1rem;
  word-break: break-all;
}

.result-item:nth-child(odd) {
  background: #f1f8ff;
}

.no-results {
  color: #a0aec0;
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
}

footer {
  text-align: center;
  padding: 20px;
  color: #718096;
  font-size: 1rem;
}
