/* ============================================
   shadcn-inspired Design System for hackU
   Premium, Minimalist, Swiss Spa Aesthetic
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
  /* Primary Colors */
  --shadcn-background: #FAFAFA;
  --shadcn-foreground: #0A0A0A;
  --shadcn-card: #FFFFFF;
  --shadcn-card-foreground: #0A0A0A;
  --shadcn-popover: #FFFFFF;
  --shadcn-popover-foreground: #0A0A0A;

  /* Brand Colors - Using project palette */
  --shadcn-primary: #572D88;
  --shadcn-primary-foreground: #FFFFFF;
  --shadcn-primary-hover: #684294;
  --shadcn-primary-light: #F4F0F7;
  --shadcn-primary-muted: #E9E3EF;

  /* Secondary Colors */
  --shadcn-secondary: #F4F4F5;
  --shadcn-secondary-foreground: #18181B;

  /* Accent & Muted */
  --shadcn-muted: #F4F4F5;
  --shadcn-muted-foreground: #71717A;
  --shadcn-accent: #F4F4F5;
  --shadcn-accent-foreground: #18181B;

  /* Semantic Colors */
  --shadcn-destructive: #EF4444;
  --shadcn-destructive-foreground: #FFFFFF;
  --shadcn-success: #10B981;
  --shadcn-success-light: #D1FAE5;
  --shadcn-warning: #F59E0B;
  --shadcn-warning-light: #FEF3C7;

  /* Border & Ring */
  --shadcn-border: #E4E4E7;
  --shadcn-input: #E4E4E7;
  --shadcn-ring: #572D88;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Sidebar */
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 72px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles - Force Geist Font Globally
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Force Geist font on everything */
html,
body,
*,
*::before,
*::after {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Exclude icon fonts - must use !important to override the global Geist font rule */
.fa,
.fas,
.far,
.fal,
.fab,
.fad {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}
.fab {
  font-family: var(--fa-style-family-brands, "Font Awesome 6 Brands") !important;
}
[class^="hu-"],
[class*=" hu-"] {
  font-family: 'hacku-icons-v2' !important;
}
[class^="pe-"],
[class*=" pe-"] {
  font-family: inherit !important;
}
[class^="metismenu-icon"],
[class^="lnr-"],
[class*=" lnr-"],
[class^="ion-"],
[class*=" ion-"],
i[data-lucide],
svg {
  font-family: inherit !important;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100%;
  min-height: 100%;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  background-color: var(--shadcn-background);
  color: var(--shadcn-foreground);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  /* Dynamic viewport height */
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ============================================
   Typography - Force Geist on All Elements
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600;
  line-height: 1.25;
  color: var(--shadcn-foreground);
  letter-spacing: -0.025em;
}

h1,
.h1 {
  font-size: 2.25rem;
}

h2,
.h2 {
  font-size: 1.875rem;
}

h3,
.h3 {
  font-size: 1.5rem;
}

h4,
.h4 {
  font-size: 1.25rem;
}

h5,
.h5 {
  font-size: 1.125rem;
}

h6,
.h6 {
  font-size: 1rem;
}

p,
span,
div,
a,
label,
input,
textarea,
select,
button,
th,
td,
li,
dt,
dd {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

p {
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--shadcn-muted-foreground);
}

/* Form elements */
input,
textarea,
select,
button,
.form-control,
.btn,
.badge,
.alert,
.card-title,
.card-text,
.nav-link,
.dropdown-item,
.modal-title,
.modal-body,
.tooltip,
.popover {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Override Gotham Rounded */
.font-light,
.font-alerts,
[class*="gotham"],
[class*="Gotham"] {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* ============================================
   Layout Structure
   ============================================ */

.shadcn-app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.shadcn-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--shadcn-card);
  border-right: 1px solid var(--shadcn-border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-slow), transform var(--transition-slow);
}

.shadcn-sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.shadcn-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-slow);
}

.shadcn-sidebar.collapsed+.shadcn-main,
.closed-sidebar .shadcn-main {
  margin-left: var(--sidebar-width-collapsed);
}

