@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 40% 98%;
  --primary-foreground: 222.2 84% 4.9%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 212.7 26.8% 83.9%;
  --radius: 0.5rem;

  /* Custom colors */
  --mod-primary: 217 91% 60%;
  --mod-secondary: 217 32.6% 17.5%;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --error: 0 72% 51%;
  
  /* Typography */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  font-size: 16px; 
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Keyframes used in this file */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  50% { opacity: .5; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%      { transform: none;            animation-timing-function: cubic-bezier(0,0,0.2,1); }
}

/* Layout: ensure flex/grid containers actually display correctly */
.page-header,
.stat-content,
.stat-trend,
.chart-header,
.user-actions,
.creator-actions,
.filter-row,
.search-bar,
.profile-header,
.profile-actions { display: flex; }

.stats-grid,
.stats-grid-secondary,
.charts-section,
.creator-stats,
.summary-grid,
.users-list,
.user-stats,
.profile-grid,
.profile-posts { display: grid; }

/* Reasonable sizes for icons used inside stat cards and headers */
.stat-icon svg { width: 40px; height: 40px; }
.header svg { width: 20px; height: 20px; }

/* Sidebar + main content desktop behavior - PERMANENT SIDEBAR */
/* Override styles.css sidebar rules - must be more specific */
.dashboard-layout .sidebar,
aside.sidebar,
#sidebar.sidebar,
.sidebar {
  width: 260px !important;
  max-width: 260px !important;
  min-width: 260px !important;
  background: hsl(var(--card)) !important;
  border-right: 1px solid hsl(var(--border)) !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  transform: none !important; /* Always visible - force override */
  display: flex !important;
  flex-direction: column !important;
  z-index: 30 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  left: 0 !important; /* Start at left edge */
  margin: 0 !important; /* No margin */
  padding: 0 !important; /* No padding on container */
  flex-shrink: 0 !important; /* Don't shrink */
  box-sizing: border-box !important;
}

/* Hide sidebar toggle button - sidebar is always visible */
.sidebar-trigger { display: none !important; }

/* Mobile: sidebar remains visible and permanent */
@media (max-width: 1023px) {
  .sidebar {
    position: sticky !important;
    left: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    transform: none !important; /* Always visible - force override */
    display: flex !important;
    flex-direction: column;
  }
  
  /* No margin needed on mobile either - flexbox handles it */
  .main-content {
    margin: 0 !important;
  }
}

/* Responsive grids for the overview */
@media (min-width: 768px) {
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
  }
  .stats-grid-secondary { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
  }
  .charts-section { 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem;
  }
  .page-header { 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between;
  }
  .page-actions { 
    width: auto; 
    justify-content: flex-end; 
  }
}

@media (min-width: 1024px) {
  .stats-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
  }
  .stats-grid-secondary { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
  }
}

.min-h-screen { min-height: 100vh; }

.flex { display: flex; }

.items-center { align-items: center; }

.justify-center { justify-content: center; }

.justify-between { justify-content: space-between; }

.w-full { width: 100%; }

.max-w-md { max-width: 28rem; }

.p-4 { padding: 1rem; }

.p-6 { padding: 1.5rem; }

.text-center { text-align: center; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.font-bold { font-weight: 700; }

.bg-background { background-color: hsl(var(--background)); }

.card { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: calc(var(--radius) + 2px); 
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 
    0 1px 2px 0 rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.card:hover {
  border-color: hsl(var(--border) / 0.8);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.card-header { 
  padding: 1.75rem 1.75rem 0; 
}

.card-title { 
  color: hsl(var(--card-foreground)); 
  font-weight: 600; 
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3; 
  letter-spacing: -0.02em; 
  margin-bottom: 0.5rem;
}

.card-description { 
  color: hsl(var(--muted-foreground)); 
  font-size: 0.9375rem; 
  line-height: 1.6; 
}

.card-content { 
  padding: 1.75rem; 
}

.card-footer { display: flex; align-items: center; padding: 0 1.5rem 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  outline: none;
  padding: 0.5rem 1rem;
  min-height: 2.5rem;
  gap: 0.375rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-destructive,
.btn-danger {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-color: hsl(var(--destructive));
}

.btn-outline {
  border-color: hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-success {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.9);
}

.btn-danger:hover,
.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.btn-outline:hover {
  background-color: hsl(var(--muted));
}

.btn-success:hover {
  background: #059669;
}

.label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); display: block; }

.input-container { position: relative; }

.input { display: flex; height: 2.5rem; width: 100%; border-radius: calc(var(--radius) - 2px); border: 1px solid hsl(var(--border)); background-color: hsl(var(--background)); padding: 0.5rem 0.75rem; font-size: 0.875rem; color: hsl(var(--foreground)); transition: border-color 0.2s; }

.input-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); pointer-events: none; }

.password-toggle { position: absolute; right: 0; top: 0; height: 100%; padding: 0 0.75rem; background: transparent; border: none; cursor: pointer; color: hsl(var(--muted-foreground)); display: flex; align-items: center; justify-content: center; }

.pl-10 { padding-left: 2.5rem; }

.pr-10 { padding-right: 2.5rem; }

