
/* ======= Combined Page Styles ======= */

.layout {
  display: flex;
  height: 100vh;
}
.sidebar {
  width: 240px;
  background: #001529;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.logo {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.menu {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all 0.3s;
}
.menu-item:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.menu-item.router-link-active {
  background: #1890ff;
  color: #fff;
}
.menu-section {
  margin-top: 20px;
}
.section-title {
  padding: 12px 20px;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
  font-weight: bold;
}
.submenu-item {
  padding-left: 32px;
}
.content {
  flex: 1;
  overflow-y: auto;
  background: #f0f2f5;
}
.logout-section {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.65);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-logout:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}


h1 {
  font-weight: 500;
  font-size: 2.6rem;
  position: relative;
  top: -10px;
}

h3 {
  font-size: 1.2rem;
}

.greetings h1,
.greetings h3 {
  text-align: center;
}

@media (min-width: 1024px) {
  .greetings h1,
  .greetings h3 {
    text-align: left;
  }
}


.item {
  margin-top: 2rem;
  display: flex;
  position: relative;
}

.details {
  flex: 1;
  margin-left: 1rem;
}

i {
  display: flex;
  place-items: center;
  place-content: center;
  width: 32px;
  height: 32px;

  color: var(--color-text);
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

@media (min-width: 1024px) {
  .item {
    margin-top: 0;
    padding: 0.4rem 0 1rem calc(var(--section-gap) / 2);
  }

  i {
    top: calc(50% - 25px);
    left: -26px;
    position: absolute;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    border-radius: 8px;
    width: 50px;
    height: 50px;
  }

  .item:before {
    content: ' ';
    border-left: 1px solid var(--color-border);
    position: absolute;
    left: 0;
    bottom: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .item:after {
    content: ' ';
    border-left: 1px solid var(--color-border);
    position: absolute;
    left: 0;
    top: calc(50% + 25px);
    height: calc(50% - 25px);
  }

  .item:first-of-type:before {
    display: none;
  }

  .item:last-of-type:after {
    display: none;
  }
}


.dashboard {
  padding: 20px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.stat-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stat-card h3 {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}
.number {
  font-size: 32px;
  font-weight: bold;
  margin: 0;
  color: #333;
}
.success { color: #52c41a; }
.error { color: #f5222d; }


.image-generation { padding: 20px; max-width: 1400px; margin: 0 auto; }

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0;
}
.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn:hover { color: #1890ff; }
.tab-btn.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
  font-weight: 600;
}

/* Cards */
.generation-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.generation-card h2 {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
}
.hint {
  color: #888;
  font-size: 13px;
  margin: 0 0 20px;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.category-btn {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.category-btn:hover { border-color: #1890ff; color: #1890ff; }
.category-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

/* Breed Grid */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.breed-item {
  position: relative;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.breed-item:hover {
  border-color: #1890ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24,144,255,0.15);
}
.breed-item.selected {
  border-color: #1890ff;
  background: #e6f7ff;
}
.breed-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.breed-name { font-size: 13px; color: #333; }
.check-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #1890ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Library Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.library-item {
  position: relative;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.library-item:hover { border-color: #1890ff; transform: translateY(-2px); }
.library-item.selected { border-color: #1890ff; background: #e6f7ff; }
.library-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.library-info {
  padding: 12px;
}
.library-name { font-weight: 600; font-size: 14px; color: #333; }
.library-source { font-size: 12px; color: #888; margin-top: 4px; }
.library-date { font-size: 11px; color: #aaa; margin-top: 4px; }
.btn-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,77,79,0.9);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Selected Info */
.selected-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #91d5ff;
  margin-top: 16px;
}
.selected-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s;
}
.upload-area:hover { border-color: #1890ff; background: #f0f9ff; }
.upload-placeholder { color: #999; }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-tip { font-size: 12px; margin-top: 8px; }
.preview-img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
}

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group textarea { resize: vertical; }

/* Buttons */
.btn-primary {
  padding: 10px 24px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-primary:hover:not(:disabled) { background: #40a9ff; }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-primary.btn-large { padding: 14px 32px; font-size: 16px; }
.btn-secondary {
  padding: 10px 20px;
  background: #fff;
  color: #1890ff;
  border: 1px solid #1890ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-secondary:hover { background: #e6f7ff; }

.action-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.generated-preview {
  margin-top: 24px;
  padding: 20px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  text-align: center;
}
.generated-preview h3 { margin: 0 0 12px; color: #52c41a; }
.preview-large { max-width: 300px; border-radius: 8px; }

/* Step 2 */
.step-2 { border: 2px solid #1890ff; }
.step2-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}
.selected-3d-preview {
  text-align: center;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}
.selected-3d-preview h3 { margin: 0 0 12px; font-size: 14px; color: #666; }
.selected-3d-preview .preview-large { max-width: 200px; margin-bottom: 12px; }

.animation-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.preset-label { font-size: 13px; color: #888; }
.preset-btn {
  padding: 4px 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.preset-btn:hover { background: #e6f7ff; border-color: #1890ff; color: #1890ff; }

.video-result {
  margin-top: 20px;
  padding: 20px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  text-align: center;
}
.video-result h3 { margin: 0 0 12px; color: #52c41a; }
.video-preview {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

/* Generation List */
.generation-list {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.generation-list h2 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
th { background: #fafafa; font-weight: 600; color: #333; }
.thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.muted { color: #ccc; font-size: 12px; }
.prompt-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  background: #1890ff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s;
}
.btn-sm:hover { background: #40a9ff; }
.btn-sm.btn-danger { background: #ff4d4f; border-color: #ff4d4f; }
.btn-sm.btn-danger:hover { background: #ff7875; }

.loading, .empty {
  text-align: center;
  padding: 40px;
  color: #999;
}


.image-management { padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.btn-primary { padding: 10px 20px; background: #1890ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.btn-secondary { padding: 10px 20px; background: #fff; color: #333; border: 1px solid #d9d9d9; border-radius: 4px; cursor: pointer; }
.btn-success { padding: 8px 16px; background: #52c41a; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.btn-warning { padding: 8px 16px; background: #faad14; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.form-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.form-card { background: #fff; padding: 30px; border-radius: 8px; width: 500px; max-height: 80vh; overflow-y: auto; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px; border: 1px solid #d9d9d9; border-radius: 4px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.image-card { background: #fff; border-radius: 8px; padding: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; gap: 15px; }
.thumbnail { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.image-info { flex: 1; }
.image-info h3 { margin: 0 0 5px 0; font-size: 16px; }
.image-info p { margin: 0 0 10px 0; color: #666; font-size: 14px; }
.meta { display: flex; gap: 10px; }
.category, .price { padding: 2px 8px; background: #f0f0f0; border-radius: 4px; font-size: 12px; }
.image-actions { display: flex; align-items: center; }


.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: 28px;
  margin: 0 0 8px 0;
  color: #333;
}

.login-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 500;
  color: #555;
  font-size: 14px;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.error-message {
  color: #ff4d4f;
  font-size: 14px;
  text-align: center;
  padding: 8px;
  background: #fff2f0;
  border-radius: 4px;
}

.btn-login {
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


.pet-category-page {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-header h1 {
  margin: 0 0 20px;
  font-size: 24px;
  color: #333;
}

.page-body {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

/* --- Sidebar --- */
.category-sidebar {
  width: 240px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.btn-add-category {
  padding: 4px 10px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.category-item:hover {
  background: #f5f5f5;
}

.category-item.active {
  background: #e6f7ff;
  border-right: 3px solid #1890ff;
}

.cat-icon {
  font-size: 18px;
}

.cat-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.cat-actions {
  display: none;
  gap: 4px;
}

.category-item:hover .cat-actions {
  display: flex;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
}

/* --- Breed Main --- */
.breed-main {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.breed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.btn-add-breed {
  padding: 6px 14px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.btn-add-breed:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.loading,
.empty-tip {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

/* --- Breed Grid --- */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  overflow-y: auto;
  flex: 1;
}

.breed-card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.breed-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breed-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
}

.breed-avatar-img,
.breed-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.breed-avatar-placeholder {
  background: #e6f7ff;
  color: #1890ff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.breed-image-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
}

.breed-image-img,
.breed-image-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.breed-image-placeholder {
  background: #f0f0f0;
  color: #999;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hidden-input {
  display: none;
}

.breed-info {
  text-align: center;
  width: 100%;
}

.breed-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.breed-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}

.btn-danger {
  color: #ff4d4f;
  border-color: #ff4d4f;
}

.btn-sm:hover {
  opacity: 0.8;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90%;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #1890ff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel,
.btn-confirm {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-confirm {
  background: #1890ff;
  color: #fff;
}

.btn-cancel:hover {
  background: #e6e6e6;
}

.btn-confirm:hover {
  background: #40a9ff;
}


.pet-detail-page { padding: 20px; max-width: 900px; }
.page-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 22px; color: #333; }
.btn-back { padding: 8px 16px; background: #fff; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; font-size: 14px; }
.loading { text-align: center; padding: 60px; color: #999; }

.tab-cards { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-card { flex: 1; min-width: 120px; padding: 16px; background: #fff; border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.2s; }
.tab-card:hover { border-color: #1890ff; }
.tab-card.active { border-color: #1890ff; background: #e6f7ff; }
.tab-icon { display: block; font-size: 28px; margin-bottom: 6px; }
.tab-name { font-size: 14px; color: #333; font-weight: 500; }

.card { background: #fff; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.card-header { padding: 14px 20px 0 20px; border-bottom: none; }
.card-header h2 { margin: 0; font-size: 16px; color: #333; }
.card-body { padding: 20px; position: relative; }

.pet-base-card { display: flex; gap: 16px; padding: 16px; background: #f9f9f9; border-radius: 12px; margin-bottom: 20px; }
.pet-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; flex-shrink: 0; }
.pet-base-info { flex: 1; min-width: 0; }

.vital-data-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vital-item { background: #f9f9f9; padding: 20px; border-radius: 12px; text-align: center; }
.vital-label { display: block; font-size: 13px; color: #999; margin-bottom: 8px; }
.vital-value { display: block; font-size: 24px; font-weight: 600; color: #333; }
.vital-value .unit { font-size: 14px; color: #999; font-weight: 400; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item .label { font-size: 12px; color: #999; }
.info-item .value { font-size: 14px; color: #333; font-weight: 500; }

.sub-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.sub-tab { padding: 6px 14px; background: #f5f5f5; border-radius: 16px; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.sub-tab.active { background: #1890ff; color: #fff; }

.profile-section { margin-top: 8px; }

.archive-templates { display: flex; flex-direction: column; gap: 12px; }
.archive-tpl-item { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tpl-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.tpl-desc { font-size: 13px; color: #666; margin-bottom: 10px; }
.tpl-options { display: flex; gap: 8px; flex-wrap: wrap; }
.option-tag { padding: 6px 14px; background: #f5f5f5; border: 1px solid #ddd; border-radius: 20px; font-size: 13px; color: #666; }
.option-tag.active { background: #1890ff; color: #fff; border-color: #1890ff; font-weight: 500; }

.skill-items { display: flex; flex-direction: column; gap: 12px; }
.skill-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.skill-info { flex: 1; min-width: 0; }
.skill-name { font-size: 14px; font-weight: 500; color: #333; display: block; }
.skill-age { font-size: 12px; color: #52c41a; display: block; margin-top: 2px; }
.skill-desc { font-size: 12px; color: #999; font-style: italic; display: block; margin-top: 2px; }
.skill-std { font-size: 12px; color: #722ed1; margin-top: 2px; display: block; }
.skill-status { display: flex; gap: 6px; flex-wrap: wrap; }
.status-btn { padding: 4px 12px; border: 1px solid #ddd; border-radius: 16px; font-size: 12px; color: #666; cursor: pointer; transition: all 0.2s; background: #fff; }
.status-btn:hover { border-color: #722ed1; color: #722ed1; }
.status-btn.active { background: #722ed1; color: #fff; border-color: #722ed1; font-weight: 500; }

.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item { padding: 14px 16px; background: #f9f9f9; border-radius: 8px; border-left: 3px solid #1890ff; }
.task-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.task-name { font-size: 15px; font-weight: 600; color: #333; }
.task-period { font-size: 11px; color: #1890ff; background: #e6f7ff; padding: 2px 8px; border-radius: 4px; }
.task-desc { font-size: 13px; color: #666; margin-bottom: 4px; }
.task-time { font-size: 12px; color: #999; }
.empty-tip { text-align: center; padding: 30px; color: #999; font-size: 14px; }
.records-list { display: flex; flex-direction: column; gap: 16px; }
.record-group { display: flex; flex-direction: column; gap: 8px; }
.record-date-header { font-size: 13px; font-weight: 600; color: #333; padding: 4px 0 8px 0; border-bottom: 1px solid #eee; margin-bottom: 4px; }
.record-item { padding: 14px 16px; background: #f9f9f9; border-radius: 8px; border-left: 3px solid #722ed1; }
.record-card-tag { font-size: 11px; color: #722ed1; background: #f3e8ff; padding: 2px 8px; border-radius: 4px; margin-right: 6px; }
.record-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.record-icon { font-size: 18px; }
.record-category { font-size: 12px; color: #1890ff; background: #e6f7ff; padding: 2px 8px; border-radius: 4px; }
.record-name { font-size: 15px; font-weight: 600; color: #333; }
.record-value { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.value-label { font-size: 13px; color: #666; }
.value-text { font-size: 15px; font-weight: 500; color: #722ed1; }
.record-time { font-size: 12px; color: #999; }
.daily-records { margin-top: 8px; }
.records-table { width: 100%; border-collapse: collapse; }
.records-table th { text-align: left; padding: 10px 12px; background: #f5f5f5; border-bottom: 2px solid #ddd; font-size: 13px; color: #333; font-weight: 600; }
.records-table td { padding: 12px; border-bottom: 1px solid #eee; }
.record-time-cell { width: 160px; font-size: 13px; color: #333; white-space: nowrap; }
.record-source-cell { width: 120px; font-size: 13px; color: #1890ff; font-weight: 500; }
.record-content-cell { font-size: 14px; color: #555; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 16px; }
.pagination button { padding: 6px 14px; background: #fff; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination span { font-size: 14px; color: #666; }


.pet-list-page {
  padding: 20px;
  background: #f0f2f5;
  min-height: 100%;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #fff;
  padding: 20px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  color: #333;
}

.stats {
  display: flex;
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, #1890ff, #36cfc9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  min-width: 100px;
}

.stat-num {
  font-size: 24px;
  font-weight: bold;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
}

.toolbar {
  background: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
  flex: 1;
  max-width: 300px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.btn-search, .btn-reset {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-search {
  background: #1890ff;
  color: #fff;
}

.btn-reset {
  background: #f5f5f5;
  color: #666;
}

.table-wrapper {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
}

.pet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.pet-table th {
  background: #fafafa;
  padding: 14px 12px;
  text-align: left;
  color: #333;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.pet-table td {
  padding: 12px;
  border-bottom: 1px solid #f5f5f5;
  color: #555;
}

.pet-table tr:hover {
  background: #fafbfc;
}

.avatar-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tag-blue {
  background: #e6f7ff;
  color: #1890ff;
}

.tag-pink {
  background: #fff0f6;
  color: #eb2f96;
}

.time-cell {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

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

.btn-edit, .btn-delete {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 6px;
}

.btn-edit {
  background: #e6f7ff;
  color: #1890ff;
}

.btn-delete {
  background: #fff1f0;
  color: #ff4d4f;
}

.btn-edit:hover, .btn-delete:hover {
  opacity: 0.8;
}

.loading-tip {
  text-align: center;
  padding: 40px;
  color: #999;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
}

.pagination button {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.pagination button:disabled {
  cursor: not-allowed;
  color: #ccc;
}

.page-info {
  color: #666;
  font-size: 14px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
  max-width: 90%;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.switch-group {
  display: flex;
  gap: 8px;
}

.switch-item {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.2s;
}

.switch-item.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel, .btn-confirm {
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-confirm {
  background: #1890ff;
  color: #fff;
}


.settings-container {
  padding: 20px;
  max-width: 700px;
}

h1 {
  font-size: 24px;
  margin-bottom: 24px;
  color: #333;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.form-section {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-tip {
  background: #f0f5ff;
  border: 1px solid #d9e8ff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.1);
}

.test-connection {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #eee;
}

.btn-test {
  padding: 10px 20px;
  background: #52c41a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-test:hover {
  background: #73d13a;
}

.btn-test:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.test-message {
  font-size: 13px;
}

.test-message.success {
  color: #52c41a;
}

.test-message.error {
  color: #ff4d4f;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-save {
  padding: 10px 24px;
  background-color: #4a90d9;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-save:hover {
  background-color: #357abd;
}

.btn-save:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.save-message {
  font-size: 14px;
}

.save-message.success {
  color: #52c41a;
}

.save-message.error {
  color: #ff4d4f;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}


.archive-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.cat-sidebar { width: 240px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.cat-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.cat-item:hover { background: #f5f5f5; }
.cat-item.active { background: #e6f7ff; border-right: 3px solid #1890ff; }
.cat-info { flex: 1; display: flex; align-items: center; gap: 8px; }
.cat-icon { font-size: 16px; }
.cat-name { font-weight: 500; }
.cat-actions { display: none; gap: 4px; }
.cat-item:hover .cat-actions { display: flex; }
.cat-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.archive-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-tpl { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-tpl:disabled { background: #ccc; cursor: not-allowed; }
.tpl-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.tpl-card { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #1890ff; }
.tpl-name { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px; }
.tpl-desc { font-size: 13px; color: #666; margin-bottom: 8px; }
.tpl-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.option-tag { padding: 3px 10px; background: #e6f7ff; color: #1890ff; border-radius: 4px; font-size: 12px; }
.tpl-pets { display: flex; gap: 6px; margin-bottom: 8px; }
.pet-tag { padding: 2px 8px; background: #f5f5f5; color: #666; border-radius: 4px; font-size: 11px; }
.tpl-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; width: 460px; max-width: 90%; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.form-group textarea { resize: vertical; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #1890ff; color: #fff; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid #eee; }
.btn-cancel, .btn-confirm { padding: 10px 24px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.card-push-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.category-sidebar { width: 280px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.category-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.category-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.category-item:hover { background: #f5f5f5; }
.category-item.active { background: #e6f7ff; border-right: 3px solid #1890ff; }
.category-info { flex: 1; display: flex; align-items: center; gap: 8px; }
.category-icon { font-size: 18px; }
.category-name { font-weight: 500; }
.category-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-chip { padding: 1px 6px; background: #f5f5f5; color: #666; border-radius: 3px; font-size: 11px; }
.category-actions { display: none; gap: 4px; }
.category-item:hover .category-actions { display: flex; }
.category-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.push-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.push-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-push { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-push:disabled { background: #ccc; cursor: not-allowed; }
.push-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.loading-small, .empty-small { text-align: center; padding: 10px; color: #999; font-size: 12px; }
.push-card { padding: 16px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #1890ff; }
.push-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.push-title { font-size: 16px; font-weight: 600; color: #333; }
.period-badge { padding: 2px 10px; border-radius: 12px; font-size: 11px; color: #fff; }
.period-badge.once { background: #999; }
.period-badge.daily { background: #52c41a; }
.period-badge.weekly { background: #1890ff; }
.period-badge.monthly { background: #722ed1; }
.push-subtitle { font-size: 14px; color: #666; margin-bottom: 6px; }
.push-content { font-size: 13px; color: #999; margin-bottom: 8px; line-height: 1.5; }
.push-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.push-time { font-size: 12px; color: #1890ff; }
.pet-tag { padding: 2px 8px; background: #f5f5f5; color: #666; border-radius: 4px; font-size: 11px; }
.items-section { margin: 12px 0; padding: 12px; background: #f9f9f9; border-radius: 8px; }
.items-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.btn-add-item { padding: 4px 10px; background: #52c41a; color: #fff; border: none; border-radius: 4px; font-size: 11px; cursor: pointer; }
.items-list { display: flex; flex-direction: column; gap: 8px; }
.item-card { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #fff; border-radius: 6px; border: 1px solid #eee; }
.item-header { display: flex; align-items: center; gap: 8px; }
.item-icon { font-size: 16px; }
.item-category { font-size: 12px; color: #1890ff; background: #e6f7ff; padding: 2px 6px; border-radius: 3px; }
.item-name { font-size: 14px; font-weight: 500; color: #333; }
.item-options { display: flex; gap: 4px; flex-wrap: wrap; }
.opt-tag { padding: 2px 8px; background: #f5f5f5; color: #666; border-radius: 4px; font-size: 11px; }
.opt-tag.default { background: #722ed1; color: #fff; }
.item-actions { display: flex; gap: 6px; }
.push-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; width: 460px; max-width: 90%; display: flex; flex-direction: column; overflow: hidden; }
.modal-large { width: 520px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; max-height: 60vh; overflow-y: auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.form-group textarea { resize: vertical; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #1890ff; color: #fff; font-weight: 500; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid #eee; }
.btn-cancel, .btn-confirm { padding: 10px 24px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.cleaning-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.cat-sidebar { width: 240px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.cat-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.cat-item:hover { background: #f5f5f5; }
.cat-item.active { background: #e6f7ff; border-right: 3px solid #1890ff; }
.cat-actions { display: none; gap: 4px; }
.cat-item:hover .cat-actions { display: flex; }
.cat-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.tpl-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.tpl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-tpl { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-tpl:disabled { background: #ccc; cursor: not-allowed; }
.tpl-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.tpl-card { padding: 16px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #52c41a; }
.tpl-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.tpl-desc { font-size: 13px; color: #666; margin-bottom: 8px; }
.tpl-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.period-tag { padding: 3px 10px; background: #e6f7ff; color: #1890ff; border-radius: 4px; font-size: 12px; }
.time-tag { font-size: 12px; color: #999; }
.cat-tag { padding: 2px 8px; background: #f6ffed; color: #52c41a; border-radius: 4px; font-size: 11px; }
.tpl-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; padding: 24px; width: 420px; max-width: 90%; }
.modal h3 { margin: 0 0 20px; font-size: 18px; color: #333; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #1890ff; color: #fff; font-weight: 500; }
.modal-actions, .form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.btn-cancel, .btn-confirm { padding: 8px 20px; border-radius: 4px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.skill-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.level-sidebar { width: 260px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.level-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.level-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.level-item:hover { background: #f5f5f5; }
.level-item.active { background: #e6f7ff; border-right: 3px solid #722ed1; }
.level-info { flex: 1; }
.level-name { font-weight: 500; display: block; margin-bottom: 4px; }
.level-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-chip { padding: 1px 6px; background: #f5f5f5; color: #666; border-radius: 3px; font-size: 11px; }
.level-actions { display: none; gap: 4px; }
.level-item:hover .level-actions { display: flex; }
.level-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.skill-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-skill { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-skill:disabled { background: #ccc; cursor: not-allowed; }
.skill-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.skill-card { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #722ed1; }
.skill-name { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px; }
.skill-age { font-size: 12px; color: #52c41a; margin-bottom: 4px; }
.skill-desc { font-size: 13px; color: #666; margin-bottom: 4px; }
.skill-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.option-tag { padding: 3px 10px; background: #f9f0ff; color: #722ed1; border-radius: 4px; font-size: 12px; }
.skill-pets { display: flex; gap: 6px; margin-bottom: 8px; }
.pet-tag { padding: 2px 8px; background: #e6f7ff; color: #1890ff; border-radius: 4px; font-size: 11px; }
.skill-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; width: 460px; max-width: 90%; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.form-group textarea { resize: vertical; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #722ed1; color: #fff; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid #eee; }
.btn-cancel, .btn-confirm { padding: 10px 24px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.health-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.cat-sidebar { width: 240px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.cat-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.cat-item:hover { background: #f5f5f5; }
.cat-item.active { background: #e6f7ff; border-right: 3px solid #1890ff; }
.cat-actions { display: none; gap: 4px; }
.cat-item:hover .cat-actions { display: flex; }
.cat-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.tpl-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.tpl-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-tpl { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-tpl:disabled { background: #ccc; cursor: not-allowed; }
.tpl-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.tpl-card { padding: 16px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #ff4d4f; }
.tpl-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.tpl-desc { font-size: 13px; color: #666; margin-bottom: 8px; }
.tpl-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.period-tag { padding: 3px 10px; background: #fff1f0; color: #ff4d4f; border-radius: 4px; font-size: 12px; }
.time-tag { font-size: 12px; color: #999; }
.cat-tag { padding: 2px 8px; background: #f6ffed; color: #52c41a; border-radius: 4px; font-size: 11px; }
.tpl-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; padding: 24px; width: 420px; max-width: 90%; }
.modal h3 { margin: 0 0 20px; font-size: 18px; color: #333; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #1890ff; color: #fff; font-weight: 500; }
.modal-actions, .form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.btn-cancel, .btn-confirm { padding: 8px 20px; border-radius: 4px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.skill-page { padding: 20px; height: 100%; display: flex; flex-direction: column; background: #f5f5f5; }
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0; font-size: 24px; color: #333; }
.page-body { display: flex; gap: 20px; flex: 1; min-height: 0; }
.level-sidebar { width: 260px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.sidebar-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.btn-add-cat { padding: 4px 10px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; }
.level-list { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; }
.level-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333; transition: background 0.2s; }
.level-item:hover { background: #f5f5f5; }
.level-item.active { background: #e6f7ff; border-right: 3px solid #722ed1; }
.level-info { flex: 1; }
.level-name { font-weight: 500; display: block; margin-bottom: 4px; }
.level-cats { display: flex; gap: 4px; flex-wrap: wrap; }
.cat-chip { padding: 1px 6px; background: #f5f5f5; color: #666; border-radius: 3px; font-size: 11px; }
.level-actions { display: none; gap: 4px; }
.level-item:hover .level-actions { display: flex; }
.level-actions button { background: none; border: none; cursor: pointer; font-size: 12px; }
.skill-main { flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.skill-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.btn-add-skill { padding: 6px 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-add-skill:disabled { background: #ccc; cursor: not-allowed; }
.skill-list { overflow-y: auto; flex: 1; }
.loading, .empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.skill-card { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 12px; border-left: 4px solid #722ed1; }
.skill-name { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px; }
.skill-age { font-size: 12px; color: #52c41a; margin-bottom: 4px; }
.skill-desc { font-size: 13px; color: #666; margin-bottom: 4px; }
.skill-std { font-size: 12px; color: #722ed1; margin-top: 4px; }
.skill-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.option-tag { padding: 3px 10px; background: #f9f0ff; color: #722ed1; border-radius: 4px; font-size: 12px; }
.skill-pets { display: flex; gap: 6px; margin-bottom: 8px; }
.pet-tag { padding: 2px 8px; background: #e6f7ff; color: #1890ff; border-radius: 4px; font-size: 11px; }
.skill-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: #1890ff;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: #40a9ff;
  border-color: #40a9ff;
}
.btn-sm.btn-danger { color: #ff4d4f; border-color: #ff4d4f; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; border-radius: 8px; width: 460px; max-width: 90%; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.modal-header h3 { margin: 0; font-size: 18px; color: #333; }
.btn-close { background: none; border: none; font-size: 24px; color: #999; cursor: pointer; }
.form-content { padding: 16px 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: #555; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1890ff; }
.form-group textarea { resize: vertical; }
.selector { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-opt { padding: 8px 16px; background: #f5f5f5; border-radius: 6px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; }
.sel-opt.active { background: #722ed1; color: #fff; font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid #eee; }
.btn-cancel, .btn-confirm { padding: 10px 24px; border-radius: 6px; font-size: 14px; cursor: pointer; border: none; }
.btn-cancel { background: #f5f5f5; color: #666; }
.btn-confirm { background: #1890ff; color: #fff; }


.upgrade-records { padding: 20px; }
.table-container { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
th { background: #fafafa; font-weight: bold; }
.thumbnail { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.btn-link { background: none; border: none; color: #1890ff; cursor: pointer; text-decoration: underline; }


.user-management-page {
  padding: 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.stats {
  display: flex;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-label {
  font-size: 12px;
  color: #999;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
}

.search-bar {
  margin-bottom: 16px;
}

.search-input {
  width: 300px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.table-container {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading,
.empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

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

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

.user-table th {
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.user-table td {
  font-size: 14px;
  color: #333;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6f7ff;
  color: #1890ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.btn-edit,
.btn-delete {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-right: 8px;
}

.btn-edit {
  background: #1890ff;
  color: #fff;
}

.btn-delete {
  background: #ff4d4f;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.pagination button {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

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

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 400px;
}

.modal h3 {
  margin: 0 0 20px;
  font-size: 18px;
}

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

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

.form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel,
.btn-confirm {
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-confirm {
  background: #1890ff;
  color: #fff;
}

/* ImageGenerationView */

.image-generation[data-v-img2026] { padding: 20px; max-width: 1400px; margin: 0 auto;
}

/* Tabs */
.tabs[data-v-img2026] {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0;
}
.tab-btn[data-v-img2026] {
  padding: 12px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: #666;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tab-btn[data-v-img2026]:hover { color: #1890ff;
}
.tab-btn.active[data-v-img2026] {
  color: #1890ff;
  border-bottom-color: #1890ff;
  font-weight: 600;
}

/* Cards */
.generation-card[data-v-img2026] {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}
.generation-card h2[data-v-img2026] {
  margin: 0 0 8px;
  color: #333;
  font-size: 18px;
}
.hint[data-v-img2026] {
  color: #888;
  font-size: 13px;
  margin: 0 0 20px;
}

/* Category Filter */
.category-filter[data-v-img2026] {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.category-btn[data-v-img2026] {
  padding: 6px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.category-btn[data-v-img2026]:hover { border-color: #1890ff; color: #1890ff;
}
.category-btn.active[data-v-img2026] {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

/* Breed Grid */
.breed-grid[data-v-img2026] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.breed-item[data-v-img2026] {
  position: relative;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}
.breed-item[data-v-img2026]:hover {
  border-color: #1890ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24,144,255,0.15);
}
.breed-item.selected[data-v-img2026] {
  border-color: #1890ff;
  background: #e6f7ff;
}
.breed-item img[data-v-img2026] {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}
.breed-name[data-v-img2026] { font-size: 13px; color: #333;
}
.check-mark[data-v-img2026] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #1890ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Library Grid */
.library-grid[data-v-img2026] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.library-item[data-v-img2026] {
  position: relative;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s;
}
.library-item[data-v-img2026]:hover { border-color: #1890ff; transform: translateY(-2px);
}
.library-item.selected[data-v-img2026] { border-color: #1890ff; background: #e6f7ff;
}
.library-item img[data-v-img2026] {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.library-info[data-v-img2026] {
  padding: 12px;
}
.library-name[data-v-img2026] { font-weight: 600; font-size: 14px; color: #333;
}
.library-source[data-v-img2026] { font-size: 12px; color: #888; margin-top: 4px;
}
.library-date[data-v-img2026] { font-size: 11px; color: #aaa; margin-top: 4px;
}
.btn-delete[data-v-img2026] {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,77,79,0.9);
  color: #fff;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Selected Info */
.selected-info[data-v-img2026] {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #91d5ff;
  margin-top: 16px;
}
.selected-thumb[data-v-img2026] {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

/* Upload Area */
.upload-area[data-v-img2026] {
  border: 2px dashed #d9d9d9;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.2s;
}
.upload-area[data-v-img2026]:hover { border-color: #1890ff; background: #f0f9ff;
}
.upload-placeholder[data-v-img2026] { color: #999;
}
.upload-icon[data-v-img2026] { font-size: 48px; margin-bottom: 12px;
}
.upload-tip[data-v-img2026] { font-size: 12px; margin-top: 8px;
}
.preview-img[data-v-img2026] {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
}

/* Form */
.form-group[data-v-img2026] { margin-bottom: 16px;
}
.form-group label[data-v-img2026] {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}
.form-group input[data-v-img2026],
.form-group textarea[data-v-img2026] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.form-group textarea[data-v-img2026] { resize: vertical;
}

/* Buttons */
.btn-primary[data-v-img2026] {
  padding: 10px 24px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-primary[data-v-img2026]:hover:not(:disabled) { background: #40a9ff;
}
.btn-primary[data-v-img2026]:disabled { background: #ccc; cursor: not-allowed;
}
.btn-primary.btn-large[data-v-img2026] { padding: 14px 32px; font-size: 16px;
}
.btn-secondary[data-v-img2026] {
  padding: 10px 20px;
  background: #fff;
  color: #1890ff;
  border: 1px solid #1890ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn-secondary[data-v-img2026]:hover { background: #e6f7ff;
}
.action-row[data-v-img2026] {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.generated-preview[data-v-img2026] {
  margin-top: 24px;
  padding: 20px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  text-align: center;
}
.generated-preview h3[data-v-img2026] { margin: 0 0 12px; color: #52c41a;
}
.preview-large[data-v-img2026] { max-width: 300px; border-radius: 8px;
}

/* Step 2 */
.step-2[data-v-img2026] { border: 2px solid #1890ff;
}
.step2-layout[data-v-img2026] {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}
.selected-3d-preview[data-v-img2026] {
  text-align: center;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
}
.selected-3d-preview h3[data-v-img2026] { margin: 0 0 12px; font-size: 14px; color: #666;
}
.selected-3d-preview .preview-large[data-v-img2026] { max-width: 200px; margin-bottom: 12px;
}
.animation-presets[data-v-img2026] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.preset-label[data-v-img2026] { font-size: 13px; color: #888;
}
.preset-btn[data-v-img2026] {
  padding: 4px 12px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}
.preset-btn[data-v-img2026]:hover { background: #e6f7ff; border-color: #1890ff; color: #1890ff;
}
.video-result[data-v-img2026] {
  margin-top: 20px;
  padding: 20px;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
  text-align: center;
}
.video-result h3[data-v-img2026] { margin: 0 0 12px; color: #52c41a;
}
.video-preview[data-v-img2026] {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

/* Generation List */
.generation-list[data-v-img2026] {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.generation-list h2[data-v-img2026] {
  margin: 0 0 16px;
  font-size: 18px;
  color: #333;
}
table[data-v-img2026] { width: 100%; border-collapse: collapse;
}
th[data-v-img2026], td[data-v-img2026] { padding: 12px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
th[data-v-img2026] { background: #fafafa; font-weight: 600; color: #333;
}
.thumb[data-v-img2026] { width: 60px; height: 60px; object-fit: cover; border-radius: 6px;
}
.muted[data-v-img2026] { color: #ccc; font-size: 12px;
}
.prompt-cell[data-v-img2026] { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-sm[data-v-img2026] {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #1890ff;
  background: #1890ff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s;
}
.btn-sm[data-v-img2026]:hover { background: #40a9ff;
}
.btn-sm.btn-danger[data-v-img2026] { background: #ff4d4f; border-color: #ff4d4f;
}
.btn-sm.btn-danger[data-v-img2026]:hover { background: #ff7875;
}
.loading[data-v-img2026], .empty[data-v-img2026] {
  text-align: center;
  padding: 40px;
  color: #999;
}
