/* ==========================================================================
   CIS MASTER WORKSPACE — CORE DESIGN SYSTEM & FOUNDATION
   Entitas: PT Cahaya Intan Semesta Holding
   Palette: Executive Midnight Navy (#070d19) & Holding Gold (#d4af37)
   ========================================================================== */

:root {
  /* Color Palette: Dark Executive */
  --bg-dark: #070d19;
  --bg-subtle: #0a1322;
  --surface-card: #0e1b2e;
  --surface-elevated: #15263f;
  --surface-hover: #1c3252;
  
  /* Borders */
  --border-subtle: #192d48;
  --border-strong: #27456d;
  --border-gold: rgba(212, 175, 55, 0.4);

  /* Brand Accents */
  --gold-primary: #d4af37;
  --gold-hover: #e8c65f;
  --gold-dim: rgba(212, 175, 55, 0.12);
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --sky-primary: #38bdf8;
  --sky-dim: rgba(56, 189, 248, 0.12);
  
  --emerald-primary: #10b981;
  --emerald-dim: rgba(16, 185, 129, 0.12);
  
  --amber-primary: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);

  --rose-primary: #f43f5e;
  --rose-dim: rgba(244, 63, 94, 0.12);

  /* Typography Colors */
  --text-white: #f8fafc;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Typography Sizing & Line Heights */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', Courier, monospace;

  /* Layout Dimensions */
  --header-height: 64px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 8px 24px -4px rgba(212, 175, 55, 0.25);

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

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Base Utility Classes */
.hidden { display: none !important; }
.text-gold { color: var(--gold-primary) !important; }
.text-sky { color: var(--sky-primary) !important; }
.text-emerald { color: var(--emerald-primary) !important; }
.text-amber { color: var(--amber-primary) !important; }
.text-rose { color: var(--rose-primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-bold { font-weight: 700 !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* Workspace App Shell Grid */
.workspace-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-dark);
}

/* Main Content Area */
.workspace-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 40%);
}

.workspace-body {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
}
