@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --button-outline: rgba(0,0,0, .10);
  --badge-outline: rgba(0,0,0, .05);
  --opaque-button-border-intensity: -8;
  --elevate-1: rgba(0,0,0, .03);
  --elevate-2: rgba(0,0,0, .08);
  --background: 0 0% 100%;
  --foreground: 0 0% 9%;
  --border: 0 0% 89%;
  --card: 0 0% 98%;
  --card-foreground: 0 0% 9%;
  --card-border: 0 0% 95%;
  --sidebar: 0 0% 96%;
  --sidebar-foreground: 0 0% 9%;
  --sidebar-border: 0 0% 92%;
  --sidebar-primary: 142 76% 36%;
  --sidebar-primary-foreground: 144 61% 98%;
  --sidebar-accent: 0 0% 92%;
  --sidebar-accent-foreground: 0 0% 9%;
  --sidebar-ring: 142 76% 36%;
  --popover: 0 0% 94%;
  --popover-foreground: 0 0% 9%;
  --popover-border: 0 0% 90%;
  --primary: 142 76% 36%;
  --primary-foreground: 144 61% 98%;
  --secondary: 0 0% 90%;
  --secondary-foreground: 0 0% 9%;
  --muted: 150 5% 88%;
  --muted-foreground: 0 0% 35%;
  --accent: 145 8% 91%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84% 42%;
  --destructive-foreground: 0 85% 97%;
  --input: 0 0% 75%;
  --ring: 142 76% 36%;
  --chart-1: 142 76% 36%;
  --chart-2: 160 84% 39%;
  --chart-3: 173 58% 39%;
  --chart-4: 197 37% 45%;
  --chart-5: 142 60% 28%;
  --font-sans: Poppins, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: Menlo, monospace;
  --radius: .5rem;
  --shadow-2xs: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 1px 2px -1px hsl(0 0% 0% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 1px 2px -1px hsl(0 0% 0% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 2px 4px -1px hsl(0 0% 0% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 4px 6px -1px hsl(0 0% 0% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 8px 10px -1px hsl(0 0% 0% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --tracking-normal: 0em;
  --spacing: 0.25rem;
  --sidebar-primary-border: hsl(var(--sidebar-primary));
  --sidebar-accent-border: hsl(var(--sidebar-accent));
  --primary-border: hsl(var(--primary));
  --secondary-border: hsl(var(--secondary));
  --muted-border: hsl(var(--muted));
  --accent-border: hsl(var(--accent));
  --destructive-border: hsl(var(--destructive));
}

.dark {
  --button-outline: rgba(255,255,255, .10);
  --badge-outline: rgba(255,255,255, .05);
  --opaque-button-border-intensity: 9;
  --elevate-1: rgba(255,255,255, .04);
  --elevate-2: rgba(255,255,255, .09);
  --background: 0 0% 7%;
  --foreground: 0 0% 98%;
  --border: 0 0% 15%;
  --card: 0 0% 9%;
  --card-foreground: 0 0% 98%;
  --card-border: 0 0% 12%;
  --sidebar: 0 0% 11%;
  --sidebar-foreground: 0 0% 98%;
  --sidebar-border: 0 0% 14%;
  --sidebar-primary: 142 76% 36%;
  --sidebar-primary-foreground: 144 61% 98%;
  --sidebar-accent: 0 0% 14%;
  --sidebar-accent-foreground: 0 0% 98%;
  --sidebar-ring: 142 76% 36%;
  --popover: 0 0% 13%;
  --popover-foreground: 0 0% 98%;
  --popover-border: 0 0% 16%;
  --primary: 142 76% 36%;
  --primary-foreground: 144 61% 98%;
  --secondary: 0 0% 16%;
  --secondary-foreground: 0 0% 98%;
  --muted: 150 4% 15%;
  --muted-foreground: 0 0% 70%;
  --accent: 145 6% 14%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 84% 42%;
  --destructive-foreground: 0 85% 97%;
  --input: 0 0% 35%;
  --ring: 142 76% 36%;
  --chart-1: 142 70% 65%;
  --chart-2: 160 70% 65%;
  --chart-3: 173 58% 60%;
  --chart-4: 197 50% 65%;
  --chart-5: 142 55% 55%;
  --shadow-2xs: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --shadow-xs: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --shadow-sm: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 1px 2px -1px hsl(0 0% 0% / 0.00);
  --shadow: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 1px 2px -1px hsl(0 0% 0% / 0.00);
  --shadow-md: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 2px 4px -1px hsl(0 0% 0% / 0.00);
  --shadow-lg: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 4px 6px -1px hsl(0 0% 0% / 0.00);
  --shadow-xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.00), 0px 8px 10px -1px hsl(0 0% 0% / 0.00);
  --shadow-2xl: 0px 2px 0px 0px hsl(0 0% 0% / 0.00);
  --sidebar-primary-border: hsl(var(--sidebar-primary));
  --sidebar-accent-border: hsl(var(--sidebar-accent));
  --primary-border: hsl(var(--primary));
  --secondary-border: hsl(var(--secondary));
  --muted-border: hsl(var(--muted));
  --accent-border: hsl(var(--accent));
  --destructive-border: hsl(var(--destructive));
}

* {
  border-color: hsl(var(--border));
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

[contenteditable][data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.toggle-elevate::before,
.toggle-elevate-2::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0px;
  border-radius: inherit;
  z-index: -1;
}

.toggle-elevate.toggle-elevated::before {
  background-color: var(--elevate-2);
}

.border.toggle-elevate::before {
  inset: -1px;
}

.hover-elevate:not(.no-default-hover-elevate),
.active-elevate:not(.no-default-active-elevate),
.hover-elevate-2:not(.no-default-hover-elevate),
.active-elevate-2:not(.no-default-active-elevate) {
  position: relative;
  z-index: 0;
}

.hover-elevate:not(.no-default-hover-elevate)::after,
.active-elevate:not(.no-default-active-elevate)::after,
.hover-elevate-2:not(.no-default-hover-elevate)::after,
.active-elevate-2:not(.no-default-active-elevate)::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0px;
  border-radius: inherit;
  z-index: 999;
}

.hover-elevate:hover:not(.no-default-hover-elevate)::after,
.active-elevate:active:not(.no-default-active-elevate)::after {
  background-color: var(--elevate-1);
}

.hover-elevate-2:hover:not(.no-default-hover-elevate)::after,
.active-elevate-2:active:not(.no-default-active-elevate)::after {
  background-color: var(--elevate-2);
}

.border.hover-elevate:not(.no-hover-interaction-elevate)::after,
.border.active-elevate:not(.no-active-interaction-elevate)::after,
.border.hover-elevate-2:not(.no-hover-interaction-elevate)::after,
.border.active-elevate-2:not(.no-active-interaction-elevate)::after {
  inset: -1px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 12s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

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

.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-popover { background-color: hsl(var(--popover)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.bg-sidebar { background-color: hsl(var(--sidebar)); }
.bg-sidebar-accent { background-color: hsl(var(--sidebar-accent)); }

.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-popover-foreground { color: hsl(var(--popover-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)); }
.text-sidebar-foreground { color: hsl(var(--sidebar-foreground)); }
.text-sidebar-accent-foreground { color: hsl(var(--sidebar-accent-foreground)); }

.border-border { border-color: hsl(var(--border)); }
.border-card-border { border-color: hsl(var(--card-border)); }
.border-popover-border { border-color: hsl(var(--popover-border)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-secondary { border-color: hsl(var(--secondary)); }
.border-muted { border-color: hsl(var(--muted)); }
.border-accent { border-color: hsl(var(--accent)); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-sidebar-border { border-color: hsl(var(--sidebar-border)); }
.border-input { border-color: hsl(var(--input)); }

.ring-ring { --tw-ring-color: hsl(var(--ring)); }
.ring-primary { --tw-ring-color: hsl(var(--primary)); }

.hover\:bg-primary:hover { background-color: hsl(var(--primary)); }
.hover\:bg-secondary:hover { background-color: hsl(var(--secondary)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-destructive:hover { background-color: hsl(var(--destructive)); }
.hover\:bg-sidebar-accent:hover { background-color: hsl(var(--sidebar-accent)); }

.focus\:ring-ring:focus { --tw-ring-color: hsl(var(--ring)); }
.focus\:ring-primary:focus { --tw-ring-color: hsl(var(--primary)); }

.dark .dark\:bg-background { background-color: hsl(var(--background)); }
.dark .dark\:bg-card { background-color: hsl(var(--card)); }
.dark .dark\:bg-popover { background-color: hsl(var(--popover)); }
.dark .dark\:text-foreground { color: hsl(var(--foreground)); }
.dark .dark\:text-muted-foreground { color: hsl(var(--muted-foreground)); }
.dark .dark\:border-border { border-color: hsl(var(--border)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  padding: 0.5rem 1rem;
  min-height: 2.25rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

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

.btn-secondary:hover:not(:disabled) {
  filter: brightness(0.95);
}

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

.btn-destructive:hover:not(:disabled) {
  filter: brightness(1.1);
}

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

.btn-outline:hover:not(:disabled) {
  background-color: hsl(var(--accent));
}

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

.btn-ghost:hover:not(:disabled) {
  background-color: hsl(var(--accent));
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  min-height: 2rem;
}

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

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background-color: transparent;
  color: hsl(var(--foreground));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

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

.textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background-color: transparent;
  color: hsl(var(--foreground));
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.375rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  cursor: pointer;
}

.select:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

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

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

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 0 1.5rem 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: hsl(var(--card-foreground));
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.15s ease;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

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

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

.badge-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

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

.badge-success {
  background-color: hsl(142 76% 36%);
  color: white;
}

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

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

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.separator {
  background-color: hsl(var(--border));
  height: 1px;
  width: 100%;
}

.separator-vertical {
  background-color: hsl(var(--border));
  width: 1px;
  height: 100%;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  overflow: hidden;
  background-color: hsl(var(--muted));
}

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

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

.tabs {
  display: flex;
  border-bottom: 1px solid hsl(var(--border));
}

.tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

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

.progress {
  height: 0.5rem;
  background-color: hsl(var(--secondary));
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: hsl(var(--primary));
  transition: width 0.3s ease;
}

.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  border-left: 4px solid hsl(142 76% 36%);
}

.toast-error {
  border-left: 4px solid hsl(var(--destructive));
}

.toast-warning {
  border-left: 4px solid hsl(38 92% 50%);
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background-color: hsl(var(--popover));
  border: 1px solid hsl(var(--popover-border));
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.25rem;
  display: none;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--popover-foreground));
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: hsl(var(--accent));
}

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

.table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.5);
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.table tbody tr:hover {
  background-color: hsl(var(--muted) / 0.3);
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: hsl(var(--input));
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch.active {
  background-color: hsl(var(--primary));
}

.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.2s ease;
}

.switch.active::after {
  transform: translateX(20px);
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--input));
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.checkbox:checked {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.skeleton {
  background: linear-gradient(90deg, hsl(var(--muted)) 25%, hsl(var(--muted) / 0.5) 50%, hsl(var(--muted)) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 0.25rem;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: hsl(var(--border));
  border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--muted-foreground));
}

.sidebar {
  background-color: hsl(var(--sidebar));
  border-right: 1px solid hsl(var(--sidebar-border));
  height: 100vh;
  width: 280px;
  flex-shrink: 0;
  overflow-y: auto;
}

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

.sidebar-content {
  padding: 1rem;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: hsl(var(--sidebar-foreground));
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-menu-item:hover {
  background-color: hsl(var(--sidebar-accent));
}

.sidebar-menu-item.active {
  background-color: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-accent-foreground));
}

.coins-display {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background-color: hsl(var(--accent));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.coins-display svg {
  width: 1rem;
  height: 1rem;
  color: hsl(142 76% 36%);
}

.hero-gradient {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.1) 0%, hsl(var(--background)) 50%, hsl(var(--accent) / 0.2) 100%);
}

.glass {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.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;
}

/* Admin Panel Additional Styles */
.switch {
  position: relative;
  width: 2.5rem;
  height: 1.25rem;
  background-color: hsl(var(--muted));
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.switch::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1rem;
  height: 1rem;
  background-color: white;
  border-radius: 9999px;
  transition: transform 0.15s ease;
}

.switch.active {
  background-color: hsl(var(--primary));
}

.switch.active::after {
  transform: translateX(1.25rem);
}

.loading {
  width: 2rem;
  height: 2rem;
  border: 2px solid hsl(var(--muted));
  border-top-color: hsl(var(--primary));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Static pages styling */
.section {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prose, .blog-content {
  line-height: 1.8;
  color: hsl(var(--foreground));
}

.prose p, .blog-content p {
  margin-bottom: 1.25rem;
}

.prose h1, .blog-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h2, .blog-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.prose h3, .blog-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose ul, .prose ol, .blog-content ul, .blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.prose ul, .blog-content ul {
  list-style-type: disc;
}

.prose ol, .blog-content ol {
  list-style-type: decimal;
}

.prose li, .blog-content li {
  margin-bottom: 0.5rem;
}

.prose a, .blog-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover, .blog-content a:hover {
  opacity: 0.8;
}

.prose img, .blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.prose strong, .blog-content strong {
  font-weight: 600;
}

.prose em, .blog-content em {
  font-style: italic;
}

.blog-content .text-left { text-align: left; }
.blog-content .text-center { text-align: center; }
.blog-content .text-right { text-align: right; }

.text-muted {
  color: hsl(var(--muted-foreground));
}

.faq-chevron {
  transition: transform 0.2s ease;
}

.faq-answer {
  transition: max-height 0.2s ease;
}

/* Blog WYSIWYG Editor Styles */
.blog-wysiwyg-editor {
  line-height: 1.8;
  font-family: var(--font-sans);
}

.blog-wysiwyg-editor:focus {
  outline: none;
}

.blog-wysiwyg-editor:empty:before {
  content: 'Tulis konten artikel Anda di sini...';
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.blog-wysiwyg-editor h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  line-height: 1.3;
}

.blog-wysiwyg-editor h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem 0;
  line-height: 1.4;
}

.blog-wysiwyg-editor h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  line-height: 1.4;
}

.blog-wysiwyg-editor p {
  margin: 0.75rem 0;
}

.blog-wysiwyg-editor ul, .blog-wysiwyg-editor ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.blog-wysiwyg-editor ul {
  list-style-type: disc;
}

.blog-wysiwyg-editor ol {
  list-style-type: decimal;
}

.blog-wysiwyg-editor li {
  margin-bottom: 0.25rem;
}

.blog-wysiwyg-editor a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.blog-wysiwyg-editor strong {
  font-weight: 600;
}

.blog-wysiwyg-editor em {
  font-style: italic;
}

.blog-wysiwyg-editor .blog-image-wrapper {
  position: relative;
  margin: 1rem 0;
  padding: 0.5rem 0;
}

.blog-wysiwyg-editor .blog-image-resize-container {
  display: inline-block;
  position: relative;
  max-width: 100%;
}

.blog-wysiwyg-editor .blog-editor-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  display: block;
}

.blog-wysiwyg-editor .blog-editor-image:hover {
  opacity: 0.95;
}

.blog-wysiwyg-editor .blog-image-resize-handle {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: hsl(var(--primary));
  border-radius: 2px;
  cursor: se-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-wysiwyg-editor [data-align="left"],
.blog-image-wrapper[style*="text-align: left"] {
  text-align: left;
}

.blog-wysiwyg-editor [data-align="center"],
.blog-image-wrapper[style*="text-align: center"] {
  text-align: center;
}

.blog-wysiwyg-editor [data-align="right"],
.blog-image-wrapper[style*="text-align: right"] {
  text-align: right;
}

/* Public blog page - zoomable images */
.blog-zoomable-image {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.blog-zoomable-image:hover {
  opacity: 0.9;
}

/* Blog content images should respect their container width */
.blog-content .blog-image-wrapper {
  margin: 1.5rem 0;
}

.blog-content .blog-image-resize-container {
  display: inline-block;
  max-width: 100%;
}

.blog-content .blog-image-resize-container img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