/* ============================================
   Header
   ============================================ */

.shadcn-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  background: var(--shadcn-card);
  border-bottom: 1px solid var(--shadcn-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.shadcn-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shadcn-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.shadcn-header-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--shadcn-foreground);
}

/* ============================================
   Sidebar Styles
   ============================================ */

.shadcn-sidebar-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--shadcn-border);
}

.shadcn-sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.shadcn-sidebar-logo img {
  height: 32px;
  width: auto;
  transition: transform var(--transition-fast);
}

.shadcn-sidebar-logo:hover img {
  transform: scale(1.02);
}

.shadcn-sidebar-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--shadcn-primary);
  letter-spacing: -0.025em;
}

.collapsed .shadcn-sidebar-logo-text {
  display: none;
}

.shadcn-sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--space-4) var(--space-3);
}

/* Custom Scrollbar */
.shadcn-sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.shadcn-sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.shadcn-sidebar-content::-webkit-scrollbar-thumb {
  background: var(--shadcn-border);
  border-radius: var(--radius-full);
}

.shadcn-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--shadcn-muted-foreground);
}

/* Navigation */
.shadcn-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.shadcn-nav-section {
  margin-bottom: var(--space-4);
}

.shadcn-nav-section-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--shadcn-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}

.collapsed .shadcn-nav-section-title {
  text-align: center;
  font-size: 0;
}

.collapsed .shadcn-nav-section-title::after {
  content: "•••";
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.shadcn-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--shadcn-muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.shadcn-nav-item:hover {
  background: var(--shadcn-primary-light);
  color: var(--shadcn-primary);
}

.shadcn-nav-item.active {
  background: var(--shadcn-primary);
  color: var(--shadcn-primary-foreground);
}

.shadcn-nav-item.active:hover {
  background: var(--shadcn-primary-hover);
  color: var(--shadcn-primary-foreground);
}

.shadcn-nav-item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shadcn-nav-item-icon i,
.shadcn-nav-item-icon svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.shadcn-nav-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collapsed .shadcn-nav-item-text {
  display: none;
}

.shadcn-nav-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--shadcn-destructive);
  color: var(--shadcn-destructive-foreground);
}

.collapsed .shadcn-nav-item-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  font-size: 0.5625rem;
  padding: 0 4px;
}

/* Submenu */
.shadcn-nav-submenu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: calc(var(--space-3) + 20px + var(--space-3));
  margin-top: var(--space-1);
}

.shadcn-nav-item.has-submenu.expanded+.shadcn-nav-submenu {
  display: flex;
}

.shadcn-nav-submenu-item {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--shadcn-muted-foreground);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  transition: all var(--transition-fast);
}

.shadcn-nav-submenu-item:hover {
  background: var(--shadcn-primary-light);
  color: var(--shadcn-primary);
}

.shadcn-nav-submenu-item.active {
  color: var(--shadcn-primary);
  font-weight: 500;
}

/* Chevron for expandable items */
.shadcn-nav-chevron {
  margin-left: auto;
  transition: transform var(--transition-fast);
}

.shadcn-nav-item.expanded .shadcn-nav-chevron {
  transform: rotate(180deg);
}

.collapsed .shadcn-nav-chevron {
  display: none;
}

/* Sidebar Footer */
.shadcn-sidebar-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--shadcn-border);
}

.shadcn-sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--shadcn-border);
  background: transparent;
  color: var(--shadcn-muted-foreground);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shadcn-sidebar-toggle:hover {
  background: var(--shadcn-secondary);
  color: var(--shadcn-foreground);
}

/* ============================================
   Main Content Area
   ============================================ */

.shadcn-content {
  flex: 1;
  padding: var(--space-6);
  max-width: 100%;
}

@media (min-width: 1200px) {
  .shadcn-content {
    padding: var(--space-8);
  }
}

/* ============================================
   Cards
   ============================================ */

.shadcn-card {
  background: var(--shadcn-card);
  border: 1px solid var(--shadcn-border);
  border-radius: var(--radius-lg);
}

.shadcn-card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--shadcn-border);
}

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

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

