/* 账户管理模块 */
.account-module {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.private-key-bar {
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.key-management {
  display: flex;
  align-items: center;
  gap: 20px;
}

.key-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.key-separator {
  opacity: 0.5;
  margin: 0 10px;
  font-weight: bold;
}

.encrypted-data {
  font-family: 'Courier New', monospace;
  color: #667eea;
  font-weight: 600;
  word-break: break-all;
}

.form-group input:disabled,
.form-group textarea:disabled {
  background: #f5f7fa;
  color: #909399;
  cursor: not-allowed;
}

.readonly-field {
  background: #f5f7fa;
  color: #667eea;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  resize: none;
}

.form-tip {
  color: #909399;
  font-size: 12px;
  margin-top: 5px;
  display: block;
  line-height: 1.4;
}

.form-tip i {
  margin-right: 3px;
}

.permission-denied {
  text-align: center;
  padding: 60px 20px;
  background: #fef0f0;
  border-radius: 8px;
  color: #f56c6c;
}

.permission-denied h2 {
  margin-bottom: 10px;
}

.account-content {
  margin-top: 20px;
}

.private-key-notice {
  text-align: center;
  padding: 60px 20px;
  background: #f0f9ff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.notice-content h3 {
  color: #667eea;
  margin-bottom: 10px;
}

.notice-content p {
  color: #606266;
  margin-bottom: 20px;
}

.btn-view {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.empty-text {
  color: #909399;
  font-size: 13px;
}

.view-data-content {
  padding: 10px;
}

.data-label {
  color: #606266;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 14px;
}

.decrypted-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  resize: vertical;
  background: #f5f7fa;
  color: #667eea;
}

.decrypted-textarea:focus {
  outline: none;
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.btn-secondary {
  padding: 10px 20px;
  background: #909399;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #a6a9ad;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 147, 153, 0.3);
}

.action-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 200px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
}

.btn-search {
  background: #409eff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-search:hover {
  background: #66b1ff;
}

.btn-clear {
  background: #909399;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-clear:hover {
  background: #a6a9ad;
}

.page-size-selector {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-size-selector select {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ebeef5;
}

.data-table th {
  background: #f5f7fa;
  color: #606266;
  font-weight: 600;
}

.data-table tr:hover {
  background: #f5f7fa;
}

.password-cell {
  font-family: 'Courier New', monospace;
  color: #667eea;
  font-weight: 600;
}

.btn-link {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  padding: 0 5px;
  font-size: 14px;
}

.btn-edit {
  padding: 5px 15px;
  background: #409eff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-edit:hover {
  background: #66b1ff;
}

.btn-delete {
  padding: 5px 15px;
  background: #f56c6c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}

.btn-delete:hover {
  background: #f78989;
}

.empty-data {
  text-align: center;
  color: #909399;
  padding: 40px !important;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ebeef5;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid #dcdfe6;
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button:not(:disabled):hover {
  background: #f5f7fa;
}

/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-dialog {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-dialog.modal-large {
  max-width: 700px;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #ebeef5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #303133;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #ebeef5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-footer button {
  padding: 10px 20px;
  border: 1px solid #dcdfe6;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.modal-footer button:hover {
  background: #f5f7fa;
  border-color: #c0c4cc;
}

.modal-footer .btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.modal-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal-tip {
  margin-bottom: 15px;
  color: #909399;
  font-size: 14px;
}

.private-key-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  resize: vertical;
}

.private-key-input.input-error {
  border-color: #f56c6c;
  background: #fef0f0;
}

.private-key-input:focus.input-error {
  border-color: #f56c6c;
  outline: none;
}

.input-error-message {
  margin-top: 10px;
  padding: 10px;
  background: #fef0f0;
  border-left: 3px solid #f56c6c;
  color: #f56c6c;
  font-size: 13px;
  border-radius: 4px;
}

.input-success-message {
  margin-top: 10px;
  padding: 10px;
  background: #f0f9ff;
  border-left: 3px solid #667eea;
  color: #667eea;
  font-size: 13px;
  border-radius: 4px;
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #606266;
  font-size: 14px;
}

.form-group .required {
  color: #f56c6c;
  margin-left: 3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #409eff;
  outline: none;
}

/* 按钮通用样式 */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}