/* ============================================
   办公协同平台 - 组件样式库 (Components)
   ============================================ */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 8px 16px; border-radius: var(--radius-md); font-weight: var(--weight-medium);
  transition: all var(--transition-fast); white-space: nowrap; line-height: 1.4;
  font-size: var(--text-base);
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 4px 12px; font-size: var(--text-sm); border-radius: var(--radius-sm); }
.btn-lg { padding: 12px 24px; font-size: var(--text-md); }

.btn-primary { background: var(--primary-500); color: #fff; }
.btn-primary:hover { background: var(--primary-600); box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--gray-300); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-danger { background: var(--error-500); color: #fff; }
.btn-danger:hover { background: var(--error-600); }
.btn-success { background: var(--success-500); color: #fff; }
.btn-success:hover { background: var(--success-600); }
.btn-text { background: none; color: var(--primary-500); padding: 4px 8px; }
.btn-text:hover { background: var(--primary-50); }
.btn-icon {
  width: 36px; height: 36px; padding: 0; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); transition: all var(--transition-fast);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon.active { background: var(--primary-50); color: var(--primary-500); }
.btn-icon-sm { width: 28px; height: 28px; }
.btn-icon-lg { width: 44px; height: 44px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---- Inputs ---- */
.input-group { display: flex; flex-direction: column; gap: var(--space-1); }
.input-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); }
.input {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary);
  font-size: var(--text-base); transition: border-color var(--transition-fast);
}
.input:focus { border-color: var(--primary-500); box-shadow: var(--shadow-focus); }
.input::placeholder { color: var(--text-quaternary); }
.input-sm { padding: 6px 10px; font-size: var(--text-sm); }
.input-lg { padding: 12px 16px; font-size: var(--text-md); }
.input-error { border-color: var(--error-500); }
.input-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.input-hint { font-size: var(--text-xs); color: var(--text-tertiary); margin-top: 2px; }
.input-error-msg { font-size: var(--text-xs); color: var(--error-500); margin-top: 2px; }

.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 36px; }
.input-with-icon .input-icon-left {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--text-quaternary); pointer-events: none;
}

.textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary);
  font-size: var(--text-base); resize: vertical; min-height: 80px; line-height: 1.5;
}
.textarea:focus { border-color: var(--primary-500); box-shadow: var(--shadow-focus); }

.select {
  width: 100%; padding: 8px 32px 8px 12px; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); background: var(--bg-surface); color: var(--text-primary);
  font-size: var(--text-base); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.select:focus { border-color: var(--primary-500); box-shadow: var(--shadow-focus); }

/* Checkbox & Radio */
.checkbox-group, .radio-group { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.checkbox-group input[type="checkbox"], .radio-group input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--primary-500); cursor: pointer;
}
.checkbox-label, .radio-label { font-size: var(--text-base); color: var(--text-primary); }

/* Switch / Toggle */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute; inset: 0; background: var(--gray-300); border-radius: var(--radius-full);
  transition: var(--transition-fast); cursor: pointer;
}
.switch-slider::before {
  content:''; position: absolute; height: 18px; width: 18px; left: 2px; bottom: 2px;
  background: white; border-radius: 50%; transition: var(--transition-fast);
}
.switch input:checked + .switch-slider { background: var(--primary-500); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

/* ---- Avatars ---- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; font-weight: var(--weight-semibold); color: #fff;
  background: var(--primary-400); position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: var(--avatar-xs); height: var(--avatar-xs); font-size: 10px; }
.avatar-sm { width: var(--avatar-sm); height: var(--avatar-sm); font-size: 12px; }
.avatar-md { width: var(--avatar-md); height: var(--avatar-md); font-size: 14px; }
.avatar-lg { width: var(--avatar-lg); height: var(--avatar-lg); font-size: 16px; }
.avatar-xl { width: var(--avatar-xl); height: var(--avatar-xl); font-size: 22px; }
.avatar-2xl { width: var(--avatar-2xl); height: var(--avatar-2xl); font-size: 32px; }

.avatar-status {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  border-radius: 50%; border: 2px solid var(--bg-surface);
}
.avatar-status.online { background: var(--online-color); }
.avatar-status.offline { background: var(--offline-color); }
.avatar-status.busy { background: var(--busy-color); }
.avatar-status.away { background: var(--away-color); }

.avatar-group { display: flex; }
.avatar-group .avatar { margin-left: -8px; border: 2px solid var(--bg-surface); }
.avatar-group .avatar:first-child { margin-left: 0; }
.avatar-group .avatar-more {
  background: var(--gray-200); color: var(--text-secondary); font-size: var(--text-xs);
}

/* ---- Badges & Tags ---- */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: var(--weight-semibold); background: var(--badge-bg); color: var(--badge-text);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--badge-bg);
}
.badge-sm { min-width: 14px; height: 14px; font-size: 10px; padding: 0 3px; }