.shadcn-card-content {
  padding: var(--space-6);
}

.shadcn-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--shadcn-border);
  background: var(--shadcn-muted);
}

/* ============================================
   Buttons
   ============================================ */

.shadcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.shadcn-btn:focus-visible {
  outline: 2px solid var(--shadcn-ring);
  outline-offset: 2px;
}

.shadcn-btn-primary,
a.shadcn-btn-primary {
  background: var(--shadcn-primary);
  color: var(--shadcn-primary-foreground) !important;
}

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

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

.shadcn-btn-secondary:hover {
  background: var(--shadcn-border);
}

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

.shadcn-btn-outline:hover {
  background: var(--shadcn-secondary);
}

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

.shadcn-btn-ghost:hover {
  background: var(--shadcn-secondary);
}

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

.shadcn-btn-destructive:hover {
  background: #DC2626;
}

.shadcn-btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: 0.8125rem;
}

.shadcn-btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
}

.shadcn-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.shadcn-btn-icon.shadcn-btn-sm {
  width: 32px;
  height: 32px;
}

/* ============================================
   Badges
   ============================================ */

.shadcn-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

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

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

.shadcn-badge-success {
  background: var(--shadcn-success-light);
  color: #065F46;
}

.shadcn-badge-warning {
  background: var(--shadcn-warning-light);
  color: #92400E;
}

.shadcn-badge-destructive {
  background: #FEE2E2;
  color: #991B1B;
}

.shadcn-badge-new {
  background: linear-gradient(135deg, var(--shadcn-primary), #8B5CF6);
  color: white;
  animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

/* ============================================
   Alerts
   ============================================ */

.shadcn-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--shadcn-border);
  background: var(--shadcn-card);
  font-size: 0.875rem;
  line-height: 1.5;
}

.shadcn-alert i,
.shadcn-alert svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.shadcn-alert-default {
  background: var(--shadcn-secondary);
  border-color: var(--shadcn-border);
  color: var(--shadcn-foreground);
}

.shadcn-alert-info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.shadcn-alert-info i,
.shadcn-alert-info svg {
  color: #3B82F6;
}

.shadcn-alert-success {
  background: var(--shadcn-success-light);
  border-color: #A7F3D0;
  color: #065F46;
}

.shadcn-alert-success i,
.shadcn-alert-success svg {
  color: var(--shadcn-success);
}

.shadcn-alert-warning {
  background: var(--shadcn-warning-light);
  border-color: #FDE68A;
  color: #92400E;
}

.shadcn-alert-warning i,
.shadcn-alert-warning svg {
  color: var(--shadcn-warning);
}

.shadcn-alert-destructive,
.shadcn-alert-error,
.shadcn-alert.alert-danger {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #991B1B;
}

.shadcn-alert-destructive i,
.shadcn-alert-destructive svg,
.shadcn-alert-error i,
.shadcn-alert-error svg,
.shadcn-alert.alert-danger i,
.shadcn-alert.alert-danger svg {
  color: var(--shadcn-destructive);
}

/* Django MESSAGE_TAGS compatibility aliases */
.shadcn-alert.alert-info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

.shadcn-alert.alert-info i,
.shadcn-alert.alert-info svg {
  color: #3B82F6;
}

.shadcn-alert.alert-warning {
  background: var(--shadcn-warning-light);
  border-color: #FDE68A;
  color: #92400E;
}

.shadcn-alert.alert-warning i,
.shadcn-alert.alert-warning svg {
  color: var(--shadcn-warning);
}

.shadcn-alert.text-success,
.shadcn-alert.alert-success {
  background: var(--shadcn-success-light);
  border-color: #A7F3D0;
  color: #065F46;
}

.shadcn-alert.text-success i,
.shadcn-alert.text-success svg,
.shadcn-alert.alert-success i,
.shadcn-alert.alert-success svg {
  color: var(--shadcn-success);
}

/* Alert with close button */
.shadcn-alert-dismissible {
  padding-right: var(--space-10);
  position: relative;
}

