/* RSA Encryption specific styles */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 16px;
  border: 2px solid #e1e8ed;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
}

.tab-btn:hover:not(.active) {
  border-color: #667eea;
  background: #f8f9fa;
}

.mode-content {
  display: block;
}

.mode-content.hidden {
  display: none;
}

.key-pair-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.key-section {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e1e8ed;
}

.key-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.key-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.key-textarea {
  width: 100%;
  min-height: 200px;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 11px;
  line-height: 1.4;
  background: white;
  color: #495057;
  resize: vertical;
}

.key-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.copy-key {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
}

.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.processing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #667eea;
  font-weight: 600;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.verify-result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}

.verify-result.valid {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.verify-result.invalid {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

.help-content {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.help-content ul {
  margin: 0;
  padding-left: 20px;
}

.help-content li {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
}

.help-content strong {
  color: #2c3e50;
}

.key-info {
  background: #e3f2fd;
  border: 2px solid #bbdefb;
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #1565c0;
}

.key-info strong {
  color: #0d47a1;
}

.progress-text {
  font-size: 13px;
  color: #6c757d;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .key-pair-result {
    grid-template-columns: 1fr;
  }
  
  .mode-tabs {
    flex-direction: column;
  }
  
  .key-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .key-textarea {
    min-height: 150px;
    font-size: 10px;
  }
}