﻿body {
    background-color: #181a1b;
    color: #000000;
}

.rounded-l-3xl {
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
}

main {
    background-color: rgb(3 7 18 / 0.5);
}

a {
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

.logoTimeLine {
    padding: 1em;
}

.logoTrioWorld {
    background-image: url("./img/trioworld.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%; 
    width: 180px;
    height: 70px;
    margin: 3.2em;
}

.homeContent {
    z-index: 1;
}
    
.logoText {
    padding-left: 0.5em;
    font-size: 1.2em;
    font-weight: bold;
}

.shortCut {
    font-size: 2em;
    padding: 1em;
    border: 1px solid #ffffff;
    border-radius: 1em;
}

/* === NavMenu (modern dark sidebar) === */
:root {
    --nav-bg: rgba(2, 6, 23, 0.65);
    --nav-border: rgba(148, 163, 184, 0.12);
    --nav-hover: rgba(30, 41, 59, 0.65);
    --nav-active-glow: rgba(2, 6, 23, 0.35);
    --text: #e5e7eb;
    --text-muted: #cbd5e1;
    --accent: #60a5fa;
}

/* List layout */
.menu ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-size: 0.95em;
    gap: 0;
}
.menu li { list-style: none; }

/* Items */
.menu a.menuItem,
.menu a.menuItemWithSubs,
.menu a.menuSubItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 0;
    color: var(--text);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease;
    -webkit-tap-highlight-color: transparent;
}
.menu a.menuItem:hover,
.menu a.menuItemWithSubs:hover,
.menu a.menuSubItem:hover {
    background: var(--nav-hover);
    color: #fff;
}

/* Active states (NavLink adds .active) */
.menu a.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(59,130,246,0.05));
    color: #fff;
}

/* Icon + label */
.menu a > span:first-child {
    width: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.menu a:hover > span:first-child,
.menu a.active > span:first-child {
    color: var(--accent);
}
.menu a > span:last-child {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submenu (collapsed by default) */
.menu .subMenu {
    margin: 0;
    padding: 0;
    border-left: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-2px);
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
}
.menu .subMenu .subMenuItem { margin: 0; }
.menu .subMenu .menuSubItem {
    padding: 10px 16px 10px 48px;
    font-size: .9em;
    color: var(--text-muted);
}
.menu .subMenu .menuSubItem:hover { color: #fff; }
.menu .subMenu .menuSubItem.active {
    color: #fff;
    background: rgba(59,130,246,0.08);
}

/* Expand submenu on hover and when parent link is active */
.menu li:hover > .subMenu,
.menu a.menuItemWithSubs.active + .subMenu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Focus visibility */
.menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Scrollbar (WebKit) */
.menu::-webkit-scrollbar { width: 10px; }
.menu::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.25);
    border-radius: 8px;
}
.menu::-webkit-scrollbar-thumb:hover {
    background: rgba(148,163,184,0.4);
}

/* Responsive: turn into top bar on small screens */
@media (max-width: 1024px) {
    .menu {
        position: sticky;
        top: 0;
        height: auto;
        width: 100%;
        border-right: none;
        /*border-bottom: 1px solid var(--nav-border);*/
        padding: 8px;
    }
    .menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .menu li { position: relative; }
    .menu .subMenu {
        position: absolute;
        left: 8px;
        right: 8px;
        margin: 6px 0 0;
        padding: 8px;
        border: 1px solid var(--nav-border);
        border-radius: 10px;
        background: var(--nav-bg);
        max-height: 0;
        opacity: 0;
        transform: translateY(-4px);
    }
    .menu li:hover > .subMenu,
    .menu a.menuItemWithSubs.active + .subMenu {
        max-height: 60vh;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style buttons like links in the menu */
.menu button.menuItem,
.menu button.menuItemWithSubs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 0;
    color: var(--text);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease;
    -webkit-tap-highlight-color: transparent;
}
.menu button.menuItem:hover,
.menu button.menuItemWithSubs:hover { background: var(--nav-hover); color: #fff; }
.menu .menuItemWithSubs.active {
    background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(59,130,246,0.05));
    color: #fff;
}
.menu .chevron {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform .2s ease;
}
.menu li.expanded > button .chevron { transform: rotate(180deg); }

/* ====== Off-canvas sidebar + mobile menu (≤640px) ====== */
@media (max-width: 640px) {
    .mobile-burger {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 70;
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid var(--nav-border);
        background: var(--nav-bg);
        color: var(--text);
    }

    .sidebar {
        position: fixed;
        z-index: 60;
        top: 0;
        bottom: 0;
        left: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(8px);
        border-right: 1px solid var(--nav-border);
        width: 100%;
        overflow-y: auto;
    }

    .mobile-backdrop {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: rgba(0,0,0,.55);
    }

    /* Ensure menu is vertical in the drawer */
    .menu ul {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        margin-left: 1.0em;
    }
    .menu li { position: static !important; }

    /* Submenus: inline below parent, collapsed by default */
    .menu .subMenu {
        position: static !important;
        left: auto; right: auto;
        margin: 0 0 6px 36px !important;
        padding-left: 12px !important;
        border: none !important;
        border-left: 1px dashed var(--nav-border) !important;
        background: transparent !important;
        max-height: 0;
        opacity: 0;
        transform: translateY(-2px);
        transition: max-height .25s ease, opacity .2s ease, transform .2s ease;
    }
    /* Disable hover-open on mobile; only 'expanded' shows submenu */
    .menu li:hover > .subMenu,
    .menu a.menuItemWithSubs.active + .subMenu {
        max-height: 0 !important;
        opacity: 0 !important;
        transform: translateY(-2px) !important;
    }
    .menu li.expanded > .subMenu {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optional: keep the previous top-bar behavior for tablets, but
   the ≤640px rules above take precedence and enforce drawer UX. */
div.title {
    font-size: 2em;
    font-weight: bold;
    padding: 0.5em;
    width: 100%;
    border-bottom: 1px solid grey;
    margin-bottom: 1em;
}

.contentBox {
    border: 1px solid grey;
    border-radius: 1em;
    margin: 1em;
    padding: 2em;
}