/* ========================================
   Auth & Profile & Admin CSS
   Matches GlobalPriceList design system
======================================== */

/* Auth Main Container */
.auth-main {
  min-height: calc(100vh - 64px - 96px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-alt);
}

.auth-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Auth Card */
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-card.profile-card {
  max-width: 560px;
}

.auth-container:has(.profile-card) {
  max-width: 560px;
}

/* Auth Header */
.auth-header {
  text-align: center;
  padding: 32px 32px 24px;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.auth-header p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
}

/* Alerts */
.alert {
  padding: 14px 20px;
  margin: 0 24px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Google Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 48px);
  margin: 0 24px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-google:hover {
  background: var(--bg-alt);
  border-color: #c5c5c5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  color: var(--text);
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px;
  gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Auth Form */
.auth-form {
  padding: 0 24px 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  font-family: inherit;
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 133, 0.12);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.input-disabled {
  background: var(--bg-alt) !important;
  color: var(--text-light) !important;
  cursor: not-allowed;
}

.form-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #dc2626;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-link {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.form-link:hover {
  color: var(--primary-dark);
}

/* Auth Button */
.btn-auth,
a.btn-auth {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn-auth:hover,
a.btn-auth:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 94, 133, 0.3);
  color: #ffffff !important;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-light);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

/* Verify Icons */
.verify-icon {
  margin-bottom: 16px;
}

.verify-icon.success {
  color: #16a34a;
}

.verify-icon.error {
  color: #dc2626;
}

/* ========================================
   Profile
======================================== */
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-section {
  padding: 24px;
  border-top: 1px solid var(--border);
}

