/* ============================================================================
   MASTER CONSOLIDATED STYLESHEET FOR ENTIRE WEBSITE
   Consolidates all CSS from all portals: IT, Quality, Regulatory, Personal, Electronics
   Version: 1.0
   Last Updated: 2025-11-12
   ============================================================================ */

/* ============================================================================
   SECTION 1: FONTS & NORMALIZE
   ============================================================================ */

@import url('https://fonts.googleapis.com/css?family=Titillium+Web:200,300,400,600,700,900&display=swap');

/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;}main{display:block;}h1{font-size:2em;margin:.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-.25em;}sup{top:-.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:.35em .75em .625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}

/* ============================================================================
   SECTION 2: CSS CUSTOM PROPERTIES (CSS Variables)
   ============================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Global Theme Colors */
    --primary: rgb(240 184 81);
    --secondary: rgb(4 6 20);
    --color3: rgb(244 156 112);
    --color4: rgb(163 107 127);
    --white: white;
    --light: #f8f9fa;
    --dark: #212529;

    /* Python Courses Specific */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --course-header-bg: #667eea;
    --course-header-color: white;
    --section-bg: white;
    --section-header-bg: #f8f9fa;
    --section-header-color: #495057;
    --text-color: #333;
    --text-size-base: 1.1rem;
    --text-size-large: 1.3rem;
    --text-size-small: 1rem;
    --code-bg: #f8f9fa;
    --code-color: #333;
    --sample-output-bg: #f8f9fa;
    --sample-output-color: red;
    --sample-output-label-color: #6c757d;
    --border-radius: 4px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-color: #dee2e6;
}

/* ============================================================================
   SECTION 3: BASE TYPOGRAPHY & BODY STYLES
   ============================================================================ */

body {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #0056b3;
    background: #fff;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Alternative body font for specific contexts */
body.theme-font {
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

html {
    min-height: 100vh;
}

/* ============================================================================
   SECTION 4: HEADINGS
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
    color: #0056b3;
    font-weight: bold;
    margin: 15px 0;
    text-align: left;
}

h1 {
    font-size: 2em;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 8px;
}

h2 {
    font-size: 1.5em;
    margin-top: 25px;
}

h3 {
    font-size: 1.25em;
    color: #2b5d8c;
}

h4 {
    font-size: 1.1em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 0.9em;
}

/* ============================================================================
   SECTION 5: CONTAINER & LAYOUT
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

/* Legacy Layout Styles (from dd.css) */
#shadow {
    BORDER-RIGHT: #eceef0 3px solid;
    MARGIN: 0px auto;
    WIDTH: 700px;
    BORDER-BOTTOM: #eceef0 3px solid;
    POSITION: relative;
}

#content {
    BORDER-RIGHT: #ccd7e0 1px solid;
    PADDING-RIGHT: 20px;
    BORDER-TOP: #ccd7e0 1px solid;
    PADDING-LEFT: 20px;
    PADDING-BOTTOM: 20px;
    BORDER-LEFT: #ccd7e0 1px solid;
    WIDTH: auto;
    PADDING-TOP: 20px;
    BORDER-BOTTOM: #ccd7e0 1px solid;
    POSITION: relative;
    BACKGROUND-COLOR: #fff;
    TEXT-ALIGN: left;
}

#location {
    PADDING-BOTTOM: 16px;
}

#location H1 {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    FONT-WEIGHT: normal;
    FONT-SIZE: 21px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    COLOR: #ffc76f;
    PADDING-TOP: 0px;
}

#location H1 A {
    FONT-SIZE: 18px;
    COLOR: #718ea5;
    TEXT-DECORATION: none;
}

#location H1 A:hover {
    COLOR: #93b2c8;
}

#front {
    BACKGROUND: url(/img/front.gif) no-repeat;
    MARGIN: 20px 0px;
    HEIGHT: 262px;
}

#main {
    FLOAT: left;
    MARGIN: 20px 0px;
    WIDTH: 460px;
    POSITION: relative;
}

#main H3 {
    FONT-WEIGHT: normal;
    FONT-SIZE: 12px;
    MARGIN: 0px;
    COLOR: #718ea5;
}

#extra {
    FLOAT: right;
    MARGIN: 20px 0px;
    WIDTH: 180px;
    POSITION: relative;
}