.notice-container { margin-top: 1rem; }

.notice { background-color: hsl(var(--muted) / 0.5); border: 1px solid hsl(var(--muted)); border-radius: var(--radius); padding: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }

.notice-icon { width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); flex-shrink: 0; margin-top: 0.125rem; }

.notice-title { font-weight: 500; font-size: 0.75rem; color: hsl(var(--foreground)); }

.notice-text { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.loading-spinner { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: hsl(var(--background) / 0.8); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); z-index: 10; }

.spinner { width: 3rem; height: 3rem; border: 2px solid hsl(var(--border)); border-top: 2px solid hsl(var(--primary)); border-radius: 50%; animation: spin 1s linear infinite; }

.error-message { margin-top: 1rem; padding: 0.75rem; background-color: hsl(var(--destructive) / 0.1); border: 1px solid hsl(var(--destructive) / 0.3); border-radius: var(--radius); color: hsl(var(--destructive)); font-size: 0.875rem; text-align: center; }

.access-denied { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: hsl(var(--background)); display: flex; align-items: center; justify-content: center; padding: 1rem; }

.access-denied-content { max-width: 28rem; width: 100%; text-align: center; }

.access-denied-icon { width: 4rem; height: 4rem; color: hsl(var(--destructive)); margin: 0 auto 1rem; }

.access-denied-title { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); margin-bottom: 1rem; }

.access-denied-text { color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }

.access-denied-subtext { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

/* Login Page Specific Styles */
.login-page {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.login-page .min-h-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  box-sizing: border-box;
}

.login-page .card {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-page .card-header {
  padding: 2rem 1.5rem 0;
  text-align: center;
}

.login-page .card-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.login-page .card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}

.login-page .card-content {
  padding: 1.5rem;
}

.login-page .space-y-4 > * + * {
  margin-top: 1.5rem;
}

.login-page .space-y-2 > * + * {
  margin-top: 0.75rem;
}

.login-page .label {
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.login-page .input-container {
  position: relative;
  width: 100%;
}

.login-page .input {
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.login-page .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  z-index: 1;
}

.login-page .password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.login-page .notice-container {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.login-page .notice {
  padding: 1rem;
  gap: 0.75rem;
  align-items: flex-start;
}

.login-page .notice-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.login-page .notice-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.login-page .notice-text {
  font-size: 0.875rem;
  line-height: 1.4;
}

.login-page .card-footer {
  padding: 0 1.5rem 1.5rem;
  margin-top: 1.5rem;
}

.login-page .btn-primary {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 2.75rem;
}

.login-page .error-message {
  margin-top: 1rem;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Ensure login page is responsive */
@media (max-width: 640px) {
  .login-page .card {
    max-width: 100%;
    margin: 0;
  }
  
  .login-page .min-h-screen {
    padding: 0.5rem;
  }
  
  .login-page .card-header {
    padding: 1.5rem 1rem 0;
  }
  
  .login-page .card-content {
    padding: 1rem;
  }
  
  .login-page .card-footer {
    padding: 0 1rem 1rem;
  }
}

.dashboard-layout { 
  display: flex; 
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background-color: hsl(var(--background)); 
  gap: 0; /* No gap between sidebar and main content - margin handles spacing */
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar is now visible by default - removed translateX(-100%) to keep it permanent */
/* Ensure sidebar-hidden class doesn't hide the sidebar */
.sidebar-hidden,
.sidebar.sidebar-hidden,
#sidebar.sidebar-hidden {
  transform: none !important; /* Override - sidebar is always visible */
}

.sidebar-header,
.sidebar .sidebar-header,
#sidebar .sidebar-header,
aside.sidebar .sidebar-header { 
  padding: 1.5rem 1rem !important; 
  border-bottom: 1px solid hsl(var(--border)); 
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--secondary)) 100%);
  min-height: 72px;
  max-height: 72px;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.sidebar-logo,
.sidebar .sidebar-logo,
#sidebar .sidebar-logo,
aside.sidebar .sidebar-logo { 
  display: flex !important; 
  align-items: center !important; 
  gap: 0.75rem !important; 
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex-wrap: nowrap !important;
}

.sidebar-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

/* Force logo image to be exactly 36px - highest specificity */
.sidebar-logo img,
.sidebar .sidebar-logo img,
#sidebar .sidebar-logo img,
aside.sidebar .sidebar-logo img,
.sidebar-header img,
.sidebar-header .sidebar-logo img,
.dashboard-layout .sidebar .sidebar-logo img,
.dashboard-layout #sidebar .sidebar-logo img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  /* Prevent any scaling */
  transform: none !important;
  scale: 1 !important;
  /* Force dimensions */
  aspect-ratio: 1 / 1 !important;
}

.sidebar-logo span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
}

.sidebar-logo span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-content { 
  flex: 1; 
  padding: 1.25rem 0; 
  overflow-y: auto; 
  overflow-x: hidden;
}

.sidebar-group { 
  margin-bottom: 2rem; 
}

.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-group-label { padding: 0 1rem; font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }

.sidebar-menu { list-style: none; }

.sidebar-menu-item { margin: 0.125rem 0.5rem; }

