/* Base styles */
* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
    padding: 1em;
}

a {
    text-decoration: none;
    color: rgb(43, 43, 192);
}

/* Header bar (logo + nav) */
#header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    margin: 0 0 2em 0;
    height: 5rem;
    background: #222;
}

/* Top-level nav container */
ul.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

/* Top-level nav items */
ul.nav > li {
    position: relative;
}

/* Nav links */
ul.nav a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: #f5f5f5;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Hover styles */
ul.nav > li > a:hover,
ul.nav li ul li > a:hover,
.logo:hover {
    background: #444;
}

/* Dropdown menus (all levels) */
ul.nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    background: #333;
    min-width: 10rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
    z-index: 1000;
}

/* Show dropdown on hover */
ul.nav li:hover > ul {
    display: block;
}

/* Items inside dropdowns */
ul.nav li ul li {
    position: relative;
}

/* Links inside dropdowns */
ul.nav li ul a {
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
}

/* Nested submenus (2nd level and deeper) */
ul.nav li ul li ul {
    top: 0;
    left: 100%;
}

/* Visual hint that an item has children */
ul.nav li.dropdown > a::after,
ul.nav li ul li.dropdown > a::after {
    content: " ▾";
    font-size: 0.7rem;
}

/* Different arrow for nested dropdowns */
ul.nav li ul li.dropdown > a::after {
    content: " ▸";
}

/* Active/selected styles */
ul.nav li.active > a {
    background: #555;
    font-weight: 600;
}

/* Logo image or box in header */
.logo {
    width: 50px;
    height: 50px;
    margin-left: 1rem;
}
