input[type="text"],
input[type="password"],
input[type="email"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-width: 1px;
  border-radius: 0.375rem;
  border-color: #d1d5db;
  background-color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input[type="checkbox"] {
  border-radius: 0.25rem;
  border-color: #d1d5db;
}

input[type="checkbox"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

input[type="checkbox"]:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #4b5563;
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;
  height: 24px;
}

.password-toggle:hover {
  color: #4b5563;
}

.password-toggle:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  color: #3b82f6;
}

textarea {
  resize: none;
  font-family: monospace;
  font-size: 0.875rem;
}

.code-area {
  min-height: 200px;
}

.qr-code {
  width: 100%;
  /* height: 100%; */
  min-height: 200px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-button {
  position: relative;
  transition: all 0.2s ease;
}

.tab-button.active {
  color: #0369a1;
  font-weight: 500;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0369a1;
}

.url-input-group {
  display: flex;
  align-items: stretch;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  overflow: hidden;
  transition: all 0.2s ease;
}

.url-input-group:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.url-prefix, .url-suffix {
  background-color: #f3f4f6;
  padding: 0.5rem 1rem;
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.25rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  border: none;
  padding: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: none;
  min-width: 0;
}

.url-input:focus {
  outline: none;
  box-shadow: none;
}

.input-container {
  position: relative;
}

.input-with-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #6b7280;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background-color: #e5e7eb;
  color: #3b82f6;
}

.copy-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.tooltip {
  position: absolute;
  top: -30px;
  right: 0;
  background-color: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 20;
}

.tooltip.show {
  opacity: 1;
}

.readonly-input {
  background-color: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  font-weight: 500;
}