/* Password modal */
.password-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.password-modal.show {
  display: flex;
}

.password-modal-content {
  background-color: var(--bg-modal);
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--card-shadow);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.password-modal-content h2 {
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
}

#password-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--bg-secondary);
  border-radius: 6px;
  font-size: 16px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

#password-input:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.modal-buttons button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#submit-password {
  background-color: var(--accent-primary);
  color: white;
}

#submit-password:hover {
  background-color: var(--accent-secondary);
}

#cancel-password {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.password-error {
  color: var(--error);
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
}