/* Primary left-hand navigation. Permanent - included unconditionally from
   layouts/app_nav.blade.php, which every logged-in content page extends
   (layouts.app itself is only ever extended by app_nav.blade.php). */

.primary-nav {
    position: fixed;
    left: 0;
    top: 65px;
    bottom: 0;
    width: 200px;
    background-color: #fff;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.12);
    z-index: 15;
    transition: width 0.3s ease;
}

.primary-nav ul {
    margin: 0;
    list-style: none;
}

.primary-nav li {
    position: relative;
}

.primary-nav a {
    display: block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 0 0 60px;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: 0.3s;
}

.primary-nav a:hover,
.primary-nav > ul > li.active > a {
    color: #4a154b;
    background-color: rgba(0, 0, 0, 0.03);
}

.primary-nav a i {
    position: absolute;
    left: 14px;
    top: 0;
    line-height: 44px;
    font-size: 1.4rem;
    width: 2.5rem;
    text-align: center;
}

.primary-nav-label {
    display: inline;
}

.primary-nav-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Settings is pinned to the bottom, directly above the collapse toggle */
.primary-nav > .primary-nav-list > li.settingsMenu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 45px;
}

.primary-collapse {
    cursor: pointer;
}

.primary-collapse .collapse-icon {
    transition: transform 0.3s ease;
}

.fixed.primary-nav-minimized .primary-nav:not(:hover) .collapse-icon {
    transform: rotate(180deg);
}

/* Fly-out submenus (Boards / Templates / Settings) */
.primary-nav li > ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 230px;
    background: #fff;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 16;
    padding: 8px 0;
    border-radius: 0 2px 2px 0;
}

.primary-nav li:hover > ul,
.primary-nav li:focus-within > ul {
    display: block;
}

.primary-nav li > ul a {
    padding-left: 3rem;
    min-height: 38px;
    line-height: 38px;
}

.primary-nav li > ul a i {
    left: 10px;
    width: 1.75rem;
    font-size: 1.2rem;
    line-height: 38px;
}

/* Collapsed (icon-only) state, expands again on hover */
.fixed.primary-nav-minimized .primary-nav {
    width: 60px;
}

.fixed.primary-nav-minimized .primary-nav .primary-nav-label {
    display: none;
}

.fixed.primary-nav-minimized .primary-nav:hover {
    width: 200px;
}

.fixed.primary-nav-minimized .primary-nav:hover .primary-nav-label {
    display: inline;
}

/* Offset the existing secondary sidebar / fixed content area so it renders
   to the right of the primary nav instead of at the viewport edge. */
.fixed:not(.primary-nav-minimized) .left-sidebar {
    left: 200px;
}

.fixed.primary-nav-minimized .left-sidebar {
    left: 60px;
}

.fixed:not(.primary-nav-minimized) .content {
    left: 200px;
    width: calc(100% - 200px);
}

.fixed.primary-nav-minimized .content {
    left: 60px;
    width: calc(100% - 60px);
}

@media (max-width: 993px) {
    .primary-nav {
        width: 0;
        overflow: hidden;
    }

    .fixed.primary-nav-minimized .primary-nav {
        width: 0;
    }

    .fixed .left-sidebar {
        left: 0;
    }

    .fixed .content {
        left: 0 !important;
        width: 100% !important;
    }
}

/* Quick-add dropdown (opened from the FAB in the top-right icon cluster) */
#todoDropDown {
    min-width: 260px;
}