.shadcn-alert-dismissible .shadcn-alert-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1);
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.shadcn-alert-dismissible .shadcn-alert-close:hover {
  opacity: 1;
}

/* ============================================
   Form Elements
   ============================================ */

.shadcn-input {
  width: 100%;
  height: 40px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--shadcn-input);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: var(--shadcn-card);
  color: var(--shadcn-foreground);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.shadcn-input:focus {
  outline: none;
  border-color: var(--shadcn-ring);
  box-shadow: 0 0 0 3px rgba(87, 45, 136, 0.1);
}

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

.shadcn-select {
  width: 100%;
  height: 40px;
  padding: var(--space-2) var(--space-3);
  padding-right: calc(var(--space-3) + 24px);
  border: 1px solid var(--shadcn-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background-color: var(--shadcn-card);
  color: var(--shadcn-foreground);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2371717A' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.shadcn-select:hover {
  border-color: var(--shadcn-ring);
}

.shadcn-select:focus {
  outline: none;
  border-color: var(--shadcn-ring);
  box-shadow: 0 0 0 3px rgba(87, 45, 136, 0.1);
}

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

.shadcn-select option {
  background-color: var(--shadcn-card);
  color: var(--shadcn-foreground);
  padding: var(--space-2);
}

/* Input Group (Search with icon) */
.shadcn-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.shadcn-input-icon {
  position: absolute;
  left: 0.75rem;
  width: 16px;
  height: 16px;
  color: var(--shadcn-muted-foreground, #71717A);
  pointer-events: none;
  z-index: 1;
}

.shadcn-input-with-icon {
  padding-left: 2.5rem !important;
}

/* Back Button Standard */
.shadcn-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--shadcn-foreground, #0A0A0A);
  background-color: var(--shadcn-card, #FFFFFF);
  border: 1px solid var(--shadcn-border, #E4E4E7);
  border-radius: var(--radius-md, 0.5rem);
  text-decoration: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.shadcn-back-btn:hover {
  background-color: var(--shadcn-muted, #F4F4F5);
  text-decoration: none;
  color: var(--shadcn-foreground, #0A0A0A);
}

/* ============================================
   User Menu / Avatar
   ============================================ */

.shadcn-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--shadcn-border);
  transition: border-color var(--transition-fast);
}

.shadcn-avatar:hover {
  border-color: var(--shadcn-primary);
}

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

.shadcn-user-menu {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.shadcn-user-menu:hover {
  background: var(--shadcn-secondary);
}

.shadcn-user-info {
  text-align: left;
}

.shadcn-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--shadcn-foreground);
  line-height: 1.2;
}

.shadcn-user-role {
  font-size: 0.75rem;
  color: var(--shadcn-muted-foreground);
}

/* ============================================
   Dropdown Menu
   ============================================ */

.shadcn-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--shadcn-card);
  border: 1px solid var(--shadcn-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
}

.shadcn-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.shadcn-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--shadcn-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background var(--transition-fast);
}

.shadcn-dropdown-item:hover {
  background: var(--shadcn-secondary);
}

.shadcn-dropdown-item.danger {
  color: var(--shadcn-destructive);
}

.shadcn-dropdown-item.danger:hover {
  background: #FEE2E2;
}

.shadcn-dropdown-separator {
  height: 1px;
  background: var(--shadcn-border);
  margin: var(--space-2) 0;
}

/* ============================================
   Loading & Skeleton
   ============================================ */

.shadcn-skeleton {
  background: linear-gradient(90deg,
      var(--shadcn-muted) 0%,
      var(--shadcn-border) 50%,
      var(--shadcn-muted) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

  100% {
    background-position: -200% 0;
  }
}

.shadcn-skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--space-2);
}

.shadcn-skeleton-sm {
  height: 12px;
}

/* ============================================
   Tooltips
   ============================================ */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--shadcn-foreground);
  color: var(--shadcn-card);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-bottom: var(--space-1);
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile First - Base styles above are for mobile */

