/* Certificate Validation Styling */

.validation-result {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.validation-result h3 {
  margin: 0;
  padding: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.validation-result.valid h3 {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.validation-result.invalid h3 {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.validation-result p {
  margin: 0;
  padding: 1rem 1.5rem;
  color: #4b5563;
  line-height: 1.6;
}

.validation-result p:first-of-type {
  padding-top: 1.5rem;
}

.validation-result p:last-of-type {
  padding-bottom: 1.5rem;
}

.certificate-details {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.certificate-details p {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin: 0;
  border-bottom: 1px dashed #e5e7eb;
}

.certificate-details p:last-child {
  border-bottom: none;
}

.certificate-details p strong {
  color: #1f2937;
  font-weight: 600;
}

/* Valid certificate styling */
.validation-result.valid {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background-color: white;
}

.validation-result.valid .certificate-details {
  background-color: rgba(16, 185, 129, 0.05);
}

/* Invalid certificate styling */
.validation-result.invalid {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background-color: white;
}

/* Loading state */
.validation-result:not(.valid):not(.invalid) {
  padding: 2rem;
  text-align: center;
  background-color: white;
  border: 1px solid #e5e7eb;
}

.validation-result:not(.valid):not(.invalid) p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.validation-result:not(.valid):not(.invalid) p::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #e5e7eb;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Certificate verification badge */
.certificate-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #10b981;
  color: white;
  font-size: 3rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.certificate-badge svg {
  width: 60px;
  height: 60px;
}

/* Certificate not found icon */
.certificate-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #ef4444;
  color: white;
  font-size: 3rem;
  box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.certificate-not-found svg {
  width: 60px;
  height: 60px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .validation-result {
    margin: 1.5rem auto;
  }
  
  .certificate-details p {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Certificate Validation Page Styles */

.certificate-section {
  padding: 100px 0;
  min-height: calc(100vh - 400px);
}

.certificate-form-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.certificate-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #333;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #6c63ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.validation-result {
  margin: 30px auto;
  max-width: 600px;
}

.certificate-valid, 
.certificate-invalid {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  align-items: flex-start;
}

.certificate-valid {
  background-color: rgba(0, 170, 0, 0.1);
  border: 1px solid rgba(0, 170, 0, 0.3);
}

.certificate-invalid {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.certificate-details h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.certificate-details p {
  margin: 8px 0;
  line-height: 1.5;
}

.certificate-info {
  max-width: 700px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.certificate-info h3 {
  margin-bottom: 15px;
}

.certificate-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.certificate-info a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 500;
}

/* Responsive styles */
@media (max-width: 768px) {
  .certificate-section {
    padding: 60px 0;
  }
  
  .certificate-form-container {
    padding: 20px;
    margin: 30px auto;
  }
  
  .certificate-valid, 
  .certificate-invalid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .certificate-details {
    width: 100%;
  }
} 