/**
 * Icon Strip Navigation
 * A narrow vertical navigation strip for page-level navigation
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f0f1a;
    --accent-cyan: #00d9ff;
    --accent-green: #00ff88;
    --accent-orange: #ff9500;
    --accent-orange-glow: rgba(255, 149, 0, 0.35);
    --accent-red: #ff4757;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #606060;
    --border-subtle: rgba(255,255,255,0.1);
    --border-medium: rgba(255,255,255,0.2);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-glow-cyan: 0 0 20px rgba(0,217,255,0.3);

    /* Icon Strip */
    --icon-strip-width: 56px;
}

/* ============================================
   ICON STRIP
   ============================================ */
.icon-strip {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--icon-strip-width);
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: var(--space-md) 0;
    z-index: 1000;
}

.icon-strip-item {
    width: var(--icon-strip-width);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 150ms ease, background 150ms ease;
}

.icon-strip-item:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.icon-strip-item.active {
    color: var(--accent-cyan);
}

.icon-strip-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent-cyan);
    border-radius: 0 2px 2px 0;
}

.icon-strip-item svg {
    width: 24px;
    height: 24px;
}

.icon-strip-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid var(--bg-tertiary);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 150ms ease, transform 150ms ease;
}

.icon-strip-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.icon-strip-badge.warning {
    background: var(--accent-orange);
    box-shadow: 0 0 14px var(--accent-orange-glow);
}

.icon-strip-badge.danger {
    background: var(--accent-red);
    box-shadow: 0 0 16px rgba(255, 71, 87, 0.45);
}

.icon-strip-spacer {
    flex: 1;
}

.icon-strip-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
    z-index: 1001;
}

.icon-strip-item:hover .icon-strip-tooltip {
    opacity: 1;
}

/* ============================================
   PAGE CONTENT OFFSET
   ============================================ */
/*
 * .has-icon-strip is a marker class on the body.
 * The icon-strip is position:fixed, so it doesn't affect document flow.
 * We only need to offset the specific page containers.
 */

/* Offset the header and main content to make room for the fixed icon strip */
.with-icon-strip {
    margin-left: var(--icon-strip-width, 56px);
    width: calc(100% - var(--icon-strip-width, 56px));
}

body.has-icon-strip .mobile-header {
    margin-left: var(--icon-strip-width);
    width: calc(100% - var(--icon-strip-width));
}

body.has-icon-strip .mobile-main {
    margin-left: var(--icon-strip-width);
    width: calc(100% - var(--icon-strip-width));
}

body.has-icon-strip .notification-container {
    right: 20px;
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .icon-strip {
        display: none;
    }

    .with-icon-strip,
    body.has-icon-strip .mobile-header,
    body.has-icon-strip .mobile-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
}
