/* ============================================================================
   UPFRONT PARAMETERS (LAYOUT & COLOR SCHEME)
   ============================================================================ */
:root {
    /* Layout Dimensions */
    --layout-max-width: 1200px;   /* Overall max width for centered content */
    --sidebar-width: 200px;       /* Left column width */
    --main-padding: 2rem;         /* Padding inside right main content area */

    /* Color Palette */
    --color-bg-page: #f8f9fa;      /* Main application background */
    --color-bg-card: #ffffff;      /* Background for content cards */
    --color-text-main: #333333;    /* Primary text color */
    
    /* Sidebar Colors */
    --color-sidebar-bg: #1e293b;   /* Sidebar background */
    --color-sidebar-text: #f8fafc; /* Sidebar header/active text  Dashboard */
    --color-sidebar-muted: #94a3b8;/* Category headers text */
    --color-sidebar-link: #cbd5e1; /* Unselected link text */
    --color-sidebar-hover: #334155;/* Link background on hover */
    --color-sidebar-active: #2563eb;/* Selected active item background */

    /* Card & Borders */
    --color-border: #e2e8f0;       /* Border line color */
}

/* ============================================================================
   GLOBAL STYLES & LAYOUT
   ============================================================================ */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    background: var(--color-bg-page);
    color: var(--color-text-main);
    height: 100vh;
}

/* Page Outer Wrapper */
#app-wrapper {
    display: flex;
    width: 100%;
    max-width: var(--layout-max-width);
    height: 100vh;
}

/* Left Column (Sidebar) */
#sidebar {
    width: var(--sidebar-width);
    background: var(--color-sidebar-bg);
    color: var(--color-sidebar-text);
    padding: 1.5rem 1rem;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Right Column (Main Area) */
#main-content {
    flex-grow: 1;
    padding: var(--main-padding);
    overflow-y: auto;
}

/* ============================================================================
   NAVIGATION MENU STYLES
   ============================================================================ */
.section-title {
    color: var(--color-sidebar-muted); /* COLOR: Defaults to #94a3b8 */
    background: transparent;           /* BACKGROUND: Set background here */
    font-size: 0.85rem;                /* SIZE */
    font-family: inherit;              /* FONT */
    text-transform: uppercase;         /* Capitalization */
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.5rem 0.5rem;
}

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    margin-bottom: 2px;
}

.file-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.0rem 0.5rem;
    color: var(--color-sidebar-link);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.file-link:hover {
    background: var(--color-sidebar-hover);
    color: var(--color-sidebar-text);
}

.file-link.active {
    background: var(--color-sidebar-active);
    color: var(--color-sidebar-text);
    font-weight: 500;
}

.ext-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================================================
   CONTENT CARDS
   ============================================================================ */
.card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}


/* ============================================================================
   Hover on text
   ============================================================================ */
.note-trigger {
  position: relative;
  cursor: pointer;
  display: inline-block;
  text-decoration: none; /* <-- REMOVES UNDERLINE */
}

.note-box {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 350px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  font-size: 8px; /* <-- CHANGE POP-UP TEXT SIZE HERE */
  z-index: 10;
}

.note-trigger:hover .note-box {
  display: block;
}


/* ============================================================================
   Hover on images 
   ============================================================================ */
   
.image-hover {
  position: relative;
  color: green;
  cursor: pointer;
}

.image-hover img {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 400px;
  z-index: 1000;
}

.image-hover:hover img {
  display: block;
}