.tag {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 2px 8px; border-radius: var(--radius-sm); font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}
.tag-primary { background: var(--primary-50); color: var(--primary-600); }
.tag-success { background: var(--success-50); color: var(--success-700); }
.tag-warning { background: var(--warning-50); color: var(--warning-700); }
.tag-error { background: var(--error-50); color: var(--error-700); }
.tag-info { background: var(--info-50); color: var(--info-600); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* Status indicator */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.status-dot.todo { background: var(--gray-400); }
.status-dot.in-progress { background: var(--primary-500); }
.status-dot.review { background: var(--warning-500); }
.status-dot.done { background: var(--success-500); }
.status-dot.blocked { background: var(--error-500); }

/* ---- Cards & Panels ---- */
.card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: var(--space-4); transition: box-shadow var(--transition-fast);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card-title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-primary); }
.card-body { color: var(--text-secondary); }

.panel {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-color);
  font-weight: var(--weight-semibold);
}

/* ---- List Items ---- */
.list-item {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  cursor: pointer; transition: background var(--transition-fast); border-radius: var(--radius-md);
}
.list-item:hover { background: var(--bg-hover); }
.list-item.active { background: var(--bg-active); }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-weight: var(--weight-medium); color: var(--text-primary); }
.list-item-subtitle { font-size: var(--text-sm); color: var(--text-tertiary); margin-top: 1px; }
.list-item-meta { font-size: var(--text-xs); color: var(--text-quaternary); flex-shrink: 0; }

/* Chat-specific list item */
.chat-item { padding: var(--space-3); border-radius: var(--radius-md); }
.chat-item.unread .list-item-title { font-weight: var(--weight-semibold); }
.chat-item.pinned { background: var(--primary-50); }

/* ---- Message Bubbles ---- */
.message { display: flex; gap: var(--space-2); padding: var(--space-1) var(--space-4); margin: var(--space-1) 0; }
.message.self { flex-direction: row-reverse; }
.message-bubble {
  max-width: 70%; padding: var(--space-2) var(--space-3); border-radius: var(--radius-lg);
  font-size: var(--text-base); line-height: 1.5; position: relative; word-break: break-word;
}
.message.other .message-bubble {
  background: var(--msg-bubble-other); color: var(--msg-text-other);
  border-top-left-radius: var(--radius-sm);
}
.message.self .message-bubble {
  background: var(--msg-bubble-self); color: var(--msg-text-self);
  border-top-right-radius: var(--radius-sm);
}
.message-time { font-size: var(--text-xs); color: var(--text-quaternary); margin-top: 2px; }
.message.self .message-time { text-align: right; }
.message-status { font-size: 11px; margin-left: 4px; }
.message-status.sent { color: var(--text-quaternary); }
.message-status.read { color: var(--primary-500); }

.message-system {
  text-align: center; padding: var(--space-3); font-size: var(--text-xs);
  color: var(--text-quaternary);
}
.message-date-divider {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs); color: var(--text-quaternary);
}
.message-date-divider::before, .message-date-divider::after {
  content:''; flex: 1; height: 1px; background: var(--divider);
}

.message-file {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
  background: rgba(0,0,0,0.05); border-radius: var(--radius-md); min-width: 220px;
}
.message.self .message-file { background: rgba(255,255,255,0.15); }
.message-file-icon { font-size: 28px; }
.message-file-info { flex: 1; min-width: 0; }
.message-file-name { font-weight: var(--weight-medium); font-size: var(--text-sm); }
.message-file-size { font-size: var(--text-xs); opacity: 0.7; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: var(--bg-mask); z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn var(--transition-fast);
}
.modal {
  background: var(--bg-surface); border-radius: var(--radius-xl); width: 90%;
  max-width: 520px; max-height: 85vh; overflow: hidden; box-shadow: var(--shadow-xl);
  animation: scaleIn var(--transition-normal);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border-color);
}
.modal-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.modal-body { padding: var(--space-6); overflow-y: auto; max-height: 60vh; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3);
  padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-color);
}