.profile-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin-bottom: 20px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.profile-info {
  margin-top: 16px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-light);
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-active { background: #ecfdf5; color: #065f46; }
.badge-pending { background: #fffbeb; color: #92400e; }
.badge-blocked { background: #fef2f2; color: #991b1b; }
.badge-admin { background: #eff6ff; color: #1e40af; }
.badge-user { background: var(--bg-alt); color: var(--text-light); }
.badge-google { background: #fce7f3; color: #9d174d; font-size: 0.65rem; padding: 2px 6px; margin-left: 6px; }

/* ========================================
   Admin Panel
======================================== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.admin-count {
  font-size: 0.9rem;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 12px;
}

.back-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
}

.back-link:hover {
  color: var(--primary-dark);
}

/* Admin Filters */
.admin-filters {
  margin-bottom: 24px;
}

.filter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 133, 0.12);
}

.filter-select {
  padding: 10px 16px;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.btn-filter {
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-filter:hover {
  background: var(--primary-dark);
}

.btn-clear {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
}

.btn-clear:hover {
  color: var(--text);
}

/* Admin Table */
.admin-table-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
}

.admin-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.admin-table tbody tr:hover {
  background: #e8f4fc;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.btn-sm {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-sm:hover {
  background: var(--primary);
  color: white;
}

/* Detail Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--text);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-action {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-action.btn-primary { background: var(--primary); color: white; }
.btn-action.btn-primary:hover { background: var(--primary-dark); }
.btn-action.btn-success { background: #16a34a; color: white; }
.btn-action.btn-success:hover { background: #15803d; }
.btn-action.btn-warning { background: #f59e0b; color: white; }
.btn-action.btn-warning:hover { background: #d97706; }
.btn-action.btn-danger { background: #dc2626; color: white; }
.btn-action.btn-danger:hover { background: #b91c1c; }
.btn-action.btn-outline-sm { background: var(--bg); color: var(--text-light); border: 1px solid var(--border); }
.btn-action.btn-outline-sm:hover { background: var(--bg-alt); border-color: var(--text-light); }

/* Login Prompt (for products page) */
.login-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.login-prompt {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.login-prompt h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.login-prompt p {
  color: var(--text-light);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.login-prompt .prompt-buttons {
  display: flex;
  gap: 12px;
}

.login-prompt .btn-prompt-login {
  flex: 1;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  text-align: center;
}

.login-prompt .btn-prompt-login:hover {
  background: var(--primary-dark);
  color: white;
}

.login-prompt .btn-prompt-close {
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.login-prompt .btn-prompt-close:hover {
  background: var(--bg-alt);
}

/* Price History Lock Icon */
.btn-history-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-history-locked:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ========================================
   Admin Sidebar Layout
======================================== */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  width: 240px;
  min-height: calc(100vh - 64px);
  background: #0f2b3c;
  color: #c5d8e3;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #9bb8ca;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.sidebar-link.active {
  background: rgba(27, 94, 133, 0.25);
  color: #ffffff;
  border-left-color: var(--accent, #F08C28);
}

.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: auto;
}

/* Admin Content Area */
.admin-content {
  flex: 1;
  min-width: 0;
  padding: 32px;
  background: var(--bg-alt);
}

.admin-content-header {
  margin-bottom: 28px;
}

.admin-content-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.admin-content-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 12px;
}

.admin-content-header .back-link:hover {
  color: var(--primary-dark);
}

.admin-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-left: 12px;
}

/* ========================================
   Dashboard Stats
======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-total .stat-icon { background: #eff6ff; color: #2563eb; }
.stat-active .stat-icon { background: #ecfdf5; color: #16a34a; }
.stat-pending .stat-icon { background: #fffbeb; color: #d97706; }
.stat-blocked .stat-icon { background: #fef2f2; color: #dc2626; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Secondary Stats */
.stats-secondary {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card-sm {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-sm-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-sm-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 6px;
}

/* ========================================
   Dashboard Grid (Chart + Recent)
======================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.dash-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dash-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

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

.dash-card-header h3 {
  margin: 0;
}

.dash-view-all {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.dash-view-all:hover {
  color: var(--primary-dark);
}

/* Bar Chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding-top: 20px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-fill {
  width: 100%;
  max-width: 48px;
  background: linear-gradient(180deg, var(--primary) 0%, #2980b9 100%);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
  position: relative;
  transition: height 0.3s ease;
}

.bar-fill:hover {
  background: linear-gradient(180deg, var(--accent, #F08C28) 0%, #e67e22 100%);
}

.bar-value {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.bar-label {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Recent Users List */
.recent-list {
  display: flex;
  flex-direction: column;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s ease;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}

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

.recent-item:hover {
  background: #f0f7fb;
}

.recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

.recent-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-email {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.recent-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all 0.15s ease;
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
  .auth-main {
    padding: 24px 16px;
  }

  .auth-header {
    padding: 24px 20px 20px;
  }

  .auth-header h1 {
    font-size: 1.25rem;
  }

  .auth-form {
    padding: 0 20px 20px;
  }

  .auth-divider {
    margin: 20px;
  }

  .btn-google {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .alert {
    margin: 0 20px 12px;
  }

  .admin-container {
    padding: 0 16px;
  }

  .admin-header h1 {
    font-size: 1.25rem;
  }

  .filter-form {
    flex-direction: column;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3),
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6),
  .admin-table th:nth-child(7),
  .admin-table td:nth-child(7) {
    display: none;
  }
}

/* Sidebar responsive */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
    height: auto;
    position: relative;
    top: 0;
    flex-direction: row;
    align-items: center;
    padding: 0;
  }

  .sidebar-brand {
    padding: 12px 16px;
    border-bottom: none;
    border-right: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-nav {
    display: flex;
    padding: 0;
    gap: 0;
    overflow-x: auto;
  }

  .sidebar-link {
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: 0.8rem;
  }

  .sidebar-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent, #F08C28);
  }

  .sidebar-link svg {
    display: none;
  }

  .sidebar-footer {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    margin-top: 0;
  }

  .sidebar-footer .sidebar-link {
    padding: 12px 16px;
  }

  .admin-content {
    padding: 20px 16px;
  }

  .admin-content-header h1 {
    font-size: 1.3rem;
  }

  .stats-grid,
  .stats-secondary {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .chart-bars {
    height: 160px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
    gap: 10px;
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat-icon svg {
    width: 18px;
    height: 18px;
  }
}
