
:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
  color: #333;
}




header.header {
     background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: #fff;
    padding: 45px 20px;
    border-radius: 18px;
    text-align: center;
    margin-bottom: 25px;
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
}

header h1 {
     color: white !important;
    font-size: 42px !important;
    margin-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
     background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
    color: #fff;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 18px;
}

.card-header h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: white !important;
  margin: 0;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1rem;
}

.textarea {
  flex: 1;
  min-height: 300px;
  padding: 1rem;
  border: 1px solid #f3c6cf !important;
  border-radius: 8px !important;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  resize: vertical;
  background-color: #fafbfc;
  color: #333;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.textarea:focus {
  outline: none;
  border-color: #FB0E76;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(251, 14, 118, 0.1);
}

.textarea::placeholder {
  color: #999;
}

.file-input-wrapper {
  display: flex;
  gap: 0.5rem;
}

#csvFile {
  display: none;
}

.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #f0f2f5;
  color: #333;
  border: 2px solid #d8dce4;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.file-label:hover {
  background-color: #e8ecf1;
  border-color: #FB0E76;
  color: #FB0E76;
}

.file-icon {
  font-size: 1.2rem;
}

.info-text {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 22px !important;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(251, 14, 118, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 14, 118, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(251, 14, 118, 0.3);
}

.btn-secondary {
  background-color: #2c3e50;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-tertiary {
  background-color: #ecf0f1;
  color: #333;
  border: 1px solid #d8dce4;
}

.btn-tertiary:hover {
  background-color: #d8dce4;
  border-color: #999;
  transform: translateY(-2px);
}

.btn-tertiary:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  header.header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .textarea {
    min-height: 250px;
  }

  .button-group {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    flex: 1;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .card-header h2 {
    font-size: 1.1rem;
  }

  .textarea {
    min-height: 200px;
    font-size: 0.85rem;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .file-label {
    flex: 1;
    justify-content: center;
  }
}
