

/* Base page setup */


/* using dialog */

/* Base Page Setup */
body .page-content {
  /* scott, not sure this adds much value */
  transition: filter 0.2s ease; /* Smooth transition for the blur */
}

/* 1. BLUR BACKGROUND: Blurs the main content wrapper when the dialog is open */
body:has(dialog[open]) .page-content {
  filter: blur(5px);
  pointer-events: none; /* Prevents text selection outside the modal */
}

/* 2. PREVENT BODY SCROLL: Freezes the body when the dialog is open */
html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden !important; /* Forces vertical lock */
  overflow-x: hidden !important; /* Preserves reset-w3css.css safety-net */
  height: 100vh !important; /* Locks structural boundaries */
}

/* Trigger Button Styling */
.open-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  background-color: #0070f3;
  color: white;
  border-radius: 6px;
}

/* 3. NATIVE DIALOG LAYOUT FIXES */
/* Target only when open to preserve browser's default hidden behavior */
dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  /* FORCE click capture back on to bypass any hidden reset.css rules */
  pointer-events: auto;
}

/* Reset default dialog styles to make it an invisible screen overlay */
dialog {
  border: none;
  background: transparent;
  padding: 0;
  xwidth: 100vw;
  xheight: 100vh;   /* scott, this makes it stretch entire vertical height */
  max-width: 100vw;
  max-height: 100vh;
}

/* Native Backdrop Background styling */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}


dialog[open] {
  /* 1. Turning off browser centering */
  margin: 40px 40px 0 40px;  /* scott, changed to 40 to give room for a finger on a mobile device to tap outside */

  /* 2. Stripping standard dialog positioning constraints */
  display: block;
  xwidth: max-content;

  /* 3. Basic styling */
  border: none;
  border-radius: 8px;
  /* scott, fixme, padding creates extra space which when clicked will close the modal. */
  /* scott, fixme, this should probably be moved to the modal-content */
  padding: 20px;
  padding: 0;
  background-color: #f1f5f9;
}


/* scott I added this */
.modal-content {
    display:flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    xmargin: 15px;  /* scott, this caused a horizontal scroll bar */
    padding: 15px;
    background-color: lightpink;
}


/* The vertical button column layout */
.tab-list {
  display: grid;
  gap: 8px;
}

/* scott */
.tab-panel-container {
  background-color: yellow;
}

.tab-panel {
  /* by default tab-panel is hidden unless data-active="true" */
  display: none;
  background-color: #ccc;
}

.tab-panel[data-active="true"] {
  /* When data-active is true, show it. */
  display: block;
}


/* Base Button Style */
.tab-btn {
  text-align: left;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  xbackground: purple;  /* this works */
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

/* 1. WHILE CLICKING (Temporary physical press) */
.tab-btn:active {
  xbackground: #3b82f6;
  xbackground: purple;
  xcolor: white;
  transform: scale(0.96) translateY(1px);
  background-color: #e0e0e0;
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.1);
}

.tab-btn[active] {  /* this appies if the button is active property */
  background: #3b82f6;
  color: white;
}

/* 1. WHILE CLICKING (Temporary physical press) */
.tab-btn:active {
  background: #3b82f6;
  background: purple;
  color: white;
}


/* Base Tab styling */
.tab-btn {
  xbackground: transparent;  /* google might have suggested this so matches with panel background */
  border: none;
  border-bottom: 2px solid transparent; /* Invisible spacer */
  color: #666666;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 1. WHILE CLICKING: Immediate feedback without moving layout */
.tab-btn:active {
  background-color: #f5f5f5; /* Light flash background */
  color: #111111;
}


/* 2. SELECTED TAB: Persistent indicator line */
.tab-btn[data-active="true"] {
  color: #0066cc; /* Brand color text */
  border-bottom-color: #0066cc; /* Solid accent underline */
  xfont-weight: 600;  /* scott, not sure I want this, might cause layout shift */
}