.sidebar-menu-button { 
  display: flex; 
  align-items: center; 
  width: 100%; 
  padding: 0.625rem 0.875rem; 
  border-radius: calc(var(--radius) + 2px); 
  font-size: 0.875rem; 
  font-weight: 500; 
  color: hsl(var(--muted-foreground)); 
  text-decoration: none; 
  transition: all 0.2s ease; 
  border: none; 
  background: transparent; 
  cursor: pointer; 
  gap: 0.75rem;
}

.sidebar-menu-button:hover {
  background-color: hsl(var(--accent) / 0.3);
  color: hsl(var(--foreground));
}

.sidebar-menu-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-menu-button.active { 
  background-color: hsl(var(--primary)); 
  color: hsl(var(--primary-foreground)); 
  font-weight: 600;
}

.sidebar-menu-button.active:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.sidebar-footer { 
  padding: 1.25rem 1rem; 
  border-top: 1px solid hsl(var(--border)); 
  margin-top: auto;
}

/* main-content margin-left is now set in the sidebar section above - removed conflicting rule */

.header { 
  height: 4rem; 
  background-color: hsl(var(--background)); 
  border-bottom: 1px solid hsl(var(--border)); 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 0 1.5rem; 
  position: sticky; 
  top: 0; 
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.header-left { display: flex; align-items: center; gap: 1rem; }

/* Sidebar trigger is hidden - sidebar is permanent */
.sidebar-trigger { display: none !important; }

.header-title { 
  font-size: 1.25rem; 
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.header-right { display: flex; align-items: center; gap: 1rem; }

.search-container { display: none; }

.search-input { 
  width: 100%; 
  height: 2.5rem; 
  padding: 0.625rem 0.875rem 0.625rem 2.5rem; 
  border: 1px solid hsl(var(--border)); 
  border-radius: calc(var(--radius) - 2px); 
  background-color: hsl(var(--input)); 
  color: hsl(var(--foreground)); 
  font-size: 0.875rem; 
  font-weight: 500;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: hsl(var(--mod-primary));
  box-shadow: 0 0 0 3px hsla(var(--mod-primary), 0.1);
  background-color: hsl(var(--accent));
}

.search-input::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
}

.search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; color: hsl(var(--muted-foreground)); }

.notification-btn { position: relative; background: transparent; border: none; color: hsl(var(--foreground)); cursor: pointer; padding: 0.5rem; border-radius: calc(var(--radius) - 2px); }

.notification-badge { position: absolute; top: 0.25rem; right: 0.25rem; width: 1rem; height: 1rem; background-color: hsl(var(--destructive)); color: white; border-radius: 50%; font-size: 0.625rem; font-weight: 500; display: flex; align-items: center; justify-content: center; }

.user-menu { background: transparent; border: none; cursor: pointer; border-radius: 50%; }

.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; background-color: hsl(var(--mod-primary)); display: flex; align-items: center; justify-content: center; }

.content { 
  flex: 1; 
  overflow-y: auto; 
  background-color: hsl(var(--background)); 
  width: 100%;
  box-sizing: border-box;
}

/* For reports page, prevent page scrolling */
.content:has(.reports-content) {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
}

/* Sidebar is always visible - no need for .show class */
.show { transform: translateX(0) !important; }
.sidebar.show { transform: none !important; }

.loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: hsl(var(--background)); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; }

.dashboard { display: flex; min-height: 100vh; }

.sidebar-nav { padding: 1rem 0; }

.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.5rem; color: hsl(var(--muted-foreground)); text-decoration: none; transition: all 0.2s; border: none; background: none; width: 100%; text-align: left; font-size: 0.875rem; }

.dashboard-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background)); }

.user-dropdown { right: -1rem; min-width: 12rem; }

.user-button { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); cursor: pointer; transition: background-color 0.2s; }

.dropdown-content { display: block; }

