/* style/clipboard.css */

.clipboard-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.clipboard-box {
  width: 100%;
  max-width: 600px;
  padding: 30px;
  border-radius: 20px;
  color: #fff;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

.back-btn {
  color: #ddd;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.back-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* 输入区域样式 */
.input-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

#clip-input {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

#clip-input:focus {
  border-color: rgba(0, 229, 255, 0.6);
}

#clip-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: 0.3s;
  color: #fff;
}

.paste-btn {
  background: rgba(0, 229, 255, 0.5);
}

.paste-btn:hover {
  background: rgba(0, 229, 255, 0.7);
}

.save-btn {
  background: rgba(81, 207, 102, 0.5);
}

.save-btn:hover {
  background: rgba(81, 207, 102, 0.7);
}

.save-btn:disabled {
  background: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.status-msg {
  font-size: 14px;
  height: 20px;
}

/* 列表区域样式 */
.list-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

#clip-list {
  list-style: none;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
}

#clip-list li {
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.clip-content {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-height: 80px;
  overflow-y: auto;
}

.clip-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.action-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: 0.3s;
  outline: none;
  font-family: inherit;
  white-space: nowrap;
}

.copy-btn, .delete-btn, .open-btn {
  background: rgba(255, 255, 255, 0.1);
}

.copy-btn:hover, .delete-btn:hover, .open-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.open-btn {
  color: #ffd43b;
}

.copy-btn {
  color: #00e5ff;
}

.delete-btn {
  color: #ff6b6b;
}

.copy-btn.copied {
  color: #51cf66;
  background: rgba(81, 207, 102, 0.2);
}

/* 滚动条样式 */
#clip-list::-webkit-scrollbar,
.clip-content::-webkit-scrollbar {
  width: 4px;
}

#clip-list::-webkit-scrollbar-track,
.clip-content::-webkit-scrollbar-track {
  background: transparent;
}

#clip-list::-webkit-scrollbar-thumb,
.clip-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
