/* ==========================================================================
   VIDABRICKS HR MANAGEMENT SYSTEM - CORE DESIGN SYSTEM
   Brand: Vidabricks Real Estate & Property Management
   Style: Luxury Corporate SaaS, Dark Slate & Warm Gold Palette
   ========================================================================== */

:root {
  /* Brand Palette */
  --brand-navy-950: #090d16;
  --brand-navy-900: #0f172a;
  --brand-navy-800: #1e293b;
  --brand-navy-700: #334155;
  --brand-navy-600: #475569;
  
  /* Luxury Gold / Bronze Accent (Dubai Real Estate Aesthetic) */
  --brand-gold: #c59b27;
  --brand-gold-hover: #b0881e;
  --brand-gold-light: #fef8eb;
  --brand-gold-border: #f3dfa2;
  --brand-gold-dark: #8c6a12;

  /* Primary Interactive / UI */
  --primary: #1e293b;
  --primary-hover: #0f172a;
  --primary-focus: rgba(30, 41, 59, 0.2);
  --primary-light: #f1f5f9;

  /* Neutral Surfaces */
  --bg-app: #f8fafc;
  --bg-sidebar: #0f172a;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-subtle: #f1f5f9;
  --bg-muted: #e2e8f0;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: #ecfdf5;
  --status-success-border: #a7f3d0;
  --status-success-text: #065f46;

  --status-warning: #f59e0b;
  --status-warning-bg: #fffbeb;
  --status-warning-border: #fde68a;
  --status-warning-text: #92400e;

  --status-danger: #ef4444;
  --status-danger-bg: #fef2f2;
  --status-danger-border: #fecaca;
  --status-danger-text: #991b1b;

  --status-info: #3b82f6;
  --status-info-bg: #eff6ff;
  --status-info-border: #bfdbfe;
  --status-info-text: #1e40af;

  --status-purple: #8b5cf6;
  --status-purple-bg: #f5f3ff;
  --status-purple-border: #ddd6fe;
  --status-purple-text: #5b21b6;

  /* Google Drive Brand Color */
  --drive-color: #0f9d58;
  --drive-bg: #e6f4ea;
  --drive-border: #ceead6;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 4px 14px 0 rgba(197, 155, 39, 0.25);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout Dimensions */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 78px;
  --header-height: 70px;
  --content-max-width: 1600px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-app);
  line-height: 1.5;
  height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--brand-navy-900);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* App Shell Layout */
#app-root {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
  background-color: var(--bg-app);
  width: calc(100% - var(--sidebar-width));
}

#app-root.sidebar-collapsed .main-wrapper {
  margin-left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* Content Container */
.content-area {
  flex: 1;
  padding: 2rem 2.25rem 3.5rem;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

/* Page Header Block */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-title-group h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-navy-900);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-title-group p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Utilities */
.text-gold { color: var(--brand-gold); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--status-success); }
.text-danger { color: var(--status-danger); }
.text-warning { color: var(--status-warning); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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