/* ---- Drawer ---- */
.drawer-overlay {
  position: fixed; inset: 0; background: var(--bg-mask); z-index: var(--z-overlay);
  animation: fadeIn var(--transition-fast);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw;
  background: var(--bg-surface); z-index: var(--z-overlay); box-shadow: var(--shadow-xl);
  animation: slideInRight var(--transition-normal); display: flex; flex-direction: column;
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border-color);
}
.drawer-body { flex: 1; overflow-y: auto; padding: var(--space-4); }

/* ---- Dropdown ---- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute; top: calc(100% + 4px); right: 0; min-width: 180px;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: var(--z-dropdown);
  padding: var(--space-1); animation: fadeInDown var(--transition-fast);
}
.dropdown-item {
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-primary);
  cursor: pointer; transition: background var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item.danger { color: var(--error-500); }
.dropdown-item.danger:hover { background: var(--error-50); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: var(--space-1) 0; }

/* ---- Tabs ---- */
.tabs { display: flex; border-bottom: 1px solid var(--border-color); gap: 0; }
.tab-item {
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--text-tertiary);
  font-weight: var(--weight-medium); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all var(--transition-fast); margin-bottom: -1px;
}
.tab-item:hover { color: var(--text-primary); }
.tab-item.active { color: var(--primary-500); border-bottom-color: var(--primary-500); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn var(--transition-fast); }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); }
.breadcrumb-item { color: var(--text-tertiary); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: var(--weight-medium); }
.breadcrumb-sep { color: var(--text-quaternary); }

/* ---- Progress ---- */
.progress { height: 6px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: var(--radius-full); background: var(--primary-500);
  transition: width var(--transition-slow);
}
.progress-bar.success { background: var(--success-500); }
.progress-bar.warning { background: var(--warning-500); }
.progress-bar.error { background: var(--error-500); }

/* ---- Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%; animation: pulse 1.5s infinite; border-radius: var(--radius-md);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-card { height: 120px; }

/* ---- Toast ---- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-2); }
.toast {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); min-width: 280px; animation: slideInRight var(--transition-normal);
}
.toast-success { border-left: 3px solid var(--success-500); }
.toast-error { border-left: 3px solid var(--error-500); }
.toast-warning { border-left: 3px solid var(--warning-500); }
.toast-info { border-left: 3px solid var(--info-500); }

/* ---- Tooltip ---- */
.tooltip { position: relative; display: inline-block; }
.tooltip-text {
  visibility: hidden; opacity: 0; position: absolute; bottom: calc(100% + 6px);
  left: 50%; transform: translateX(-50%); background: var(--gray-800); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-sm); font-size: var(--text-xs);
  white-space: nowrap; z-index: var(--z-tooltip); transition: opacity var(--transition-fast);
}
.tooltip:hover .tooltip-text { visibility: visible; opacity: 1; }

/* ---- Empty State ---- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-12); text-align: center;
}
.empty-state-icon { font-size: 48px; margin-bottom: var(--space-4); opacity: 0.4; }
.empty-state-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-primary); margin-bottom: var(--space-2); }
.empty-state-desc { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: var(--space-6); max-width: 320px; }

/* ---- Context Menu ---- */
.context-menu {
  position: fixed; min-width: 160px; background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: var(--z-dropdown);
  padding: var(--space-1); animation: scaleIn 0.1s ease;
}
.context-menu-item {
  display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); font-size: var(--text-sm); cursor: pointer;
}
.context-menu-item:hover { background: var(--bg-hover); }

/* ---- Search Bar ---- */
.search-bar {
  display: flex; align-items: center; gap: var(--space-2); padding: 6px 12px;
  background: var(--bg-hover); border: 1px solid transparent; border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.search-bar:focus-within { background: var(--bg-surface); border-color: var(--primary-500); box-shadow: var(--shadow-focus); }
.search-bar input { flex: 1; border: none; background: none; outline: none; color: var(--text-primary); font-size: var(--text-sm); }
.search-bar input::placeholder { color: var(--text-quaternary); }
.search-bar .search-icon { color: var(--text-quaternary); flex-shrink: 0; }

/* ---- Kanban / Task Card ---- */
.kanban-card {
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: var(--space-3); cursor: pointer;
  transition: all var(--transition-fast);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kanban-card-title { font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-2); }
.kanban-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-2); }

