* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; font-size: 14px; color: #333; background: #f5f6fa; }

/* Layout */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: #2c2c2c; color: #fff;
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0;
}
.sidebar-header {
  padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { font-size: 18px; color: #C9A96E; }
.sidebar-header small { font-size: 12px; color: #999; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-item {
  display: flex; align-items: center; padding: 14px 24px; color: #ccc;
  cursor: pointer; transition: 0.2s; font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.nav-item.active { background: rgba(201,169,110,0.15); color: #C9A96E; border-left-color: #C9A96E; }
.nav-icon { margin-right: 12px; font-size: 18px; width: 24px; text-align: center; }

.main-content { margin-left: 240px; flex: 1; }
.navbar {
  background: #fff; padding: 16px 30px; display: flex; justify-content: space-between;
  align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 10;
}
.navbar-title { font-size: 18px; font-weight: bold; }
.navbar-user { display: flex; align-items: center; gap: 12px; }
.btn-logout { color: #F44336; cursor: pointer; background: none; border: none; font-size: 13px; }
.page-content { padding: 30px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.stat-card .stat-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: bold; color: #333; }
.stat-card.pink { border-left: 4px solid #C9A96E; }
.stat-card.green { border-left: 4px solid #4CAF50; }
.stat-card.blue { border-left: 4px solid #2196F3; }
.stat-card.orange { border-left: 4px solid #FF9800; }

/* Table */
.card-box { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; }
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
}
.card-header h3 { font-size: 16px; }
.card-body { padding: 0; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
th { background: #fafafa; font-weight: 600; color: #666; }
tr:hover { background: #fafafa; }

/* Buttons */
.btn { display: inline-block; padding: 8px 20px; border-radius: 6px; font-size: 13px; cursor: pointer; border: none; transition: 0.2s; }
.btn-primary { background: #C9A96E; color: #fff; }
.btn-primary:hover { background: #A0845C; }
.btn-success { background: #4CAF50; color: #fff; }
.btn-danger { background: #F44336; color: #fff; }
.btn-warning { background: #FF9800; color: #fff; }
.btn-default { background: #f0f0f0; color: #666; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 100; justify-content: center; align-items: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px; width: 560px; max-height: 80vh;
  overflow-y: auto; padding: 30px;
}
.modal-box h3 { margin-bottom: 20px; font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 8px 12px; border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 13px; box-sizing: border-box;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #C9A96E; outline: none; }

/* Badge/Status */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.badge-success { background: #E8F5E9; color: #4CAF50; }
.badge-warning { background: #FFF8E1; color: #FF8F00; }
.badge-danger { background: #FFEBEE; color: #F44336; }
.badge-info { background: #E3F2FD; color: #2196F3; }
.badge-pink { background: #F5F0E8; color: #C9A96E; }

/* Filters bar */
.filters { display: flex; gap: 12px; padding: 16px 24px; align-items: center; flex-wrap: wrap; }
.filters input, .filters select { padding: 6px 12px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; }

/* Chart placeholder */
.chart-box { padding: 24px; }
.chart-placeholder { width: 100%; height: 300px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 20px; }
.pagination button {
  padding: 6px 14px; border: 1px solid #e0e0e0; border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 13px;
}
.pagination button.active { background: #C9A96E; color: #fff; border-color: #C9A96E; }
.pagination button:disabled { opacity: 0.5; cursor: default; }
