/* ============================================
   ANM Booking App — App Nav
   nav-app.css
   Standalone bottom tab bar for personnel/admin
   pages. No dependency on site nav component.
   ============================================ */

/* ============================================
   CALENDAR LAYOUT — account for bottom nav
   ============================================ */

.app-page .cal-wrap {
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-page .cal-week-view,
.app-page .cal-day-view {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-page .cal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
}

/* ============================================
   BOTTOM TAB BAR
   ============================================ */

.app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    z-index: 9999;
    background: var(--color-primary);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

/* ============================================
   LOCK TOGGLE (left)
   ============================================ */

.app-nav-lock {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.app-nav-lock:hover {
    opacity: 1;
}

/* ============================================
   TAB BUTTONS (center)
   ============================================ */

.app-nav-tab,
.app-nav-tab:link,
.app-nav-tab:visited {
    flex: 1;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.65rem;
    font-weight: bold;
    transition: color 0.2s, background 0.2s;
    border-radius: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-main);
}

.app-nav-tab:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.app-nav-tab--active,
.app-nav-tab--active:link,
.app-nav-tab--active:visited {
    color: var(--color-white);
    background: rgba(255,255,255,0.15);
}

.app-nav-tab svg {
    display: block;
}

.app-nav-tab span {
    display: block;
    line-height: 1;
}

/* ============================================
   HAMBURGER (right)
   ============================================ */

.app-nav-hamburger {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-nav-check {
    display: none;
}

.app-nav-btn {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.app-nav-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: opacity 0.2s;
}

.app-nav-btn:hover span {
    opacity: 0.8;
}

/* ============================================
   DROPDOWN MENU (opens upward)
   ============================================ */

.app-nav-dropdown {
    display: none;
    position: fixed;
    bottom: 56px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px 0 0 0;
    box-shadow: -4px -4px 16px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    z-index: 10000;
}

.app-nav-check:checked ~ .app-nav-dropdown {
    display: block;
}

.app-nav-dropdown li a {
    display: block;
    padding: 12px 20px;
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s;
}

.app-nav-dropdown li a:hover {
    background: var(--color-primary-lt);
    text-decoration: none;
}

.app-nav-dropdown-item {
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-primary-lt);
}

/* Grid select */
.app-nav-select {
    width: 100%;
    padding: 6px 10px;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-primary-lt);
    border-radius: var(--radius-block);
    color: var(--color-primary);
    background: white;
    cursor: pointer;
}

/* Scale controls */
.app-nav-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom: 1px solid var(--color-primary-lt);
}

.app-nav-scale button {
    background: var(--color-primary-lt);
    border: none;
    border-radius: var(--radius-circle);
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.app-nav-scale button:hover {
    background: var(--color-primary);
    color: white;
}

.app-nav-scale span {
    flex: 1;
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: bold;
    color: var(--color-primary);
}

/* ============================================
   DRAG MODE TOGGLE STATE
   ============================================ */

#drag-mode-toggle {
    transition: opacity 0.2s;
}
