/* ─── Reset & Base ───────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #f4f6f9;
  overflow: hidden; /* prevent page-level scrolling; panels handle their own scroll */
}

/* Utility */
.hidden { display: none !important; }

/* ─── Spacing Tokens (centralized) ───────────────────────────────── */
:root {
  --space-0: 0;
  --space-1: .25rem;   /* 4px  */
  --space-2: .5rem;    /* 8px  */
  --space-3: .75rem;   /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.5rem;   /* 24px */
}

/* ─── Shared Panel Primitives ────────────────────────────────────── */
/* Use these classes in HTML to standardize spacing across panels */
.panel {
  box-sizing: border-box;
  padding: var(--space-2);
  background: #fff;
}

.panel--tight {
  padding-top: var(--space-1);
}

.panel-header {
  padding-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.panel-header--tight {
  padding-top: var(--space-1);
  margin-bottom: var(--space-1);
}

/* Extra breathing room for panels that touch the horizontal divider */
.panel--bottom {
  padding-top: var(--space-2); /* a small bump above the divider */
}

/* ─── App Layout ─────────────────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
}

/* Main 2x2 grid that holds the four quadrants */
#main-panels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;  /* left | right */
  grid-template-rows: 1fr;         /* single row */
  height: 100%;
  width: 100%;
  gap: 0;                          /* we’ll control internal spacing with panel padding */
}


/* Left column: Task Log container */
#task-stack {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: white;
  overflow: hidden;
  padding: var(--space-1);
}

/* Right column stacks Client Log (top) + Call Log (bottom) */
#right-stack {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: white;
  overflow: hidden;
  padding: var(--space-1);
}



/* Ensure stacked panels split space and allow internal scrolling */
#right-stack > #client-list-section {
  flex: 1 1 50%;
  min-height: 0;
  padding-bottom: var(--space-2); /* keep your bottom breathing room */
}

#right-stack > #call-log-section {
  flex: 1 1 50%;
  min-height: 0;
  padding-top: var(--space-2);    /* small gap below divider */
}

/* Make the stacked panels share space and allow internal scrolling */
#right-stack > .panel {
  flex: 1 1 0;
  min-height: 0;
}

/* Visual separation only on the right side (between the two stacked panels) */
#call-log-section {
  border-top: 1px solid #aaa;
  padding-top: var(--space-2);
}

#client-list-section {
  padding-bottom: var(--space-2);
}




/* Vertical center divider between left (Tasks) and right (Client/Call) */
#main-panels::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,0.12);
  z-index: 10;
  pointer-events: none;
}

/* === Modern Panel Elevation (Step 2 – Corrected) === */

body {
  background: #f4f6f9;
}
#task-log-section,
#main-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  padding: 14px;
}
