/* ==================================================
   GLOBAL TYPOGRAPHY
   ================================================== */

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8fafc;
  color: #1a1a1a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0.2px;
}

p {
  font-size: 15px;
  color: #333;
}


/* ==================================================
   HEADER BAR
   ================================================== */

.top-bar {
  background: linear-gradient(90deg, #0f4c81, #005fa3);
  color: #ffffff;
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.9;
}

.main-nav {
  display: flex;
  gap: 22px;
}

.main-nav a {
  color: #e6edf6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #ffffff;
}

.page-title {
  display: flex;
  flex-direction: column;
}

.page-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
}


/* ==================================================
   MAIN LAYOUT
   ================================================== */

.container {
  display: flex;
  min-height: calc(100vh - 60px);
}

.pane {
  padding: 16px;
  background: #ffffff;
}

.pane.left {
  flex: 1;
  background: #f9fafb;
  overflow-y: auto;
  position: relative;
}

.pane.middle {
  flex: 1.4;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.pane.right {
  flex: 1.6;
  max-width: 900px;
}


/* ==================================================
   LEFT PANE HEADER (SEARCH + CONTROLS)
   ================================================== */

.left-pane-header {

  position: sticky;
  top: 0;

  background: #ffffff;

  padding: 12px;

  border-bottom: 1px solid #ddd;

  box-shadow: 0 2px 6px rgba(0,0,0,0.06);

  z-index: 10;

}

.left-pane-header input {

  width: 100%;
  padding: 9px 12px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  font-size: 14px;

  outline: none;

  margin-bottom: 10px;

}

.left-pane-header input:focus {

  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);

}


/* ==================================================
   TREE CONTROL BUTTONS
   ================================================== */

.tree-controls {
  display: flex;
  gap: 8px;
}

.tree-controls button {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  cursor: pointer;
}

.tree-controls button:hover {
  background: #eef2ff;
}


/* ==================================================
   CATEGORY TREE
   ================================================== */

.tree-node {
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
}

.tree-node:hover {
  background: #eaf2ff;
}

.tree-node.selected {
  background: #dbeafe;
  font-weight: 600;
}

.tree-toggle {
  display: inline-block;
  width: 14px;
  color: #2563eb;
  font-weight: bold;
}

.tree-children {
  margin-left: 18px;
  display: none;
}

.tree-node.expanded + .tree-children {
  display: block;
}


/* ==================================================
   POLICY LIST
   ================================================== */

