/* Verify Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: rgba(26, 26, 46, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 28rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9) translateY(-50px);
  transition: transform 0.3s ease;
  border: 1px solid rgba(139, 47, 201, 0.2);
  border-top: 4px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #8B2FC9, #E91E8C, #F5A623);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: #F3F4F6;
}

.modal-close i {
  width: 1.5rem;
  height: 1.5rem;
  color: #6B7280;
}

/* Modal Content */
.modal-content {
  padding: 2rem;
}

/* Modal Title */
.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #1A1A2E;
}

.modal-subtitle {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Modal Input */
.modal-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  margin-bottom: 0.5rem;
}

.modal-input:focus {
  outline: none;
  border-color: #8B2FC9;
}

.modal-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-hint {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Modal Button */
.modal-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #8B2FC9 0%, #E91E8C 50%, #F5A623 100%);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-btn-primary:hover:not(:disabled) {
  opacity: 0.92;
  transform: scale(1.02);
}

.modal-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Error */
.modal-error {
  background-color: #FEE2E2;
  border-color: #FECACA;
  color: #B91C1C;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-width: 1px;
  border-style: solid;
}

/* Result Cards */
.result-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2rem;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
  background-color: #DCFCE7;
}

.success-icon i {
  width: 2rem;
  height: 2rem;
  color: #10B981;
}

.warning-icon {
  background-color: #FEF3C7;
}

.warning-icon i {
  width: 2rem;
  height: 2rem;
  color: #F59E0B;
}

.error-icon {
  background-color: #FEE2E2;
}

.error-icon i {
  width: 2rem;
  height: 2rem;
  color: #EF4444;
}

.result-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.success-title {
  color: #047857;
}

.warning-title {
  color: #B45309;
}

.error-title {
  color: #B91C1C;
}

.result-subtitle {
  color: #6B7280;
  font-size: 0.875rem;
}

/* Result Content */
.result-content {
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.success-content {
  background-color: #F0FDF4;
  border: 2px solid #BBF7D0;
}

.warning-content {
  background-color: #FFFBEB;
  border: 2px solid #FDE68A;
}

.error-content {
  background-color: #FEF2F2;
  border: 2px solid #FECACA;
}

.result-detail {
  margin-bottom: 1rem;
}

.result-detail:last-child {
  margin-bottom: 0;
}

.detail-label {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.detail-value {
  color: #111827;
  font-weight: 600;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 0.875rem;
}

.success-badge {
  background-color: #BBF7D0;
  color: #065F46;
}

.warning-badge {
  background-color: #FDE68A;
  color: #92400E;
}

.error-badge {
  background-color: #FECACA;
  color: #991B1B;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
}

.result-actions button {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.result-actions .btn-primary {
  background-color: #2563EB;
  color: white;
  border: none;
}

.result-actions .btn-primary:hover {
  background-color: #1D4ED8;
}

.result-actions .btn-secondary {
  border: 2px solid #2563EB;
  color: #2563EB;
  background: transparent;
}

.result-actions .btn-secondary:hover {
  background-color: #EFF6FF;
}

/* Warning and Error Messages */
.warning-message,
.error-message {
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.warning-message {
  background-color: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

.error-message {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.error-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.error-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.entered-id {
  color: #6B7280;
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 2rem;
}

.id-text {
  color: #374151;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .modal {
    margin: 1rem;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
  
  .result-actions {
    flex-direction: column;
  }
}
