/* ═══════════════════════════════════════
   GLOBAL VARIABLE CONFIGURATIONS & COMPACT ENTERPRISE THEME
   ════════════════════════════════════════ */
:root {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  
  /* Palette Custom Colors */
  --color-teal: #0d9488;
  --color-teal-light: #ccfbf1;
  --color-blue: #0284c7;
  --color-blue-light: #e0f2fe;
  --color-butter: #ca8a04;
  --color-butter-light: #fef08a;
  --color-crimson: #dc2626;
  --color-crimson-light: #fee2e2;
  
  /* Structural Variables */
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #cbd5e1;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --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);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base Shell Setup */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-fast);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-content.collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

.page-content {
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Utilities */
.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar Adjustments */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}