#extra H3 {
    FONT-WEIGHT: normal;
    FONT-SIZE: 12px;
    MARGIN: 0px;
    COLOR: #718ea5;
}

#files {
    FLOAT: left;
    MARGIN: 20px 0px;
    WIDTH: 100%;
    POSITION: relative;
}

#files H3 {
    FONT-WEIGHT: normal;
    FONT-SIZE: 12px;
    MARGIN: 0px;
    COLOR: #718ea5;
}

#copy {
    MARGIN-TOP: 5px;
}

#copy P {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    FONT-SIZE: 10px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    PADDING-TOP: 0px;
}

#copy A {
    COLOR: #718ea5;
    TEXT-DECORATION: none;
}

#copy A:hover {
    COLOR: #8cc0e5;
    TEXT-DECORATION: underline;
}

/* ============================================================================
   SECTION 6: TEXT ELEMENTS
   ============================================================================ */

p {
    margin: 10px 0;
    line-height: 1.6;
    text-align: left;
}

/* ============================================================================
   SECTION 7: LINKS
   ============================================================================ */

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================================
   SECTION 8: LISTS
   ============================================================================ */

ul, ol {
    margin: 10px 0;
    padding-left: 20px;
    text-align: left;
}

li {
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: left;
}

/* Legacy list styles */
.nav {
    PADDING-RIGHT: 0px;
    LIST-STYLE: disc url(/img/arrow.gif) outside;
    PADDING-LEFT: 0px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px 0px 0px 10px;
    PADDING-TOP: 0px;
}

.nav LI {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    PADDING-TOP: 0px;
}

.check {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    LIST-STYLE-POSITION: outside;
    LIST-STYLE-IMAGE: url(/img/check.gif);
    PADDING-BOTTOM: 0px;
    MARGIN: 0px 0px 0px 18px;
    PADDING-TOP: 0px;
}

.arrow {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    LIST-STYLE-POSITION: outside;
    LIST-STYLE-IMAGE: url(/img/arrow.gif);
    PADDING-BOTTOM: 0px;
    MARGIN: 0px 0px 0px 18px;
    PADDING-TOP: 0px;
}

/* ============================================================================
   SECTION 9: TABLES
   ============================================================================ */

.calculation-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.calculation-table th,
.calculation-table td {
    text-align: left;
    padding: 12px;
    border: 1px solid #e0e0e0;
}

.calculation-table th {
    background-color: #f8f9fa;
    color: #0056b3;
    font-weight: bold;
}

.calculation-table tr:hover {
    background-color: #f5f9ff;
}

/* Info Table (Quality Portal) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th, .info-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.info-table th {
    background-color: #f8f9fa;
    color: #0056b3;
}

.info-table tr:hover {
    background-color: #f5f5f5;
}

/* Legacy Files Table */
.files {
    WIDTH: 100%;
}

.files TH {
    TEXT-ALIGN: left;
}

.files TD {
    BORDER-TOP: #fff 1px solid;
}

.files IMG {
    VERTICAL-ALIGN: text-bottom;
}

/* ============================================================================
   SECTION 10: SPECIAL SECTIONS & NOTES
   ============================================================================ */

/* Warning Sections */
.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.warning-note {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
}

/* Success Sections */
.success-note {
    background-color: #e8f5e9;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
}

/* Critical Sections */
.critical-note {
    background-color: #ffebee;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    color: #dc3545;
}

