* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #1a1a2e;
  color: #ffffff;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  background: #520380;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 15px;
}

.info-note {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.95rem;
  backdrop-filter: blur(5px);
  margin-top: 15px;
  color: #e3f2fd;
}

.import-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.import-section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #ffffff;
}

.import-container {
  position: relative;
}

.import-options {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  justify-content: center;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.parse-btn {
  background: #520380;
  color: white;
}

.parse-btn:hover {
  background: #6a048a;
}

.clear-btn {
  background: #d32f2f;
  color: white;
}

.clear-btn:hover {
  background: #b71c1c;
}

#handlingInput {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  resize: vertical;
  transition: all 0.3s ease;
}

#handlingInput:focus {
  outline: none;
  border-color: #520380;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(82, 3, 128, 0.1);
}

#handlingInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.import-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  min-height: 20px;
  transition: all 0.3s ease;
}

.import-status.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border-left: 3px solid #4caf50;
}

.import-status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border-left: 3px solid #f44336;
}

.import-status.info {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  border-left: 3px solid #2196f3;
}

.license-selector {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.license-selector h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #ffffff;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.radio-group input[type="radio"] {
  display: none;
}

.license-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  text-align: center;
}

.license-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

input[type="radio"]:checked + .license-card {
  background: rgba(255, 255, 255, 0.15);
  border-color: #520380;
}

.license-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffffff;
}

.license-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.form-group {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.form-group:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #520380;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #520380;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(82, 3, 128, 0.1);
}

.validation-info {
  margin-top: 8px;
  font-size: 0.85rem;
  min-height: 20px;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.validation-info.valid {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border-left: 3px solid #4caf50;
}

.validation-info.invalid {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border-left: 3px solid #f44336;
}

.validation-info.expected {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border-left: 3px solid #ffc107;
}

.results-section {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-top: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.results-section h3 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  color: #ffffff;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.result-item {
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid;
}

.result-item.valid {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
  color: #4caf50;
}

.result-item.invalid {
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
  color: #f44336;
}

.result-item.pending {
  background: rgba(158, 158, 158, 0.1);
  border-color: #9e9e9e;
  color: #9e9e9e;
}

.result-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.result-status {
  font-size: 0.85rem;
  opacity: 0.9;
}

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

  .radio-group {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 10px;
  }
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.compliance-summary {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: bold;
  font-size: 1.2rem;
}

.compliance-summary.compliant {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 2px solid #4caf50;
}

.compliance-summary.non-compliant {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 2px solid #f44336;
}

.special-note {
  position: relative;
}

.special-note .note {
  color: #ffc107;
  font-size: 0.8rem;
  font-style: italic;
}