.content-wrapper { 
  flex: 1; 
  padding: 1.5rem; 
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Standardize all content wrapper variations to have consistent spacing */
.dashboard-content,
.users-content,
.brands-content,
.reports-content,
.content-wrapper {
  flex: 1; 
  padding: 2rem; 
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: 0;
}

/* For reports page specifically - prevent page scrolling */
.reports-content {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .dashboard-content,
  .users-content,
  .brands-content,
  .reports-content,
  .content-wrapper {
    padding: 1.25rem;
  }
}

/* Ensure settings page content has proper spacing */
main.content > .page-header:first-child {
  padding: 0 1.5rem;
  margin-top: 1.5rem;
}

/* Ensure settings-container has proper padding */
.settings-container {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* Standardized spacing for consistent layout */
/* Since parent uses flexbox, we don't need margin-left - sidebar width handles spacing */
.main-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  flex: 1 !important; /* Take remaining space after sidebar */
  width: auto !important; /* Let flexbox handle width */
  box-sizing: border-box;
  padding: 0 !important; /* Remove any padding that might create extra space */
  margin: 0 !important; /* No margin needed - flexbox handles spacing */
}

.dashboard-content { max-width: 100%; width: 100%; }

.dashboard-main {
  display: block;
  width: 100%;
  max-width: 100%;
}

.dashboard-main > * + * {
  margin-top: 2rem;
}

.page-header { 
  flex-direction: column; 
  align-items: flex-start; 
  gap: 1.25rem; 
  margin-bottom: 2rem;
  padding: 0;
}

.page-title { 
  font-size: 1.75rem; 
  font-family: var(--font-display);
  font-weight: 500; 
  letter-spacing: -0.02em;
  color: hsl(var(--foreground)); 
  margin: 0; 
  line-height: 1.2;
}

.page-actions { 
  width: 100%; 
  justify-content: flex-start; 
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 25rem; gap: 1rem; flex-shrink: 0; }

.loading-text { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.error-container { display: flex; align-items: center; justify-content: center; min-height: 25rem; padding: 1rem; }

.error-content { text-align: center; max-width: 28rem; }

.error-icon { width: 3rem; height: 3rem; color: hsl(var(--destructive)); margin: 0 auto 1rem; }

.error-title { font-size: 1.25rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }

.stats-grid { 
  grid-template-columns: 1fr; 
  gap: 1.25rem; 
  margin-bottom: 2rem;
}

.stats-grid-secondary { 
  grid-template-columns: 1fr; 
  gap: 1.25rem; 
  margin-bottom: 2rem;
}

.stat-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  padding: 1.75rem;
  box-shadow: 
    0 1px 3px 0 rgba(0, 0, 0, 0.1), 
    0 1px 2px 0 rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: hsl(var(--border) / 0.8);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.stat-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.stat-info { flex: 1; }

.stat-label { 
  font-size: 0.75rem; 
  color: hsl(var(--muted-foreground)); 
  text-transform: uppercase; 
  letter-spacing: 0.05em;
  display: block; 
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.stat-value { 
  font-size: 2rem; 
  font-weight: 700; 
  font-family: var(--font-display);
  color: hsl(var(--foreground)); 
  margin: 0; 
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.status-operational { color: hsl(var(--success)); }

.stat-icon {
  align-self: flex-start;
  width: 56px;
  height: 56px;
  border-radius: calc(var(--radius) + 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.05);
}

.stat-icon-blue { background-color: hsl(217 91% 60% / 0.1); color: hsl(217 91% 60%); }

.stat-icon-green { background-color: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); }

.stat-icon-yellow { background-color: hsl(38 92% 50% / 0.1); color: hsl(38 92% 50%); }

.stat-icon-red { background-color: hsl(0 72% 51% / 0.1); color: hsl(0 72% 51%); }

.stat-icon-purple { background-color: hsl(262 83% 58% / 0.1); color: hsl(262 83% 58%); }

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
  font-size: 0.8125rem;
}

.stat-trend svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.stat-trend-up { color: hsl(142 76% 36%); }

.stat-trend-down { color: hsl(0 72% 51%); }

.stat-trend-warning { color: hsl(0 72% 51%); }

.stat-trend-neutral { color: hsl(262 83% 58%); }

.trend-value {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-period {
  color: hsl(var(--muted-foreground));
  font-size: 0.75rem;
}

.charts-section { 
  grid-template-columns: 1fr; 
  gap: 1rem; 
  margin-bottom: 1.5rem; /* Consistent spacing below charts */
}

.chart-card { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); 
  width: 100%;
  box-sizing: border-box;
}

.chart-header { padding: 1.5rem 1.5rem 0; }

.chart-title { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin: 0 0 0.25rem 0; }

.chart-description { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0; }

.chart-placeholder { height: 15rem; padding: 1rem; }

.user-menu-container { position: relative; }

.user-info { padding: 0.5rem 1rem; }

.user-email { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.25rem; }

.user-role { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }

.role-badge { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); padding: 0.125rem 0.5rem; border-radius: calc(var(--radius) - 2px); font-size: 0.75rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.25rem; }

.auth-badge { border: 1px solid hsl(var(--border)); background-color: transparent; color: hsl(var(--foreground)); padding: 0.125rem 0.5rem; border-radius: calc(var(--radius) - 2px); font-size: 0.75rem; font-weight: 500; }

.dropdown-divider { height: 1px; background-color: hsl(var(--border)); margin: 0.5rem 0; }

.dropdown-item { display: flex; align-items: center; width: 100%; padding: 0.5rem 1rem; font-size: 0.875rem; color: hsl(var(--foreground)); background: transparent; border: none; cursor: pointer; transition: background-color 0.2s; text-align: left; }

.logout-btn { color: hsl(var(--destructive)); }

.btn-sm {
  padding: 0.375rem 0.75rem;
  min-height: 2.125rem;
  font-size: 0.75rem;
}

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; min-height: 3rem; }