.policy {
  border-bottom: 1px solid #eef2f7;
  padding: 12px 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.policy strong {
  font-weight: 600;
  color: #111827;
}

.policy:hover {
  background: #eef5ff;
}


/* ==================================================
   POLICY DETAILS
   ================================================== */

.policy-pane {
  position: relative;
  padding-bottom: 80px;
}

.policy-pane h2 {
  font-size: 24px;
  margin-bottom: 12px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
}

.policy-description {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
  margin-bottom: 20px;
}

.policy-pane h3 {
  margin-top: 20px;
  font-size: 16px;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}


/* ==================================================
   REGISTRY BLOCK
   ================================================== */

.registry-block {
  background: #f4f7fb;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-top: 18px;
}

.registry-value {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  font-family: Consolas, monospace;
  font-size: 13px;
}


/* ==================================================
   BREADCRUMB
   ================================================== */

.breadcrumb {
  font-size: 13px;
  margin-bottom: 12px;
  color: #6b7280;
}


/* ==================================================
   COPY BUTTON
   ================================================== */

.copy-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.copy-btn {
  cursor: pointer;
  padding: 7px 14px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.copy-btn:hover {
  transform: translateY(-1px);
}


/* ==================================================
   COPY MENU
   ================================================== */

.copy-menu {
  display: none;
  position: absolute;
  bottom: 36px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 200px;
  font-size: 14px;
  z-index: 2000;
}

.copy-menu div {
  padding: 8px 12px;
  cursor: pointer;
}

.copy-menu div:hover {
  background: #f5f5f5;
}

.copy-status {
  margin-top: 12px;
  font-size: 13px;
  color: #16a34a;
  font-weight: 500;
}


/* ==================================================
   HOME PAGE GRID
   ================================================== */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 50px;
}

.app-tile {
  display: block;
  padding: 34px;
  background: linear-gradient(135deg, #0f4c81, #2563eb);
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}


/* ==================================================
   ABOUT SECTION
   ================================================== */

.about,
.about-tile {
  margin: 40px auto;
  max-width: 900px;
  padding: 28px 36px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}


/* ==================================================
   SEO CONTENT BLOCK
   ================================================== */

.seo-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.seo-content h2 {
  font-size: 18px;
  margin-bottom: 10px;
}


/* ==================================================
   FOOTER
   ================================================== */

#footerBar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f1f5f9;
  color: #666;
  font-size: 12px;
  padding: 8px 18px;
  border-top: 1px solid #e5e7eb;
}
/* ==================================================
   LEFT PANE TOOLBAR (STICKY SEARCH + CONTROLS)
   ================================================== */

.left-pane-toolbar {

  position: sticky;
  top: 0;

  background: #f9fafb;

  padding: 12px;

  border-bottom: 1px solid #e5e7eb;

  z-index: 100;
  
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}

/* search field */

.left-pane-toolbar input {

  width: 100%;
  padding: 10px 12px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  font-size: 14px;

}

.left-pane-toolbar input:focus {

  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
  outline: none;

}

/* buttons */

.tree-controls {
  display: flex;
  gap: 8px;
}

.tree-controls button {

  font-size: 12px;

  padding: 6px 10px;

  border-radius: 4px;

  border: 1px solid #d1d5db;

  background: #f9fafb;

  cursor: pointer;

}

.tree-controls button:hover {
  background: #eef2ff;
}
/* ==========================================
   LEFT PANE STICKY TOOLBAR
   ========================================== */

.left-pane-toolbar {

  position: sticky;
  top: 0;

  background: #f9fafb;

  padding: 12px;

  border-bottom: 1px solid #e5e7eb;

  z-index: 50;

}

/* search input */

.left-pane-toolbar input {

  width: 100%;

  padding: 10px 12px;

  border: 1px solid #d1d5db;
  border-radius: 6px;

  font-size: 14px;

  margin-bottom: 10px;

}

.left-pane-toolbar input:focus {

  border-color: #2563eb;

  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);

  outline: none;

}
/* ==========================================
   HEADER NAVIGATION
   ========================================== */

.main-nav {

  margin-top: 8px;

  display: flex;
  gap: 20px;

}

.main-nav a {

  color: #e6edf6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

}

.main-nav a:hover {

  color: #ffffff;

}


/* ==========================================
   HEADER TOOLS
   ========================================== */

.header-tools {

  margin-top: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

}

.header-tools input {

  width: 280px;

  padding: 8px 10px;

  border-radius: 4px;
  border: 1px solid #cbd5e1;

  font-size: 13px;

}

.header-tools button {

  font-size: 12px;

  padding: 6px 10px;

  border-radius: 4px;

  border: 1px solid #cbd5e1;

  background: #ffffff;

  cursor: pointer;

}

.header-tools button:hover {

  background: #eef2ff;

}
/* ==========================================
   HEADER LAYOUT
   ========================================== */

.top-bar {

  background: linear-gradient(90deg, #0f4c81, #005fa3);
  color: #ffffff;

  padding: 14px 26px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  position: sticky;
  top: 0;
  z-index: 1000;

}


/* right side of header */

.header-right {

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

}


/* navigation */

.main-nav {

  display: flex;
  gap: 22px;

}

.main-nav a {

  color: #e6edf6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

}

.main-nav a:hover {

  color: #ffffff;

}


/* tools row */

.header-tools {

  display: flex;
  align-items: center;
  gap: 10px;

}

.header-tools input {

  width: 260px;

  padding: 7px 10px;

  border-radius: 4px;
  border: 1px solid #cbd5e1;

  font-size: 13px;

}

.header-tools button {

  font-size: 12px;

  padding: 6px 10px;

  border-radius: 4px;

  border: 1px solid #cbd5e1;

  background: #ffffff;

  cursor: pointer;

}

.header-tools button:hover {

  background: #eef2ff;

}