/* Main App Runner - Global Navigation - CONSISTENT ACROSS ALL PAGES */
.runner-system.runner-app,
.runner-system.runner-public {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid #444 !important;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.runner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.runner-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.runner-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.runner-logo-image {
    height: 32px;
    width: auto;
}

.runner-logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 1px;
}

.app-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.app-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* HIDE navigation links in main runner on app pages */
body.app-page .runner-nav-links {
    display: none;
}

/* Show navigation links in main runner on public pages */
body:not(.app-page) .runner-nav-links {
    display: flex;
    gap: 5px;
}

.runner-link {
    padding: 8px 16px;
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.runner-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.runner-link.active {
    background: #667eea;
    color: white;
}

.runner-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.runner-action-links {
    display: flex;
    gap: 10px;
}

.runner-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.runner-btn-primary {
    background: #667eea;
    color: white;
}

.runner-btn-secondary {
    background: #6c757d;
    color: white;
}

.runner-btn-accent {
    background: #e74c3c;
    color: white;
}

.runner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Secondary App Navigation - Model Tools Specific */
.app-secondary-nav {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-bottom: 1px solid #718096;
    padding: 0;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 999;
    height: 45px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-secondary-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.app-secondary-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-secondary-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #68d391;
}

.app-secondary-nav-links {
    display: flex;
    gap: 5px;
}

.app-secondary-link {
    padding: 6px 14px;
    color: #cbd5e0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.app-secondary-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.app-secondary-link.active {
    background: #805ad5;
    color: white;
}

/* Adjust body padding for BOTH fixed navigations on app pages */
body.app-page {
    padding-top: 105px;
}

/* For public pages (without secondary nav) */
body:not(.app-page) {
    padding-top: 60px;
}