.hidden { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.relative { position: relative; }

.absolute { position: absolute; }

.fixed { position: fixed; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }

.z-50 { z-index: 50; }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.animate-bounce { animation: bounce 1s infinite; }

.onboarding-card { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: var(--radius); 
  padding: 1.5rem; /* Standardized to 1.5rem (24px) */
  margin-bottom: 1rem; /* Consistent spacing between cards */
  border-left: 4px solid hsl(var(--mod-primary)); 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); 
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Apply user-card styling to creator cards and onboarding cards */
.creator-card,
.onboarding-card {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
}

.creator-card:hover,
.onboarding-card:hover {
  border-color: hsl(var(--ring));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.priority-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }

.priority-urgent { background: rgba(220, 38, 38, 0.2); color: #ef4444; border: 1px solid rgba(220, 38, 38, 0.3); }

.priority-high { background: rgba(217, 119, 6, 0.2); color: #f59e0b; border: 1px solid rgba(217, 119, 6, 0.3); }

.priority-normal { background: rgba(2, 132, 199, 0.2); color: #3b82f6; border: 1px solid rgba(2, 132, 199, 0.3); }

.action-buttons { 
  display: flex;
  flex-direction: column; 
  gap: 10px;
  margin-top: 16px;
}

.btn-approve { 
  background: #10b981; 
  color: white; 
  border: none; 
  padding: 10px 16px; 
  border-radius: calc(var(--radius) - 2px); 
  cursor: pointer; 
  font-weight: 500; 
  transition: all 0.2s; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 6px; 
  width: 100%;
}

.btn-approve:hover {
  background: #059669;
}

.btn-reject { 
  background: #ef4444; 
  color: white; 
  border: none; 
  padding: 10px 16px; 
  border-radius: calc(var(--radius) - 2px); 
  cursor: pointer; 
  font-weight: 500; 
  transition: all 0.2s; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 6px; 
  width: 100%;
}

.btn-reject:hover {
  background: #dc2626;
}

.btn-review { 
  background: #6366f1; 
  color: white; 
  border: none; 
  padding: 10px 16px; 
  border-radius: calc(var(--radius) - 2px); 
  cursor: pointer; 
  font-weight: 500; 
  transition: all 0.2s; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 6px; 
  width: 100%;
}

.btn-review:hover {
  background: #4f46e5;
}

.progress-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }

.step-circle { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

.step-completed { background: #10b981; color: white; }

.step-current { background: #6366f1; color: white; }

.step-pending { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.creator-profile { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }

.creator-avatar { width: 60px; height: 60px; border-radius: 50%; background-color: hsl(var(--muted)); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }

.creator-avatar-large { width: 80px; height: 80px; border-radius: 50%; background-color: hsl(var(--muted)); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }

.creator-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f3f4f6; }

.creator-stats { grid-template-columns: repeat(2, 1fr); }

.stat-item { text-align: center; }

.stat-number { font-size: 20px; font-weight: 700; color: hsl(var(--foreground)); display: block; }

.guidelines-box { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--warning) / 0.3); 
  border-radius: 8px; 
  padding: 20px; 
  margin: 24px 0; 
}

.guidelines-box h4 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 16px 0;
}

.guidelines-box ul {
  margin: 12px 0;
  padding-left: 24px;
}

.guidelines-box li {
  margin: 8px 0;
  color: hsl(var(--foreground));
  line-height: 1.6;
}

.guidelines-box p {
  margin: 12px 0 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

.quick-filters { 
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  justify-content: flex-start;
}

.filter-btn { 
  padding: 10px 20px; 
  border: 1px solid hsl(var(--border)); 
  background: hsl(var(--card)); 
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px); 
  cursor: pointer; 
  transition: all 0.2s; 
  font-size: 0.875rem; 
  font-weight: 500;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
}

.filter-btn:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--primary));
}

.filter-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.application-summary { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: 8px; 
  padding: 16px 20px; 
  margin-bottom: 24px; 
}

.application-summary h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 12px 0;
}

.summary-grid { 
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 12px;
}

.summary-item { 
  text-align: center; 
  padding: 12px 8px; 
  background-color: hsl(var(--muted) / 0.3); 
  border-radius: 6px; 
  border: 1px solid hsl(var(--border));
}

.summary-item .stat-number {
  font-size: 20px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
  line-height: 1.2;
}

.summary-item .stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: none;
  margin-top: 0;
  line-height: 1.3;
}

/* Responsive: stack to 2 columns on smaller screens */
@media (max-width: 1024px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    min-width: 100%;
    flex: 1;
  }
  
  .filter-group:first-child {
    min-width: 100%;
    flex: 1;
  }
  
  .reports-container-scrollable {
    max-height: calc(100vh - 400px);
    min-height: 300px;
  }
}

.creator-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.applications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.creator-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.creator-badges { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }

.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }

