/* ==========================================================================
   STUDIO ADMIN CONSOLE STYLES (橙早刘刘管理后台样式)
   ========================================================================== */
.admin-body {
  background-color: var(--bg-base);
  color: var(--text-base);
  min-height: 100vh;
}

.admin-main-shell {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Login View Card */
.admin-login-card {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-tech);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-xl);
}

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

.login-lock-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 22px;
  color: var(--text-title);
  margin-bottom: 6px;
}

.login-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.login-error-text {
  font-size: 13px;
  color: #ef4444;
  margin: 8px 0;
  min-height: 18px;
  text-align: center;
}

/* Stats Cards Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--speed-normal), box-shadow var(--speed-normal);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Admin Toolbar */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  background: rgba(226, 232, 240, 0.6);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.filter-pill {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--text-title);
}

.filter-pill.active {
  background: #ffffff;
  color: var(--text-title);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.admin-select {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-body);
  outline: none;
  cursor: pointer;
}

/* Feedbacks Stream & Cards */
.feedbacks-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feedback-card-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--speed-normal);
  position: relative;
}

.feedback-card-item:hover {
  border-color: var(--border-tech);
  box-shadow: var(--shadow-md);
}

.feedback-card-item.status-unread {
  border-left: 4px solid var(--orange);
  background: linear-gradient(to right, rgba(255, 107, 44, 0.03), var(--bg-card));
}

.fb-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.fb-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fb-user-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
}

.fb-contact-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  background: rgba(2, 132, 199, 0.1);
  color: var(--cyan);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fb-topic-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 6px;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

.fb-meta-info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  background: rgba(248, 250, 252, 0.8);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.fb-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  flex-wrap: wrap;
  gap: 10px;
}

.fb-status-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.status-tag-unread { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.status-tag-read { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }
.status-tag-archived { background: rgba(100, 116, 139, 0.12); color: #64748b; }

.fb-action-btn-group {
  display: flex;
  gap: 8px;
}

.fb-act-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-act-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-tech);
}

.fb-act-btn.delete:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.admin-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-subtle);
}

/* Modal Dialog */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  z-index: 2;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  color: var(--text-title);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .toolbar-left, .toolbar-right {
    width: 100%;
  }
  .filter-pills {
    width: 100%;
    overflow-x: auto;
  }
}
