/* htdocs/main/css/style_x.css */

/* Global Reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Main Page Wrapper */
#wrapper {
    width: 95%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

/* Header Container */
header {
    background-color: #222;
    color: white;
    padding: 10px 20px;
}

header h1 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

/* Navigation Bar */
.navbar {
    background-color: #333;
    display: flex;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
}

.menu-item > a:hover {
    background-color: #555;
}

/* Dropdown Menu (Level 2) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    white-space: nowrap;
}

.menu-item:hover .dropdown {
    display: block;
}

.dropdown-item > a {
    display: block;
    color: #333;
    padding: 12px 20px;
    text-decoration: none;
}

.dropdown-item > a:hover {
    background-color: #f1f1f1;
}

/* Main Application Layout */
.app-container {
    display: flex;
    flex: 1;
}

/* Left Sidebar */
.sidebar {
    width: 250px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
}

.sidebar a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.sidebar a:hover {
    color: #000;
    font-weight: bold;
}

/* Right Content Area */
.content-area {
    flex: 1;
    padding: 30px;
    background-color: #fdfdfd;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
}

.idea-box {
  background-color: #eaf4ff;
  border-left: 4px solid #4098e8;
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 6px;
  color: #1e3a5f;
  line-height: 1.6;
}

/* =========================
   Table steel blue
========================= */
table.table-steelblue {
    margin-left: auto;
    margin-right: auto;
    border-collapse: separate;
    border-spacing: 2px;
    border: 1px solid steelblue;
}

table.table-steelblue th,
table.table-steelblue td {
    border: 1px solid steelblue;
    padding: 5px 10px;
}

table.table-steelblue th {
    background-color: steelblue;
    color: white;
}

/* Paragraphs */
p {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-indent: 1em;
    margin: 0 0 1em 0;
    text-align: justify;
    text-justify: inter-word;
    display: block;
    width: 100%;
}

p.no-indent {
  text-indent: 0;
}

/* Images */
img {
    width: min(800px, 90%);
    height: auto;
    display: block;
    margin: 1em auto;
}

/* Headings */
h1 {
    font-family: 'Lobster', cursive;
    font-size: 24px;
    color: steelblue;
    margin-bottom: 20px;
}

h2 {
	font-size: 20px;
    margin-bottom: 0.5em;
}

h3 {
    margin-bottom: 0.5em;
}

ul {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

ol {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

ul li,
ol li {
    text-align: justify;
}


/* Date */
.date {
    text-align: right;
    color: gray;
    font-size: 10px;
    margin-bottom: 2em;
}

/* The fred stuff */
.embed-container {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;    /* Vertical center */
}

.embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: inline-block;
}


/* --- MAIN LIST STYLING --- */
/* ==========================================================================
   VISUAL STYLES CONFIGURATION & LAYOUT ENGINE
   ========================================================================== */
.glossary {
    /* --- EDIT YOUR SETTINGS HERE --- */
    --glossary-font-family: 'Calibri', 'Segoe UI', sans-serif;

    /* Text Colors (Descriptions & plain items) */
    --text-color-default: #222222; /* Dark charcoal/black text */

    /* Title Colors (The 3 shades of blue) */
    --color-level-1-title: #002D62; /* Level 1: Dark Blue */
    --color-level-2-title: #0056B3; /* Level 2: Medium Blue */
    --color-level-3-title: #4183D7; /* Level 3: Light Blue */

    /* Font Sizes */
    --size-level-1: 14px;
    --size-level-2: 13px;
    --size-level-3: 12px;
    --size-level-4: 12px;

    /* Spacing & Layout Margins */
    --space-between-main-blocks: 16px; /* Vertical gap between main Level 1 items */
    --space-when-sublist-starts: 8px;   /* Vertical gap when moving into a nested list */
    --space-between-tight-items: 4px;   /* Vertical gap between items in the same list */
    --indentation-padding: 20px;        /* Horizontal space for list indents */
    /* ------------------------------ */

    font-family: var(--glossary-font-family);
    padding-left: var(--indentation-padding);
}

/* Structural layout behavior across lists */
.glossary ul {
    font-family: var(--glossary-font-family);
    padding-left: var(--indentation-padding);
    margin-top: var(--space-when-sublist-starts);    
    margin-bottom: var(--space-when-sublist-starts); 
}

.glossary li {
    margin-bottom: var(--space-between-tight-items); 
    color: var(--text-color-default);
    list-style-position: outside;
}

/* Forces standard bolding behavior for data attributes */
.glossary li[data-title]::before {
    content: attr(data-title) " ";
    font-weight: bold;
}


/* ==========================================================================
   LEVEL SPECIFIC CODES (Do not modify unless changing structure)
   ========================================================================== */

/* --- LEVEL 1 RULES --- */
.glossary > li {
    font-size: var(--size-level-1);
    margin-bottom: var(--space-between-main-blocks); 
}
.glossary > li .lvl1-title,
.glossary > li[data-title]::before {
    color: var(--color-level-1-title);
    font-weight: bold;
}

/* --- LEVEL 2 RULES --- */
.glossary > li > ul > li {
    font-size: var(--size-level-2);
}
.glossary > li > ul > li .lvl2-title,
.glossary > li > ul > li[data-title]::before {
    color: var(--color-level-2-title);
    font-weight: bold;
}

/* --- LEVEL 3 RULES --- */
.glossary > li > ul > li > ul > li {
    font-size: var(--size-level-3);
}
.glossary > li > ul > li > ul > li .lvl3-title,
.glossary > li > ul > li > ul > li[data-title]::before {
    color: var(--color-level-3-title);
    font-weight: bold;
}

/* --- LEVEL 4 RULES --- */
.glossary > li > ul > li > ul > li > ul > li {
    font-size: var(--size-level-4);
}



/* my yellow warning box */
.important-note {
    font-family: 'Calibri', 'Segoe UI', sans-serif;
    background-color: #fffde7; /* Very light soft yellow */
    border-left: 4px solid #fbc02d; /* Solid dark yellow accent bar on the left */
    border-top: 1px solid #fff9c4;
    border-right: 1px solid #fff9c4;
    border-bottom: 1px solid #fff9c4;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 20px 0; /* Creates breathing room above and below the box */
    color: #333333; /* Clean dark text for reading */
    font-size: 14px;
    line-height: 1.5;
    text-align: justify; /* Forces the text to be justified */
}

/* Optional styling to make a bold "NOTE:" header inside it look consistent */
.important-note strong {
    color: #f57f17; /* Deep amber/gold color strictly for the label */
}

/* For the instruction on which code needs to be run */
.instruction_box {
    width: 100%;
    background-color: #e6f4ff;
    padding: 15px;
    box-sizing: border-box;
}

