/* ===== Admin Layout ===== */
.admin-body {
  background: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Login Page ===== */
.admin-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff6b8a 0%, #a855f7 100%);
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

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

.login-logo {
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 14px;
  color: #94a3b8;
}

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

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.login-form input:focus {
  outline: none;
  border-color: #ff6b8a;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff6b8a, #a855f7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

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

.login-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #94a3b8;
}

/* ===== Admin Layout ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

html, body {
  overflow-x: hidden;
}

/* ===== Sidebar ===== */
.admin-sidebar {
  width: 240px;
  background: #1e293b;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.nav-item.active {
  background: rgba(255,107,138,0.15);
  color: #ff6b8a;
  border-left-color: #ff6b8a;
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b8a, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.admin-name {
  font-size: 14px;
  font-weight: 600;
}

.admin-role {
  font-size: 11px;
  color: #64748b;
}

.logout-btn {
  width: 100%;
  padding: 8px;
  background: rgba(239,68,68,0.15);
  color: #ef4444;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: rgba(239,68,68,0.25);
}

/* ===== Main Content ===== */
.admin-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.module-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.admin-content {
  padding: 24px 32px;
  flex: 1;
  overflow-x: hidden;
}

/* ===== Module Panels ===== */
.module-panel {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  min-width: 0;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.stat-users .stat-icon-wrap { background: #fef2f2; }
.stat-vip .stat-icon-wrap { background: #fef3c7; }
.stat-images .stat-icon-wrap { background: #ecfdf5; }
.stat-diaries .stat-icon-wrap { background: #eff6ff; }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 4px;
}

.stat-trend {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-trend.up { color: #16a34a; background: #f0fdf4; }
.stat-trend.down { color: #ef4444; background: #fef2f2; }

/* ===== Panel Card ===== */
.panel-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.panel-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

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

.panel-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

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

/* ===== Quick Actions ===== */
.quick-actions {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.quick-actions h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.action-card:hover {
  border-color: #ff6b8a;
  background: #fff5f7;
  transform: translateY(-2px);
}

.action-icon {
  font-size: 28px;
}

.action-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

/* ===== Form Styles ===== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  background: #fff;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== Upload Row ===== */
.upload-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.preview-box {
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.preview-placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.upload-controls {
  flex: 1;
}

/* ===== Feature Cards Grid ===== */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.feature-card-editor {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card-editor:hover {
  border-color: #ff6b8a;
  box-shadow: 0 4px 12px rgba(255,107,138,0.1);
}

.feature-card-editor .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.feature-card-editor .card-number {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
}

.feature-card-editor .card-actions {
  display: flex;
  gap: 8px;
}

.feature-card-editor .btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}

.feature-card-editor .btn-icon.delete {
  background: #fef2f2;
  color: #ef4444;
}

.feature-card-editor .btn-icon.delete:hover {
  background: #fee2e2;
}

.feature-card-editor .btn-icon.move-up,
.feature-card-editor .btn-icon.move-down {
  background: #f1f5f9;
  color: #64748b;
}

.feature-card-editor .btn-icon.move-up:hover,
.feature-card-editor .btn-icon.move-down:hover {
  background: #e2e8f0;
}

.feature-card-editor .form-group {
  margin-bottom: 14px;
}

.feature-card-editor .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-card-editor .form-group input,
.feature-card-editor .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.feature-card-editor .form-group input:focus,
.feature-card-editor .form-group textarea:focus {
  outline: none;
  border-color: #ff6b8a;
}

.feature-card-editor .form-group textarea {
  resize: vertical;
  min-height: 60px;
}

/* Icon Color Selector */
.icon-color-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.icon-color-option {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.icon-color-option:hover {
  transform: scale(1.1);
}

.icon-color-option.selected {
  border-color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.icon-color-option.pink { background: #fef2f2; }
.icon-color-option.purple { background: #faf5ff; }
.icon-color-option.green { background: #f0fdf4; }
.icon-color-option.orange { background: #fff7ed; }
.icon-color-option.blue { background: #eff6ff; }
.icon-color-option.yellow { background: #fefce8; }

/* Feature Card Preview */
.feature-card-preview {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  text-align: center;
}

.feature-card-preview .preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.feature-card-preview .preview-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.feature-card-preview .preview-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* ===== Screenshot Grid ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.screenshot-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
  position: relative;
}

.screenshot-card:hover {
  border-color: #ff6b8a;
}

.screenshot-thumb {
  width: 100%;
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-actions {
  padding: 12px;
}

.screenshot-actions input[type="file"] {
  font-size: 12px;
  margin-bottom: 8px;
  width: 100%;
}

.screenshot-actions input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.screenshot-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.screenshot-card:hover .screenshot-delete {
  opacity: 1;
}

/* ===== Table ===== */
.table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.admin-table th {
  background: #f8fafc;
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

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

.empty-state {
  text-align: center;
  color: #94a3b8;
  padding: 40px !important;
}

/* ===== Buttons ===== */
.btn-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #ff6b8a, #a855f7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

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

.btn-secondary {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-danger {
  padding: 6px 12px;
  background: #fef2f2;
  color: #ef4444;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #fee2e2;
}

.btn-link {
  color: #ff6b8a;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ===== Search Box ===== */
.search-box input {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  width: 260px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: #ff6b8a;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary {
  background: #fef2f2;
  color: #ff6b8a;
}

.badge-success {
  background: #ecfdf5;
  color: #16a34a;
}

.badge-warning {
  background: #fef3c7;
  color: #d97706;
}

/* ===== Modal ===== */
.modal-overlay {
  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;
}

.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.modal-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

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

/* ===== Bar Chart ===== */
.chart-container {
  padding: 8px 0;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  width: 100px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 28px;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 0.8s ease;
  min-width: 2px;
}

.bar-normal { background: linear-gradient(90deg, #94a3b8, #64748b); }
.bar-vip { background: linear-gradient(90deg, #ff6b8a, #a855f7); }
.bar-low { background: linear-gradient(90deg, #94a3b8, #64748b); }
.bar-mid { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.bar-high { background: linear-gradient(90deg, #34d399, #10b981); }
.bar-top { background: linear-gradient(90deg, #fbbf24, #f59e0b); }

.bar-value {
  width: 60px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

/* ===== Info Grid ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
}

.info-label {
  font-size: 13px;
  color: #64748b;
}

.info-value {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

/* ===== Feature Card (inline editor) ===== */
.feature-editor {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}

.feature-editor .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Nav Link Editor ===== */
.navlink-editor {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 8px;
}

.navlink-editor .form-group {
  margin-bottom: 0;
  flex: 1;
}

.navlink-editor .remove-btn {
  padding: 10px 14px;
  background: #fef2f2;
  color: #ef4444;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  flex-shrink: 0;
  height: 42px;
}

/* ===== Hint Text ===== */
.hint-text {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
}

/* ===== Recent User Item ===== */
.recent-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.recent-user-item:last-child {
  border-bottom: none;
}

.recent-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b8a, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.recent-user-info {
  flex: 1;
}

.recent-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.recent-user-date {
  font-size: 12px;
  color: #94a3b8;
}

/* ===== Log Item ===== */
.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.log-item:last-child {
  border-bottom: none;
}

.log-time {
  color: #94a3b8;
  font-size: 12px;
  flex-shrink: 0;
  width: 140px;
}

.log-action {
  color: #475569;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.log-badge {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 18px;
    gap: 12px;
  }
  .stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 20px;
  }
  .stat-value {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 60px;
  }
  .sidebar-title,
  .nav-item span:not(.nav-icon),
  .admin-info > div,
  .admin-role {
    display: none;
  }
  .admin-main {
    margin-left: 60px;
  }
  .admin-content {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .upload-row {
    flex-direction: column;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }

  /* 统计卡片移动端优化 */
  .stat-card {
    padding: 16px;
    flex-wrap: wrap;
  }
  .stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
  }
  .stat-value {
    font-size: 22px;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-trend {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }
  .stat-info {
    min-width: 0;
  }

  /* 快捷操作移动端 */
  .action-card {
    padding: 18px 12px;
  }
  .action-icon {
    font-size: 24px;
  }
  .action-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 12px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    border-radius: 12px;
  }
  .stat-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .stat-value {
    font-size: 20px;
  }
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .action-card {
    padding: 14px 10px;
  }
  .panel-card,
  .quick-actions {
    padding: 16px;
    border-radius: 12px;
  }
}