/* Small screens - Hide sidebar by default */
@media (max-width: 768px) {
  .shadcn-sidebar {
    transform: translateX(-100%);
    z-index: 50;
  }

  .shadcn-sidebar.mobile-open {
    transform: translateX(0);
  }

  .shadcn-main {
    margin-left: 0;
  }

  .shadcn-content {
    padding: var(--space-4);
  }

  .shadcn-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .shadcn-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .shadcn-user-info {
    display: none;
  }

  .shadcn-header {
    padding: 0 var(--space-4);
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .shadcn-sidebar {
    width: var(--sidebar-width-collapsed);
  }

  .shadcn-sidebar:hover {
    width: var(--sidebar-width);
  }

  .shadcn-sidebar:hover .shadcn-nav-item-text,
  .shadcn-sidebar:hover .shadcn-nav-section-title {
    display: block;
  }

  .shadcn-main {
    margin-left: var(--sidebar-width-collapsed);
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .shadcn-sidebar {
    width: var(--sidebar-width);
  }

  .shadcn-main {
    margin-left: var(--sidebar-width);
  }
}

/* ============================================
   Override existing styles gracefully
   ============================================ */

/* Keep compatibility with existing Bootstrap/template classes */
.app-container.shadcn-enabled {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: var(--shadcn-background);
  position: relative;
}

/* Ensure no dark background shows through */
.app-container.shadcn-enabled,
.app-container.shadcn-enabled .app-main,
.app-container.shadcn-enabled .app-main__outer,
.app-container.shadcn-enabled .app-main__inner,
.app-container.shadcn-enabled .app-wrapper-footer,
.app-container.shadcn-enabled .app-footer {
  background: var(--shadcn-background);
}

/* Fix any potential dark backgrounds */
.app-drawer-overlay,
.app-drawer-wrapper {
  background: transparent !important;
}

/* Ensure body and html have correct background */
html.shadcn-enabled,
body.shadcn-enabled,
html,
body {
  background-color: var(--shadcn-background, #FAFAFA) !important;
}

.app-container.shadcn-enabled .app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #FFFFFF;
  border-bottom: 1px solid var(--shadcn-border);
  box-shadow: none !important;
}

/* Hide any logo inside the sidebar (from original template) */
.app-container.shadcn-enabled .app-sidebar .app-header__logo,
.app-container.shadcn-enabled .app-sidebar .logo-src {
  display: none !important;
}

.app-container.shadcn-enabled .app-sidebar {
  position: fixed;
  top: var(--header-height, 64px);
  /* Start below fixed header */
  left: 0;
  bottom: 0;
  z-index: 40;
  height: calc(100vh - var(--header-height, 64px)) !important;
  min-height: calc(100vh - var(--header-height, 64px)) !important;
  max-height: calc(100vh - var(--header-height, 64px)) !important;
  width: var(--sidebar-width);
  background: var(--shadcn-card);
  border-right: 1px solid var(--shadcn-border);
  box-shadow: none !important;
  transition: width var(--transition-slow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-container.shadcn-enabled.closed-sidebar .app-sidebar {
  width: var(--sidebar-width-collapsed);
}

/* Ensure sidebar internal structure fills the height */
.app-container.shadcn-enabled .app-sidebar .scrollbar-sidebar,
.app-container.shadcn-enabled .app-sidebar .scrollbar-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.app-container.shadcn-enabled .app-sidebar .app-sidebar__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--shadcn-card, #FFFFFF) !important;
}

/* Ensure ALL sidebar children have white background */
.app-container.shadcn-enabled .app-sidebar,
.app-container.shadcn-enabled .app-sidebar *:not(i):not(svg):not(img):not([class*="icon"]):not([class*="badge"]) {
  background-color: var(--shadcn-card, #FFFFFF);
}

/* Sidebar nav wrapper */
.app-container.shadcn-enabled .app-sidebar .vertical-nav-menu {
  flex: 1;
  background: var(--shadcn-card, #FFFFFF) !important;
}

.app-container.shadcn-enabled .app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height, 64px) !important;
}

.app-container.shadcn-enabled .app-main__outer {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  margin-top: 0;
}

.app-container.shadcn-enabled .app-main__inner {
  flex: 1;
  padding: var(--space-4);
}

/* Cards */
.app-container.shadcn-enabled .card {
  background: var(--shadcn-card);
  border: 1px solid var(--shadcn-border);
  border-radius: var(--radius-lg);
  box-shadow: none !important;
}

.app-container.shadcn-enabled .card-header {
  background: transparent;
  border-bottom: 1px solid var(--shadcn-border);
  padding: var(--space-4) var(--space-5);
}

.app-container.shadcn-enabled .card-body {
  padding: var(--space-5);
}

/* Buttons */
.app-container.shadcn-enabled .btn-alternate,
.app-container.shadcn-enabled .btn-primary {
  background: var(--shadcn-primary);
  border-color: var(--shadcn-primary);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.app-container.shadcn-enabled .btn-alternate:hover,
.app-container.shadcn-enabled .btn-primary:hover {
  background: var(--shadcn-primary-hover);
  border-color: var(--shadcn-primary-hover);
}

.app-container.shadcn-enabled .btn-outline-alternate,
.app-container.shadcn-enabled .btn-outline-primary {
  color: var(--shadcn-primary);
  border-color: var(--shadcn-primary);
  border-radius: var(--radius-md);
  background: transparent;
}

.app-container.shadcn-enabled .btn-outline-alternate:hover,
.app-container.shadcn-enabled .btn-outline-primary:hover {
  background: var(--shadcn-primary);
  color: var(--shadcn-primary-foreground);
}

/* Form controls */
.app-container.shadcn-enabled .form-control {
  border: 1px solid var(--shadcn-input);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  transition: all var(--transition-fast);
}

.app-container.shadcn-enabled .form-control:focus {
  border-color: var(--shadcn-ring);
  box-shadow: 0 0 0 3px rgba(87, 45, 136, 0.1);
}

/* Alerts/badges */
.app-container.shadcn-enabled .badge-pill {
  border-radius: var(--radius-full);
  font-weight: 500;
  padding: 0.25em 0.6em;
}

.app-container.shadcn-enabled .badge-danger {
  background: var(--shadcn-destructive) !important;
}

/* Sweet Alert customization */
.app-container.shadcn-enabled .swal2-popup {
  border-radius: var(--radius-lg) !important;
  padding: var(--space-6) !important;
}

.app-container.shadcn-enabled .swal2-title {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  color: var(--shadcn-foreground) !important;
}

.app-container.shadcn-enabled .swal2-confirm {
  background: var(--shadcn-primary) !important;
  border-radius: var(--radius-md) !important;
}

.app-container.shadcn-enabled .swal2-cancel {
  border-radius: var(--radius-md) !important;
}

/* ============================================
   Utility Classes
   ============================================ */

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

.text-primary {
  color: var(--shadcn-primary);
}

.text-success {
  color: var(--shadcn-success);
}

.text-destructive {
  color: var(--shadcn-destructive);
}

.text-warning {
  color: var(--shadcn-warning);
}

.bg-muted {
  background: var(--shadcn-muted);
}

.bg-primary-light {
  background: var(--shadcn-primary-light);
}

.border-none {
  border: none;
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-full {
  border-radius: var(--radius-full);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Gap utilities */
.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

/* Spacing utilities */
.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.px-4 {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.py-2 {
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

/* ============================================
   Mobile Sidebar Enhancements
   ============================================ */

@media (max-width: 991.98px) {
  .app-container.shadcn-enabled .app-sidebar {
    position: fixed;
    top: 0 !important;
    left: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    width: var(--sidebar-width);
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    background: var(--shadcn-card);
    border-right: 1px solid var(--shadcn-border);
  }

  .app-container.shadcn-enabled .app-sidebar.mobile-open {
    transform: translateX(0);
  }

  .app-container.shadcn-enabled .app-main,
  .app-container.shadcn-enabled.closed-sidebar .app-main,
  .app-container.closed-sidebar .app-main {
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
  }

  .app-container.shadcn-enabled .app-main__outer,
  .app-container.closed-sidebar .app-main__outer,
  .fixed-sidebar .app-main .app-main__outer,
  .app-main .app-main__outer {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .app-container.shadcn-enabled .app-main__inner {
    padding: var(--space-3) !important;
  }

  .shadcn-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    /* No blur - clean overlay */
  }

  .shadcn-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Header adjustments for mobile */
  .app-container.shadcn-enabled .app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  .app-container.shadcn-enabled .app-header__logo {
    display: none;
  }
}

/* Large screens - ensure proper sidebar width */
@media (min-width: 992px) {
  .app-container.shadcn-enabled .app-sidebar {
    transform: translateX(0);
  }

  .app-container.shadcn-enabled.closed-sidebar .app-sidebar {
    width: var(--sidebar-width-collapsed);
  }

  .app-container.shadcn-enabled.closed-sidebar .app-main {
    margin-left: var(--sidebar-width-collapsed);
  }
}

/* Sidebar collapsed state - content expands (desktop only) */
@media (min-width: 992px) {
  .app-container.closed-sidebar .app-main {
    margin-left: var(--sidebar-width-collapsed, 72px) !important;
    padding-left: 0 !important;
  }

  .app-container.closed-sidebar .app-main__outer {
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* Force sidebar collapsed width */
  .app-container.closed-sidebar .app-sidebar {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
  }
}

/* ============================================
   Page Title & Breadcrumb Enhancements
   ============================================ */

.app-container.shadcn-enabled .app-page-title {
  background: transparent;
  border-radius: 0;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.app-container.shadcn-enabled .page-title-heading {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--shadcn-foreground);
  letter-spacing: -0.025em;
}

.app-container.shadcn-enabled .page-title-subheading {
  font-size: var(--text-sm);
  color: var(--shadcn-muted-foreground);
  margin-top: var(--space-1);
}

.app-container.shadcn-enabled .app-page-title .page-title-icon {
  width: 48px;
  height: 48px;
  background: var(--shadcn-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-container.shadcn-enabled .app-page-title .page-title-icon i {
  font-size: 1.5rem;
  color: var(--shadcn-primary);
}

/* Allow page-title-icon inside offcanvas to be full width */
.offcanvas .page-title-icon {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
}

/* ============================================
   Table Enhancements
   ============================================ */

.app-container.shadcn-enabled .table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-container.shadcn-enabled .table thead th {
  background: var(--shadcn-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shadcn-muted-foreground);
  border-bottom: 1px solid var(--shadcn-border);
  padding: var(--space-3) var(--space-4);
}

.app-container.shadcn-enabled .table tbody td {
  font-size: var(--text-sm);
  color: var(--shadcn-foreground);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--shadcn-border);
  vertical-align: middle;
}

.app-container.shadcn-enabled .table tbody tr:hover {
  background: var(--shadcn-muted);
}

.app-container.shadcn-enabled .table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Form Group Enhancements
   ============================================ */

.app-container.shadcn-enabled .form-group label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--shadcn-foreground);
  margin-bottom: var(--space-2);
}

.app-container.shadcn-enabled .form-text {
  font-size: var(--text-xs);
  color: var(--shadcn-muted-foreground);
  margin-top: var(--space-1);
}

/* ============================================
   Alert Enhancements
   ============================================ */

.app-container.shadcn-enabled .alert {
  border-radius: var(--radius-md);
  border: 1px solid;
  padding: var(--space-4);
}

.app-container.shadcn-enabled .alert-success {
  background: var(--shadcn-success-light);
  border-color: var(--shadcn-success);
  color: #065F46;
}

.app-container.shadcn-enabled .alert-warning {
  background: var(--shadcn-warning-light);
  border-color: var(--shadcn-warning);
  color: #92400E;
}

.app-container.shadcn-enabled .alert-danger {
  background: #FEE2E2;
  border-color: var(--shadcn-destructive);
  color: #991B1B;
}

.app-container.shadcn-enabled .alert-info {
  background: #DBEAFE;
  border-color: #3B82F6;
  color: #1E40AF;
}

/* ============================================
   Empty State
   ============================================ */

.shadcn-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.shadcn-empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--shadcn-muted);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.shadcn-empty-state-icon i,
.shadcn-empty-state-icon svg {
  width: 32px;
  height: 32px;
  color: var(--shadcn-muted-foreground);
}

.shadcn-empty-state-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--shadcn-foreground);
  margin-bottom: var(--space-2);
}

.shadcn-empty-state-description {
  font-size: var(--text-sm);
  color: var(--shadcn-muted-foreground);
  max-width: 320px;
}

/* ============================================
   Loading Spinner
   ============================================ */

.shadcn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--shadcn-border);
  border-top-color: var(--shadcn-primary);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

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

.shadcn-spinner-lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}

/* ============================================
   Focus Ring
   ============================================ */

.app-container.shadcn-enabled *:focus-visible {
  outline: 2px solid var(--shadcn-ring);
  outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {

  .app-container.shadcn-enabled .app-sidebar,
  .app-container.shadcn-enabled .app-header,
  .shadcn-mobile-overlay {
    display: none !important;
  }

  .app-container.shadcn-enabled .app-main {
    margin-left: 0 !important;
  }

  .app-container.shadcn-enabled .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
}

/* ============================================
   CRITICAL: Global Font Override
   Override ALL Gotham Rounded declarations
   This must be at the end to ensure highest priority
   ============================================ */

/* Reset all font-family declarations to Geist */
html body,
html body *,
html body *::before,
html body *::after,
.app-container,
.app-container *,
.shadcn-enabled,
.shadcn-enabled * {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Override specific Gotham classes */
[style*="Gotham"],
[style*="gotham"],
.font-light,
.font-alerts,
.light-font,
.widget-heading,
.widget-subheading,
.widget-description,
.card-header-title,
.page-title-heading,
.page-title-subheading,
.app-sidebar__heading,
.menu-item,
.form-control,
.btn,
.badge,
.alert,
.modal-title,
.modal-body,
.nav-link,
.dropdown-item,
.swal2-title,
.swal2-content,
.swal2-confirm,
.swal2-cancel,
.select2-selection,
.select2-results,
.dataTables_wrapper,
.card-title,
.card-text,
.list-group-item,
.breadcrumb-item,
.pagination,
.table,
.table th,
.table td {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Preserve icon font families on ::before pseudo-elements */
.fa:before,
.fas:before,
.far:before,
.fal:before,
.fad:before {
  font-family: var(--fa-style-family, "Font Awesome 6 Free") !important;
}
.fab:before {
  font-family: var(--fa-style-family-brands, "Font Awesome 6 Brands") !important;
}
[class^="hu-"]:before,
[class*=" hu-"]:before {
  font-family: 'hacku-icons-v2' !important;
}
[class^="pe-"]:before,
[class*=" pe-"]:before,
[class^="lnr-"]:before,
[class*=" lnr-"]:before,
[class^="ion-"]:before,
[class*=" ion-"]:before,
.metismenu-icon:before {
  font-family: inherit !important;
}

/* ============================================
   Content Type Cards - Add Content Offcanvas
   ============================================ */

.content-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--shadcn-card);
  border: 1px solid var(--shadcn-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 100px;
}

.content-type-card:hover {
  border-color: var(--shadcn-primary);
  background: var(--shadcn-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.content-type-card:hover .content-type-icon-wrapper {
  background: var(--shadcn-primary);
  color: white;
}

.content-type-icon-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shadcn-primary-light);
  border-radius: var(--radius-md);
  color: var(--shadcn-primary);
  transition: all var(--transition-fast);
}

.content-type-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--shadcn-foreground);
  text-align: center;
  line-height: 1.3;
}

.content-type-card:hover .content-type-label {
  color: var(--shadcn-primary);
}

/* Button reset for content type card */
button.content-type-card {
  background: var(--shadcn-card);
  border: 1px solid var(--shadcn-border);
}

/* Offcanvas shadcn styling */
.offcanvas.offcanvas-end {
  border-left: 1px solid var(--shadcn-border);
}

.offcanvas .offcanvas-header {
  background: var(--shadcn-card);
}

.offcanvas .offcanvas-body {
  background: var(--shadcn-background);
}