/* Important Sections */
.important {
    background-color: #d4edda;
    border-left: 4px solid #0056b3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

/* General Note */
.note {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: left;
}

/* Color-coded Notes */
.note-red {
    background-color: #ffe6e6;
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.note-yellow {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

.note-green {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    text-align: left;
}

/* Example Sections */
.example {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
}

/* Info Box */
.info-box {
    background: #e7f5ff;
    border: 1px solid #b8daff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: left;
}

/* Legacy Item Styles */
.line {
    CLEAR: both;
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    FONT-SIZE: 0px;
    BACKGROUND: url(/img/line.gif) #718ea5 repeat-x;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    PADDING-TOP: 0px;
    HEIGHT: 1px;
}

.item {
    PADDING-RIGHT: 10px;
    PADDING-LEFT: 10px;
    FONT-SIZE: 11px;
    BACKGROUND: #fafbfc;
    MARGIN-BOTTOM: 10px;
    PADDING-BOTTOM: 20px;
    PADDING-TOP: 10px;
}

.item A {
    COLOR: #93b2c8;
}

.item A:hover {
    COLOR: #8cc0e5;
}

.item H4 {
    FONT-WEIGHT: normal;
    FONT-SIZE: 11px;
    MARGIN: 0px;
    COLOR: #222;
}

.item P {
    MARGIN-TOP: 0px;
    MARGIN-BOTTOM: 10px;
    TEXT-ALIGN: justify;
}

H4.func {
    FONT-WEIGHT: bold;
    FONT-SIZE: 13px;
    BACKGROUND: #ecf0f3;
    COLOR: #666;
}

/* ============================================================================
   SECTION 11: IMAGES
   ============================================================================ */

img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
    margin-left: 0;
}

/* ============================================================================
   SECTION 12: GRID LAYOUTS
   ============================================================================ */

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.section-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-card h3 {
    color: #0056b3;
    margin-top: 0;
}

.pictogram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: start;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    justify-items: start;
}

/* ============================================================================
   SECTION 13: QUALITY PORTAL - QMS SPECIFIC STYLES
   ============================================================================ */

.qms-sections ul {
    list-style-image: url('../quality/img/page.gif');
    margin-left: 20px;
    padding-left: 0;
}

.qms-sections a {
    color: #0056b3;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.qms-sections a:hover {
    background-color: #e8f5e9;
    color: #004085;
    transform: translateX(5px);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.other-sections ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

/* ============================================================================
   SECTION 14: QUALITY PORTAL - CONTROL DIAGRAMS
   ============================================================================ */

.control-diagram {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    display: block;
}

.control-level rect {
    transition: all 0.3s ease;
}

.level-title {
    font-size: 16px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.control-item rect {
    stroke-width: 2px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.control-item:hover rect {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
    transform: translateY(-2px);
}

.item-text {
    font-size: 14px;
    font-family: Arial, sans-serif;
    fill: #333333;
    pointer-events: none;
}

@keyframes highlight {
    0% { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
    50% { filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
    100% { filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1)); }
}

.control-item:active rect {
    animation: highlight 0.3s ease-in-out;
}

/* ============================================================================
   SECTION 15: QUALITY PORTAL - FLOWCHARTS
   ============================================================================ */

.flow-chart {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.flow-node rect {
    fill: #ffffff;
    stroke: #2c3e50;
    stroke-width: 2px;
    rx: 6px;
    ry: 6px;
    transition: all 0.3s ease;
}

.flow-node text {
    font-size: 14px;
    font-family: Arial, sans-serif;
    pointer-events: none;
}

.flow-node:hover rect {
    fill: #f8f9fa;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.process-start rect {
    fill: #e8f5e9;
    stroke: #4caf50;
}

.process-end rect {
    fill: #fff3e0;
    stroke: #ff9800;
}

.process-step rect {
    fill: #e3f2fd;
    stroke: #2196f3;
}

.process-decision rect {
    fill: #f3e5f5;
    stroke: #9c27b0;
}

.flow-connection {
    fill: none;
    stroke: #95a5a6;
    stroke-width: 2px;
    marker-end: url(#arrowhead);
    transition: stroke 0.3s ease;
}

.connection-label {
    font-size: 12px;
    fill: #7f8c8d;
    font-family: Arial, sans-serif;
}

.flow-node:hover + .flow-connection,
.flow-connection:hover {
    stroke: #34495e;
    stroke-width: 3px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.flow-node:active {
    animation: pulse 0.3s ease-in-out;
}

/* ============================================================================
   SECTION 16: QUALITY PORTAL - CASE STUDIES
   ============================================================================ */

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.case-study-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.case-study-card.case-study-hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.case-study-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.case-study-header h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.industry-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-study-section {
    margin: 1.5rem 0;
}

.case-study-section h5 {
    color: #455a64;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.case-study-section p {
    color: #546e7a;
    margin: 0;
    line-height: 1.5;
}

.case-study-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.case-study-section ul li {
    padding: 0.5rem 0;
    color: #546e7a;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.case-study-section ul li::before {
    content: "•";
    color: #2196f3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.results-list li::before {
    content: "✓";
    color: #4caf50;
}

.case-study-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.timeline {
    color: #78909c;
    font-size: 0.9rem;
    font-style: italic;
}

.case-study-section ul li:hover {
    color: #2196f3;
    transition: color 0.2s ease;
}

.case-study-section ul li:hover::before {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* ============================================================================
   SECTION 17: IT PORTAL - PYTHON COURSES
   ============================================================================ */

/* Course Header */
.course-header {
    background: var(--primary-gradient);
    color: var(--course-header-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.course-header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
    color: white !important;
    font-weight: 600;
}

/* Course Content */
.course-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Learning Objectives */
.learning-objectives {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.learning-objectives h3 {
    margin-top: 0;
    color: #155724;
}

.learning-objectives ul {
    color: #155724;
}

/* Code Examples */
.code-example {
    background: var(--code-bg);
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', 'Roboto Mono', monospace;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

/* Sample Output */
.sample-output {
    background: var(--sample-output-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    position: relative;
    color: var(--sample-output-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.sample-output::before {
    content: "Sample output";
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.875rem;
    color: var(--sample-output-label-color);
    font-weight: normal;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sample-output strong {
    color: #495057;
}

/* Exercise Sections */
.exercise-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.exercise-section h3 {
    color: #856404;
    margin-top: 0;
}

/* Exercise Container */
.exercise-container {
    transition: box-shadow 0.3s ease;
}

.exercise-container:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    color: white;
}

.btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.btn-success[disabled] {
    animation: successPulse 0.6s ease-in-out;
}

.exercise-btn {
    background: #28a745;
    margin: 0.5rem;
}

.exercise-btn:hover {
    background: #218838;
}

.test-btn {
    background: #17a2b8;
    margin: 0.5rem;
}

.test-btn:hover {
    background: #138496;
}

.reset-btn {
    background: #dc3545;
    margin: 0.5rem;
}

.reset-btn:hover {
    background: #c82333;
}

/* Output Section */
.output-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--code-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Messages */
.success-message {
    color: #28a745;
    background: #d4edda;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin: 0.5rem 0;
}

.exercise-message {
    animation: slideIn 0.3s ease-out;
}

/* Navigation */
.navigation {
    margin-top: 2rem;
    text-align: center;
}

.nav-link {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.75rem 1.5rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: #5a6268;
    color: white;
}

.current-nav-link {
    background: #007bff;
}

/* Table of Contents */
.toc {
    background: var(--section-header-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.toc h3 {
    margin-top: 0;
    color: var(--section-header-color);
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin: 0.5rem 0;
}

.toc a {
    color: #007bff;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* ============================================================================
   SECTION 18: DTREE - DIRECTORY TREE COMPONENT
   ============================================================================ */

.dtree {
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.dtree img {
    border: 0px;
    vertical-align: middle;
}

.dtree a {
    color: #333;
    text-decoration: none;
}

.dtree a.node, .dtree a.nodeSel {
    white-space: nowrap;
    padding: 1px 2px 1px 2px;
}

.dtree a.node:hover, .dtree a.nodeSel:hover {
    color: #333;
    text-decoration: underline;
}

.dtree a.nodeSel {
    background-color: #c0d2ec;
}

.dtree .clip {
    overflow: hidden;
}

/* ============================================================================
   SECTION 19: SIDEBAR MENU COMPONENT
   ============================================================================ */

.animate-menu-push {
    left: 0;
    position: relative;
    transition: all 0.3s ease;
}

.animate-menu-push.animate-menu-push-right {
    left: 200px;
}

.animate-menu-push.animate-menu-push-left {
    left: -200px;
}

.animate-menu {
    position: fixed;
    top: 0;
    width: 200px;
    height: 100%;
    transition: all 0.3s ease;
}

.animate-menu-left {
    left: -200px;
}

.animate-menu-left.animate-menu-open {
    left: 0;
}

.animate-menu-right {
    right: -200px;
}

.animate-menu-right.animate-menu-open {
    right: 0;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #222d32;
}

.sidebar-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.sidebar-menu > li > a {
    padding: 12px 5px 12px 15px;
    display: block;
    border-left: 3px solid transparent;
    color: #b8c7ce;
}

.sidebar-menu > li > a > .fa {
    width: 20px;
}

.sidebar-menu > li:hover > a, .sidebar-menu > li.active > a {
    color: #fff;
    background: #1e282c;
    border-left-color: #3c8dbc;
}

.sidebar-menu > li .label,
.sidebar-menu > li .badge {
    margin-top: 3px;
    margin-right: 5px;
}

.sidebar-menu li.sidebar-header {
    padding: 10px 25px 10px 15px;
    font-size: 12px;
    color: #4b646f;
    background: #1a2226;
}

.sidebar-menu li > a > .fa-angle-left {
    width: auto;
    height: auto;
    padding: 0;
    margin-right: 10px;
    margin-top: 3px;
}

.sidebar-menu li.active > a > .fa-angle-left {
    transform: rotate(-90deg);
}

.sidebar-menu li.active > .sidebar-submenu {
    display: block;
}

.sidebar-menu a {
    color: #b8c7ce;
    text-decoration: none;
}

.sidebar-menu .sidebar-submenu {
    display: none;
    list-style: none;
    padding-left: 5px;
    margin: 0 1px;
    background: #2c3b41;
}

.sidebar-menu .sidebar-submenu .sidebar-submenu {
    padding-left: 20px;
}

.sidebar-menu .sidebar-submenu > li > a {
    padding: 5px 5px 5px 15px;
    display: block;
    font-size: 14px;
    color: #8aa4af;
}

.sidebar-menu .sidebar-submenu > li > a > .fa {
    width: 20px;
}

.sidebar-menu .sidebar-submenu > li > a > .fa-angle-left,
.sidebar-menu .sidebar-submenu > li > a > .fa-angle-down {
    width: auto;
}

.sidebar-menu .sidebar-submenu > li.active > a,
.sidebar-menu .sidebar-submenu > li > a:hover {
    color: #fff;
}

/* RTL Sidebar Menu */
.sidebar-menu-rtl {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #222d32;
}

.sidebar-menu-rtl > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.sidebar-menu-rtl > li > a {
    padding: 12px 15px 12px 5px;
    display: block;
    border-left: 3px solid transparent;
    color: #b8c7ce;
}

.sidebar-menu-rtl > li > a > .fa {
    width: 20px;
}

.sidebar-menu-rtl > li:hover > a, .sidebar-menu-rtl > li.active > a {
    color: #fff;
    background: #1e282c;
    border-left-color: #3c8dbc;
}

.sidebar-menu-rtl > li .label,
.sidebar-menu-rtl > li .badge {
    margin-top: 3px;
    margin-right: 5px;
}

.sidebar-menu-rtl li.sidebar-header {
    padding: 10px 15px 10px 25px;
    font-size: 12px;
    color: #4b646f;
    background: #1a2226;
}

.sidebar-menu-rtl li > a > .fa-angle-left {
    width: auto;
    height: auto;
    padding: 0;
    margin-right: 10px;
    margin-top: 3px;
}

.sidebar-menu-rtl li.active > a > .fa-angle-left {
    transform: rotate(-90deg);
}

.sidebar-menu-rtl li.active > .sidebar-submenu {
    display: block;
}

.sidebar-menu-rtl a {
    color: #b8c7ce;
    text-decoration: none;
}

.sidebar-menu-rtl .sidebar-submenu {
    display: none;
    list-style: none;
    padding-right: 5px;
    margin: 0 1px;
    background: #2c3b41;
}

.sidebar-menu-rtl .sidebar-submenu .sidebar-submenu {
    padding-right: 20px;
}

.sidebar-menu-rtl .sidebar-submenu > li > a {
    padding: 5px 15px 5px 5px;
    display: block;
    font-size: 14px;
    color: #8aa4af;
}

.sidebar-menu-rtl .sidebar-submenu > li > a > .fa {
    width: 20px;
}

.sidebar-menu-rtl .sidebar-submenu > li > a > .fa-angle-left,
.sidebar-menu-rtl .sidebar-submenu > li > a > .fa-angle-down {
    width: auto;
}

.sidebar-menu-rtl .sidebar-submenu > li.active > a,
.sidebar-menu-rtl .sidebar-submenu > li > a:hover {
    color: #fff;
}

/* ============================================================================
   SECTION 20: ZOOM CONTROLS
   ============================================================================ */

.zoom-controls {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.98);
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #007cba;
    backdrop-filter: blur(8px);
    animation: zoomControlsFadeIn 0.5s ease-out;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #999;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.zoom-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.zoom-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.zoom-reset {
    background: #007cba !important;
    color: white !important;
    font-size: 12px;
    width: auto;
    height: 30px;
    border-radius: 15px;
    padding: 0 12px;
    margin-top: 5px;
}

.zoom-reset:hover {
    background: #005a8b !important;
}

.zoom-display {
    font-size: 12px;
    text-align: center;
    color: #666;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 8px;
    border-radius: 3px;
}

@keyframes zoomControlsFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   SECTION 21: ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

.case-study-card {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ============================================================================
   SECTION 22: FORMS & INPUT ELEMENTS
   ============================================================================ */

FORM {
    PADDING-RIGHT: 0px;
    PADDING-LEFT: 0px;
    PADDING-BOTTOM: 0px;
    MARGIN: 0px;
    PADDING-TOP: 0px;
}

INPUT {
    FONT-SIZE: 11px;
    FONT-FAMILY: Trebuchet MS, Verdana, Geneva, Arial, sans-serif;
}

SELECT {
    FONT-SIZE: 11px;
    FONT-FAMILY: Trebuchet MS, Verdana, Geneva, Arial, sans-serif;
}

/* ============================================================================
   SECTION 23: CODE & PREFORMATTED TEXT
   ============================================================================ */

.highlight {
    background-color: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
    text-align: left;
}

.code {
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

CODE {
    BORDER-RIGHT: #dcddde 1px solid;
    PADDING-RIGHT: 1px;
    BORDER-TOP: #dcddde 1px solid;
    PADDING-LEFT: 1px;
    FONT-SIZE: 10px;
    PADDING-BOTTOM: 1px;
    BORDER-LEFT: #dcddde 1px solid;
    PADDING-TOP: 1px;
    BORDER-BOTTOM: #dcddde 1px solid;
    FONT-FAMILY: "Courier New", courier, monospace;
    BACKGROUND-COLOR: #eeeff0;
}

PRE {
    BORDER-RIGHT: #dcddde 1px solid;
    PADDING-RIGHT: 1px;
    BORDER-TOP: #dcddde 1px solid;
    PADDING-LEFT: 1px;
    FONT-SIZE: 10px;
    PADDING-BOTTOM: 1px;
    BORDER-LEFT: #dcddde 1px solid;
    PADDING-TOP: 1px;
    BORDER-BOTTOM: #dcddde 1px solid;
    FONT-FAMILY: "Courier New", courier, monospace;
    BACKGROUND-COLOR: #eeeff0;
}

pre {
    font-family: 'Courier New', 'Roboto Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}

code {
    font-family: 'Courier New', 'Roboto Mono', monospace;
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ============================================================================
   SECTION 24: FOOTER
   ============================================================================ */

footer {
    margin-top: 50px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    color: #666;
    font-style: italic;
    text-align: left;
}

/* ============================================================================
   SECTION 25: UTILITY CLASSES
   ============================================================================ */

.right {
    FLOAT: right;
    POSITION: relative;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

/* ============================================================================
   SECTION 26: ACCESSIBILITY & FOCUS STATES
   ============================================================================ */

.btn:focus,
.nav-link:focus,
.toc a:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ============================================================================
   SECTION 27: RESPONSIVE DESIGN - MOBILE
   ============================================================================ */

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 1rem;
    }

    .container {
        padding: 0;
    }

    .calculation-table {
        display: block;
        overflow-x: auto;
    }

    img {
        margin: 10px 0;
    }

    .zoom-controls {
        top: 5px;
        right: 10px;
        padding: 8px;
        gap: 3px;
    }

    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .zoom-reset {
        height: 25px;
        font-size: 11px;
        padding: 0 10px;
    }

    .course-content {
        padding: 0 1rem;
    }

    .course-header h1 {
        font-size: 2rem;
    }

    .level-title {
        font-size: 14px;
    }

    .item-text {
        font-size: 12px;
    }

    .flow-node text {
        font-size: 12px;
    }

    .connection-label {
        font-size: 10px;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .case-study-card {
        padding: 1rem;
    }
}

/* ============================================================================
   SECTION 28: PRINT STYLES
   ============================================================================ */

@media print {
    body {
        color: #000;
        background: #fff;
    }

    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    a {
        text-decoration: none;
        color: #000;
    }

    .course-header {
        background: #f8f9fa !important;
        color: #333 !important;
    }

    .sample-output {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .zoom-controls {
        display: none;
    }
}

/* ============================================================================
   END OF MASTER STYLESHEET
   ============================================================================ */