.kanban-column {
  background: var(--bg-main); border-radius: var(--radius-lg); padding: var(--space-3);
  min-width: 280px; max-width: 320px; flex-shrink: 0;
}
.kanban-column-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2); margin-bottom: var(--space-2);
  font-weight: var(--weight-semibold); font-size: var(--text-sm);
}
.kanban-column-count {
  background: var(--gray-200); color: var(--text-tertiary); padding: 1px 8px;
  border-radius: var(--radius-full); font-size: var(--text-xs);
}
.kanban-column-body { display: flex; flex-direction: column; gap: var(--space-2); }

/* ---- Priority Icons ---- */
.priority { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: var(--weight-medium); }
.priority-urgent { color: var(--error-500); }
.priority-high { color: var(--warning-600); }
.priority-medium { color: var(--primary-500); }
.priority-low { color: var(--gray-400); }

/* ---- File List Item ---- */
.file-item {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition-fast);
}
.file-item:hover { background: var(--bg-hover); }
.file-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: 18px; flex-shrink: 0; }
.file-icon.doc { background: #EEF2FF; color: var(--primary-500); }
.file-icon.sheet { background: var(--success-50); color: var(--success-600); }
.file-icon.img { background: #FFF7ED; color: #EA580C; }
.file-icon.pdf { background: var(--error-50); color: var(--error-500); }
.file-icon.code { background: var(--gray-100); color: var(--gray-600); }

/* ---- Meeting Controls ---- */
.meeting-controls {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  padding: var(--space-4); background: var(--call-bg);
}
.meeting-btn {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: #fff; transition: all var(--transition-fast);
  background: var(--call-btn-active); cursor: pointer; font-size: 20px;
}
.meeting-btn:hover { background: rgba(255,255,255,0.25); }
.meeting-btn.active { background: var(--primary-500); }
.meeting-btn.danger { background: var(--call-btn-danger); }
.meeting-btn.danger:hover { background: #DC2626; }
.meeting-btn-label { font-size: 10px; color: rgba(255,255,255,0.7); margin-top: 4px; text-align: center; }

/* ---- Notification Item ---- */
.notification-item {
  display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light); transition: background var(--transition-fast);
}
.notification-item:hover { background: var(--bg-hover); }
.notification-item.unread { background: var(--primary-50); }
.notification-item.unread:hover { background: var(--primary-100); }

/* ---- Calendar ---- */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border-color); }
.calendar-cell {
  background: var(--bg-surface); padding: var(--space-1); min-height: 80px;
  font-size: var(--text-sm); cursor: pointer;
}
.calendar-cell:hover { background: var(--bg-hover); }
.calendar-cell.today { background: var(--primary-50); }
.calendar-cell-date { font-weight: var(--weight-medium); padding: var(--space-1); }
.calendar-event {
  padding: 1px 4px; border-radius: 2px; font-size: 11px; margin-bottom: 1px;
  background: var(--primary-100); color: var(--primary-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Code Block (in chat) ---- */
.code-block {
  background: var(--gray-900); color: #E5E7EB; padding: var(--space-3);
  border-radius: var(--radius-md); font-family: var(--font-mono); font-size: var(--text-sm);
  overflow-x: auto; white-space: pre; line-height: 1.6;
}
.code-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3); background: var(--gray-800);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-xs); color: var(--gray-400);
}

/* ---- Form Section ---- */
.form-section { margin-bottom: var(--space-6); }
.form-section-title {
  font-size: var(--text-md); font-weight: var(--weight-semibold);
  color: var(--text-primary); margin-bottom: var(--space-4);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--border-color);
}
.form-row { display: flex; gap: var(--space-4); margin-bottom: var(--space-4); }
.form-row > * { flex: 1; }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--divider); margin: var(--space-3) 0; }
.divider-vertical { width: 1px; background: var(--divider); align-self: stretch; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: var(--space-1); }
.pagination-item {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); font-size: var(--text-sm); cursor: pointer;
  transition: all var(--transition-fast);
}
.pagination-item:hover { background: var(--bg-hover); }
.pagination-item.active { background: var(--primary-500); color: #fff; }