.badge-verified { background: #dcfce7; color: #166534; }

.badge-tier { background: #fef3c7; color: #92400e; }

.badge-active { background: #dbeafe; color: #1e40af; }

.badge-inactive { background: #f3f4f6; color: #6b7280; }

.creator-actions { flex-direction: column; }

.btn-success { background: #10b981; color: white; }

.filters-section { 
  display: flex;
  align-items: stretch;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
  flex-shrink: 0;
}

.filter-row { 
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  flex-wrap: wrap;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group { 
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 150px;
}

.filter-group:first-child {
  flex: 2;
  min-width: 250px;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.filter-group .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-group .search-wrapper i {
  position: absolute;
  left: 0.75rem;
  color: hsl(var(--muted-foreground));
  z-index: 1;
  pointer-events: none;
}

.filter-select { 
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.filter-select:hover {
  border-color: hsl(var(--ring));
  background-color: hsl(var(--accent));
}

.filter-select:focus {
  outline: none;
  border-color: hsl(var(--mod-primary));
  box-shadow: 0 0 0 3px hsla(var(--mod-primary), 0.1);
}

.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

.summary-card { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  padding: 1.25rem; 
  border-radius: var(--radius); 
  box-shadow: 0 1px 3px rgba(0,0,0,0.15); 
  text-align: center; 
  display: flex; 
  flex-direction: column; 
  gap: 0.25rem;
}

.summary-number { font-size: 1.75rem; font-weight: 700; color: hsl(var(--foreground)); }

.summary-label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* Creator quick actions + tags */
.quick-actions-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.875rem 1.25rem;
}

.quick-actions-label {
  font-weight: 500;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
}

.user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.tag-success {
  background: hsl(142 76% 36% / 0.12);
  color: hsl(142 76% 36%);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.creator-metrics {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.creator-metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.creator-metric-label {
  color: hsl(var(--muted-foreground));
}

.creator-metric-value {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.creator-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

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

.modal-content { 
  width: 95%; 
  max-width: 900px;
  max-height: 90vh;
  padding: 24px; 
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow-y: auto;
  margin: auto;
  position: relative;
}

.modal-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 24px; 
  padding-bottom: 16px;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
}

.modal-close { 
  background: transparent; 
  border: none; 
  cursor: pointer; 
  color: hsl(var(--muted-foreground)); 
  padding: 8px; 
  width: 32px; 
  height: 32px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  transition: all 0.2s;
}

.modal-close:hover {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.btn-close { 
  background: none; 
  border: none; 
  font-size: 24px; 
  cursor: pointer; 
  color: #6b7280; 
  padding: 0; 
  width: 32px; 
  height: 32px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.performance-chart { background: #f9fafb; padding: 16px; border-radius: 8px; margin: 16px 0; text-align: center; }

.empty-state { text-align: center; padding: 40px 20px; color: hsl(var(--muted-foreground)); }

.user-bio { background-color: hsl(var(--muted)); padding: 12px; border-radius: 6px; margin: 12px 0; }

.creator-name { color: hsl(var(--foreground)) !important; }

.creator-category { color: hsl(var(--muted-foreground)) !important; }

.reports-content { 
  max-width: 100%; 
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
}

.page-title-section { flex: 1; }

.page-description { color: hsl(var(--muted-foreground)); font-size: 0.875rem; margin: 0.25rem 0 0 0; }

/* Legacy filter styles - kept for backward compatibility but not used in new design */
.filter-left { 
  flex: 1;
  max-width: none;
  min-width: 0;
}

.filter-right { 
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.search-container-local { position: relative; width: 100%; }

.sort-btn { white-space: nowrap; }

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.625rem 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background-color: hsl(var(--input));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.filter-btn:hover {
  border-color: hsl(var(--ring));
  background-color: hsl(var(--accent));
}

.filter-btn:focus {
  outline: none;
  border-color: hsl(var(--mod-primary));
  box-shadow: 0 0 0 3px hsla(var(--mod-primary), 0.1);
}

.tabs-container { 
  background-color: hsl(var(--card)); 
  border: 1px solid hsl(var(--border)); 
  border-radius: var(--radius); 
  overflow: hidden; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
}

.tabs-list { 
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.3);
  padding: 0;
  flex-shrink: 0;
}

.tab-button { 
  flex: 1;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.tab-button:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.tab-button.active {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-bottom-color: hsl(var(--primary));
}

.status-tabs { 
  display: flex;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  flex-wrap: wrap;
  flex-shrink: 0;
}

.status-tab { 
  padding: 0.625rem 1.25rem; 
  background: transparent; 
  border: 1px solid hsl(var(--border)); 
  border-radius: calc(var(--radius) - 2px); 
  color: hsl(var(--foreground)); 
  font-size: 0.875rem; 
  font-weight: 500;
  cursor: pointer; 
  transition: all 0.2s;
  white-space: nowrap;
}

.status-tab:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--primary));
}

.status-tab.active {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
}

.reports-container { 
  padding: 1.5rem; 
  background-color: hsl(var(--card));
  border-radius: var(--radius);
}

/* Ensure reports list has proper spacing and isn't hidden */
.reports-container-scrollable .reports-list {
  padding-bottom: 1rem;
}

.reports-container-scrollable {
  padding: 1.5rem; 
  background-color: transparent;
  border-radius: 0;
  flex: 1 1 0%;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.reports-container-scrollable::-webkit-scrollbar {
  width: 8px;
}

.reports-container-scrollable::-webkit-scrollbar-track {
  background: hsl(var(--muted) / 0.3);
  border-radius: 4px;
}

.reports-container-scrollable::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.5);
  border-radius: 4px;
}

.reports-container-scrollable::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.7);
}

.reports-list { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem;
  padding: 0;
}

.report-card { 
  font-size: 0.875rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.report-card:hover {
  border-color: hsl(var(--ring));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.report-card.expanded { 
  background-color: hsl(var(--accent) / 0.1); 
  border-color: hsl(var(--primary) / 0.3); 
}

.report-header { 
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.report-main-info { 
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.report-type-icon { 
  display: flex; 
  align-items: center; 
  gap: 0.75rem; 
  flex-shrink: 0;
  min-width: 120px;
}

.report-expand-icon { 
  width: 1rem !important;
  height: 1rem !important;
  min-width: 1rem;
  min-height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s;
  transform: rotate(0deg);
  flex-shrink: 0;
}

.report-card.expanded .report-expand-icon {
  transform: rotate(90deg);
}

.type-icon { 
  width: 1.25rem !important; 
  height: 1.25rem !important;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex-shrink: 0;
}

/* Ensure all SVGs in report cards have proper sizing */
.report-card svg {
  width: auto;
  height: auto;
  max-width: 2rem;
  max-height: 2rem;
}

.report-card .report-expand-icon,
.report-card .type-icon,
.report-card .report-meta-icon {
  width: 1rem !important;
  height: 1rem !important;
  max-width: 1rem !important;
  max-height: 1rem !important;
  flex-shrink: 0;
}

.report-card .type-icon {
  width: 1.25rem !important;
  height: 1.25rem !important;
  max-width: 1.25rem !important;
  max-height: 1.25rem !important;
}

.report-card .report-meta-icon {
  width: 0.875rem !important;
  height: 0.875rem !important;
  max-width: 0.875rem !important;
  max-height: 0.875rem !important;
}

.user { background-color: hsl(217 91% 60% / 0.1); color: hsl(217 91% 60%); border: 1px solid hsl(217 91% 60% / 0.2); }

.post { background-color: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); border: 1px solid hsl(142 76% 36% / 0.2); }

.report-content-info { 
  flex: 1; 
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-badges { 
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0.5rem;
}

.type-badge { padding: 0.125rem 0.5rem; border-radius: calc(var(--radius) - 2px); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.report-reason { 
  font-weight: 600; 
  font-size: 0.9375rem;
  color: hsl(var(--foreground)); 
  margin-right: 0.75rem; 
  text-decoration: none;
  line-height: 1.4;
}

.severity-badge { padding: 0.125rem 0.5rem; border-radius: calc(var(--radius) - 2px); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; }

.high { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }

.medium { background-color: hsl(38 92% 50%); color: white; }

.low { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); }

.report-meta { 
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.report-meta-item { display: flex; align-items: center; gap: 0.25rem; }

.report-meta-icon { width: 0.75rem; height: 0.75rem; }

.report-actions { 
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; }

.pending { background-color: hsl(38 92% 50% / 0.1); color: hsl(38 92% 50%); border: 1px solid hsl(38 92% 50% / 0.2); }

.resolved { background-color: hsl(142 76% 36% / 0.1); color: hsl(142 76% 36%); border: 1px solid hsl(142 76% 36% / 0.2); }

.dismissed { background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); }

.action-btn { 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  min-height: 2rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
  gap: 0.5rem;
  font-weight: 500;
}

.action-btn svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
  max-width: 0.875rem !important;
  max-height: 0.875rem !important;
  flex-shrink: 0;
}

.dismiss { background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); border-color: hsl(var(--border)); }

.remove { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); border-color: hsl(var(--destructive)); }

.ban { background-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); border-color: hsl(var(--destructive)); }

.report-details { 
  padding: 1.5rem 0 0 0;
  margin-top: 1rem;
  border-top: 1px solid hsl(var(--border));
}

.report-details-grid { grid-template-columns: 1fr; gap: 1rem; }

.report-details-list { display: flex; flex-direction: column; gap: 0.75rem; }

.report-detail-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }

.report-detail-label { font-weight: 500; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }

.report-detail-value { display: block; padding: 0.5rem; background-color: hsl(var(--muted) / 0.5); border-radius: calc(var(--radius) - 2px); color: hsl(var(--foreground)); font-size: 0.875rem; white-space: pre-wrap; }

.code { font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace; font-size: 0.75rem; }

.report-additional-details { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border)); }

.resolution-details { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid hsl(var(--border)); }

.action-badge { padding: 0.125rem 0.5rem; border-radius: calc(var(--radius) - 2px); font-size: 0.75rem; font-weight: 500; border: 1px solid hsl(var(--border)); background-color: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.post-preview { display: flex; flex-direction: column; gap: 1rem; }

.post-preview-loading { display: flex; align-items: center; justify-content: center; height: 8rem; }

.post-preview-image { aspect-ratio: 4/3; width: 100%; border-radius: var(--radius); overflow: hidden; background-color: hsl(var(--muted)); }

.post-items { display: flex; flex-direction: column; gap: 0.5rem; }

.post-items-label { font-size: 0.875rem; font-weight: 500; color: hsl(var(--foreground)); }

.post-item { padding: 0.5rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); background-color: hsl(var(--muted) / 0.2); }

.post-item-name { font-weight: 500; color: hsl(var(--foreground)); font-size: 0.875rem; }

.post-item-details { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

.post-preview-error { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; color: hsl(var(--muted-foreground)); gap: 0.5rem; }

.empty-icon { width: 2.5rem; height: 2.5rem; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

.empty-title { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 0.5rem; }

.empty-description { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; gap: 0.75rem; color: hsl(var(--muted-foreground)); }

.loading-spinner { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 3px solid hsl(var(--border)); border-top-color: hsl(var(--primary)); animation: dashboard-spin 0.9s linear infinite; }

@keyframes dashboard-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.section-divider { display: flex; align-items: center; margin: 1rem 0; gap: 1rem; }

.section-divider-line { flex: 1; height: 1px; background-color: hsl(var(--border)); }

.section-divider-text { font-size: 0.875rem; color: hsl(var(--muted-foreground)); background-color: hsl(var(--background)); padding: 0 0.75rem; white-space: nowrap; }

.modal-title { font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); margin: 0; }

.modal-close { background: transparent; border: none; color: hsl(var(--muted-foreground)); cursor: pointer; padding: 0.5rem; border-radius: calc(var(--radius) - 2px); transition: all 0.2s; }

.modal-body { 
  padding: 0;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.categories-list { grid-template-columns: 1fr; }

.category-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; transition: all 0.2s; }

.category-header { flex-direction: column; gap: 1rem; }

.category-actions { align-self: flex-start; }

.description { color: hsl(var(--muted-foreground)); margin: 0 0 1rem 0; line-height: 1.5; }

.category-meta { flex-direction: column; gap: 0.5rem; }

.meta-item { display: flex; align-items: center; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

.form-group { margin-bottom: 1rem; }

.form-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.form-help {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

.card-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0.25rem 0 0 0;
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.style-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.style-card:hover {
  border-color: hsl(var(--ring));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.style-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.style-card-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.style-id {
  margin: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  word-break: break-all;
}

.style-version-badge {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.style-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.825rem;
  color: hsl(var(--muted-foreground));
}

.embedding-preview {
  font-family: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
  background: hsl(var(--muted) / 0.3);
  border: 1px dashed hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem;
  color: hsl(var(--muted-foreground));
  min-height: 48px;
}

.style-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-danger { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); border: 1px solid hsl(var(--destructive)); }

.no-data { text-align: center; padding: 3rem 1rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.error { text-align: center; padding: 3rem 1rem; color: hsl(var(--destructive)); font-size: 0.875rem; }

.loading { text-align: center; padding: 3rem 1rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

.search-controls { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }

.search-bar { flex-direction: column; }

.search-button { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: var(--radius); font-size: 0.875rem; cursor: pointer; transition: background-color 0.2s; }

.filter-controls { justify-content: stretch; }

.users-list-container { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; }

.users-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid hsl(var(--border)); }

.users-list { grid-template-columns: 1fr; }

.user-card { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.5rem; transition: all 0.2s; cursor: pointer; }

.user-card-header { flex-direction: column; gap: 1rem; }

.user-avatar-section { display: flex; align-items: flex-start; gap: 1rem; flex: 1; }

.user-avatar-large { position: relative; width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: hsl(var(--muted)); }

.user-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.user-name { margin: 0 0 0.25rem 0; font-size: 1.125rem; font-weight: 600; color: hsl(var(--foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-username { margin: 0 0 0.25rem 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.user-actions { align-self: stretch; flex-direction: row; justify-content: space-between; }

.banned { background: hsl(0 100% 95%); color: hsl(0 100% 40%); }

.verified { background: hsl(211 100% 95%); color: hsl(211 100% 45%); }

.view-profile-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.75rem; margin-top: 0.5rem; }

.user-card-body { border-top: 1px solid hsl(var(--border)); padding-top: 1rem; }

.user-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }

.user-stat { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }

.user-stat-label { color: hsl(var(--muted-foreground)); font-weight: 500; }

.user-stat-value { color: hsl(var(--foreground)); font-weight: 600; }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }

.pagination-btn { padding: 0.5rem 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); border-radius: var(--radius); cursor: pointer; font-size: 0.875rem; transition: all 0.2s; }

.user-profile { display: flex; flex-direction: column; gap: 1.5rem; }

.profile-header { flex-direction: column; text-align: center; }

.profile-avatar { position: relative; width: 5rem; height: 5rem; border-radius: 50%; overflow: hidden; background: hsl(var(--muted)); flex-shrink: 0; }

.profile-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }

.profile-username { margin: 0 0 0.75rem 0; font-size: 1rem; color: hsl(var(--muted-foreground)); }

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

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

.profile-item { display: flex; flex-direction: column; gap: 0.25rem; }

.profile-value { font-size: 0.875rem; color: hsl(var(--foreground)); }

.profile-bio { font-size: 0.875rem; color: hsl(var(--foreground)); line-height: 1.6; margin: 0; }

.profile-stats { grid-template-columns: repeat(2, 1fr); }

.profile-stat { text-align: center; padding: 1rem; background: hsl(var(--muted) / 0.3); border-radius: var(--radius); }

.profile-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; }

.profile-post { border-radius: var(--radius); overflow: hidden; background: hsl(var(--muted)); }

.post-image { aspect-ratio: 1; overflow: hidden; }

.post-info { padding: 0.5rem; }

.post-likes { margin: 0; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.profile-actions { justify-content: center; }

.profile-error { text-align: center; padding: 2rem; }

